[Home] [By Thread] [By Date] [Recent Entries]

  • From: "DuCharme, Bob (LNG)" <bob.ducharme@l...>
  • To: "'xml-dev@l...'" <xml-dev@l...>
  • Date: Fri, 31 Aug 2001 11:29:19 -0400

>I have another question on entity referencing being referenced from within
>an attribute:
>
>For eg:  in the DTD, name is defined as follows:
>
>!ENTITY name "<a><b>cool</b></a>"
>
>In my xml file I have the following
>
><root>
><this>charlie="very&name;too"
></root>

Assuming you mean <this charlie="very&name;too"/>, you can't, because then
the document isn't well-formed. See
http://www.w3.org/TR/REC-xml.html#CleanAttrVals.

Bob DuCharme            www.snee.com/bob             <bob@  
snee.com>      see http://www.snee.com/bob/xsltquickly for
info on new book "XSLT Quickly" from Manning Publications.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member