You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Norman Walsh <nd...@nwalsh.com> on 2001/03/14 20:40:46 UTC
Validation error with fixed attributes
Using the latest Xerces (Xerces1, I believe) out of CVS, the following
document is report as invalid:
test.xml:
<!DOCTYPE doc SYSTEM "doc.dtd">
<doc>
<test/>
</doc>
doc.dtd:
<!ELEMENT doc (test+)>
<!ENTITY % simple-xlink.att
'xmlns:xlink CDATA #FIXED
"http://www.w3.org/1999/xlink"
xlink:type CDATA #FIXED "simple" '>
<!ELEMENT test EMPTY>
<!ATTLIST test
%simple-xlink.att;
>
Xerces reports:
Error:test.xml:3:Undeclared prefix: "xlink:type".
Be seeing you,
norm
--
Norman.Walsh@East.Sun.COM | A man should have any number of little
XML Standards Engineer | aims about which he should be conscious
Technology Development Group | and for which he should have names, but
Sun Microsystems, Inc. | he should have neither name for, nor
| consciousness concerning, the main aim
| of his life.--Samuel Butler (II)
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org