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

  • From: Wayne Steele <xmlmaster@h...>
  • To: justin@s..., xml-dev@l...
  • Date: Mon, 16 Oct 2000 15:23:17 -0700 (PDT)

This construct is perfectly acceptable.

As quoted, a parameter entity _reference_ is forbidden outdie a DTD.
What you have here is a parameter entity _declaration_ in the internal 
subset, and a parameter entity _reference_ in the external subset.

They're both inside the DTD, as well (everthing in the !DOCTYPE declaration 
that's between [ square brackets ] is the internal subset).

This might be a bug on the part of XML4j or XMLSpy.

-Wayne Steele


>From: Justin Lipton <justin@s...>
>
>Perhaps I'm missing the point on this thread:
>

...[start of example removed]...

>   <?xml version="1.0" encoding="UTF-8"?>
>   <!DOCTYPE bugs SYSTEM "bugs.dtd" [
>           <!ENTITY % extras "IGNORE">
>   ]>

...[more example removed]...

>
>Our experience so far is that some parsers handle this and some don't -
>Xerces seems to like it, XML4J doesn't, XMLSpy doesn't etc.
>
>Is this a valid construct?
>According to below (Section 4-1 of XML 1.0 spec)
>"Parameter-entity references may only appear in the DTD."
>
>Yours in confusion,
>Justin.

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


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