rtfm, eh - or maybe rtfs!! :)

thanks for your response Eric, and to Jeffrey Rodriguez as well.

i was under the impression that attribute order was not significant..
well, i know better now -

cheers,

/m

On Thu, 14 Sep 2000, Eric Ye wrote:

> Please take a look at XML 1.0 spec, you will find:
> 
> 1. in xml decl, standalone decl has to come after encoding decl in the
> syntax rule 22.
> 
> 2. in DTD, textdecl was used instead of xmldecl, look at rule 77, encoding
> decl is NOT optional, which mean you always need a encoding decl in the
> textdecl if you have one in the beginning of DTD, however versionInfo is
> optional in this case.
> 
> _____
> 
> 
> Eric Ye * IBM, JTC - Silicon Valley * [EMAIL PROTECTED]
> 
> ----- Original Message -----
> From: "Martin Klang" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: "Sasha Alexander Bilton" <[EMAIL PROTECTED]>
> Sent: Thursday, September 14, 2000 8:09 AM
> Subject: attributes in the xml declaration
> 
> 
> >
> > Hey!
> >
> > xerces-j 1.1.2 ->
> >
> > just noted that this fails:
> >     <?xml version="1.0" standalone="no" encoding="ISO-8859-1" ?>
> > with:
> >     org.xml.sax.SAXParseException: The XML declaration must end with "?>"
> >
> > whereas this works:
> >     <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
> >
> > also, seems i can leave the encoding attribute out of the xml file, but if
> > i don't include it in the xml declaration of my dtd, eg:
> >     <?xml version="1.0"?>
> > then i get:
> >     org.xml.sax.SAXParseException: White space is required between the
> >     version and the encoding declaration
> > or with:
> >     <?xml version="1.0" ?>
> > i get:
> >     org.xml.sax.SAXParseException: The encoding declaration is required in
> >     the text declaration
> >
> > if these are known problems, then please ignore this mail
> >
> > cheers!
> >
> > /m
> >
> >
> 
> 
> 

Reply via email to