Testing recursive entity substitution in attributes

Folks,

Does the XML test suite contain a test case corresponding the XML below?

I'm particularly wanting to nail down the handling of attribute "tricky1" 
of the <test> element.

#g
--

[[
<!DOCTYPE test [
<!ELEMENT test (#PCDATA) >
<!ENTITY xx 'xyzzy' >
<!ENTITY yy 'xx;/bar' >
<!ENTITY zz '&xx;/bar' >
]>
<test tricky1="foo/#38;&yy;" tricky2="foo/&zz;" />

<!-- I think the result should be:
<test tricky1="foo/&xx;/bar" tricky2="foo/xyzzy/bar" />

because in the 'tricky1' case, only the substituted text for &yy; is
reprocessed, not the entire attribute after substitution of &yy;
?
-->
]]


------------
Graham Klyne
For email:
http://www.ninebynine.org/#Contact

Received on Saturday, 26 June 2004 13:34:46 UTC