XMLSPY allowing parameter entity reference in XML document

  • Thread starter Ion Chalmers Freeman
  • Start date
I

Ion Chalmers Freeman

Um, I think XMLSPY is wrong about this, but it was surprising, so I
wanted to check.
my dtd has
<!ENTITY % en "value">
and
<!ATTLIST element attribute CDATA #FIXED "%en;">

so, when I generate an XML document off the dtd, XMLSPY gives me a
one-value dropdown for the value of attribute as "%en;". And it won't
accept "value". Aren't parameter entities meaningless outside the DTD?
 
R

Richard Tobin

Ion Chalmers Freeman said:
<!ENTITY % en "value">
and
<!ATTLIST element attribute CDATA #FIXED "%en;">
so, when I generate an XML document off the dtd, XMLSPY gives me a
one-value dropdown for the value of attribute as "%en;". And it won't
accept "value". Aren't parameter entities meaningless outside the DTD?

Yes, it's wrong about this. The %en; should be replaced when the
ATTLIST declaration is parsed.

-- Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top