Entity was referenced but not declared

前端 未结 1 1556
情书的邮戳
情书的邮戳 2020-12-11 07:05

In my xml file of Spring MVC application for using tiles, I have written the following -


           


        
相关标签:
1条回答
  • 2020-12-11 07:33

    You either need to declare those entities, or replace them with a hex or decimal equivalent. I'm assuming what the characters are supposed to be for diams and reg; you may need to change them.

    Example of declaring the entities:

    <!DOCTYPE definition [
    <!ENTITY reg "&#174;">
    <!ENTITY diams "&#9830;">
    ]>
    <definition name="dashboard" extends="base.definition">
        <put-attribute name="title" value="Dashboard - CMS &diams; &reg; Galactic NetOne" />
        <put-attribute name="body" value="/WEB-INF/views/dashboard.jsp" />
    </definition>
    

    Example of replacing the entities:

    <definition name="dashboard" extends="base.definition">
        <put-attribute name="title" value="Dashboard - CMS &#9830; &#174; Galactic NetOne" />
        <put-attribute name="body" value="/WEB-INF/views/dashboard.jsp" />
    </definition>
    

    You can use the XHTML DTDs as a reference for entities: http://www.w3.org/TR/xhtml1/dtds.html#h-A2

    0 讨论(0)
提交回复
热议问题