Author Topic: XML Attribute Name or Nmtoken  (Read 578 times)

0 Members and 1 Guest are viewing this topic.

Offline metrologistTopic starter

  • Super Contributor
  • ***
  • Posts: 2199
  • Country: 00
XML Attribute Name or Nmtoken
« on: October 02, 2018, 03:21:04 pm »
I am having an XML Parser Error at line 34, char 64, Message:

Attribute 'boardno' refers to an unknown entity '1'
The value '1' for attribute 'boardno' must be Name or Nmtoken

I'm not able to get past this or understand the problem as name or Nmtoken seem to have few limitations on characters that can be used.


XML code:
Code: [Select]
<graphic boardno = "1" boardfile = "Caution.jpg"></graphic>

DTD bits:
Code: [Select]
<!ELEMENT graphic (mapref*)>
<!ATTLIST graphic
%graphicatt;
  hplace      (left | right | center | none )  #IMPLIED
  graphsty   NMTOKEN  #IMPLIED
  applicable IDREFS #IMPLIED
  %bodyatt;
>


<!ENTITY % graphicatt " boardno     ENTITY  #REQUIRED
boardfile CDATA   #IMPLIED
             reprowid    CDATA   #IMPLIED
             reprodep    CDATA   #IMPLIED
             %graphicunit;
             hscale      CDATA   #IMPLIED
             vscale      CDATA   #IMPLIED
             scalefit     (yes | no )  #IMPLIED
             alt         CDATA   #IMPLIED">
« Last Edit: October 02, 2018, 03:26:17 pm by metrologist »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf