W3C home > Mailing lists > Public > public-xml-testsuite@w3.org > June 2004

Testing recursive entity substitution in attributes

From: Graham Klyne <gk@ninebynine.org>
Date: Sat, 26 Jun 2004 18:28:53 +0100
Message-Id: <5.1.0.14.2.20040626182545.0267c688@127.0.0.1>
To: public-xml-testsuite@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:22:04 GMT