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

  • From: Vilya Harvey <vilya.harvey@o...>
  • To: "Christopher R. Maden" <crism@e...>, xml-dev@x...
  • Date: Mon, 17 Apr 2000 15:13:18 +0100

At 05:55 AM 4/17/00 +0000, Christopher R. Maden wrote:
>On 4/16/00, 5:09:28 PM, Tim Bray <tbray@t...> wrote regarding
>Re: Parameterizing namespaces - possible?:
> > No... what you have above should work.  If you read the fine print the
> > extra spaces don't apply when it's in the replacement text of another
> > entity reference.  So %html.name; indeed expands to "html:html"
>
>That's what I thought, until Simon challenged me on it.  I couldn't
>find the wording in the XML Rec that made that legal.  I'm certain
>that it's there; this rule has been an article of faith for several
>years now.  [Wow... XML for "several years".]  Can you point me to the
>appropriate section of the Rec, please?

Section 4.4.5 is the one. It says:

"When an entity reference appears in an attribute value, or a parameter 
entity reference appears in a literal entity value ..."

The key point is that a parameter entity reference in a literal entity 
value is not treated as a "Reference in DTD" (to use the names from section 
4.4 of the spec), but rather as a "Reference in Entity Value".

Hope that helps,
Vil.


***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

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