[jdom-interest] Crimson bug

Elliotte Rusty Harold elharo at metalab.unc.edu
Wed Sep 5 18:34:10 PDT 2001

At 8:45 PM -0400 9/5/01, Jon Baer wrote:
>Hey can I ask a question ...
>Why is it that on mainly all the parsers I use that <?xml version="1.0"?> is a
>*required* factor?  Im not sure if this relates to this bug but if its considered a
>PI for mainly all applications which may use a stylesheet in the end shouldn't this
>be an optional factor?

It's not required. If a parser requires it, then the parser is broken. However, it is strongly recommended. The Crimson problem seems to be that Crimson is misinterpreting an xml-stylesheet processing instruction as an XML declaration. (Also, FYI the XML declaration is technically not a processing instruction).

| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
|          The XML Bible, 2nd Edition (Hungry Minds, 2001)           |
|              http://www.ibiblio.org/xml/books/bible2/              |
|   http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/   |
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      | 
|  Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/     |

More information about the jdom-interest mailing list