Subject: Re: This can't be right, XML with no root element: Saxon & XT vs. Xalan
From: "Rob Lugt" <roblugt@xxxxxxxxx>
Date: Fri, 27 Jul 2001 11:52:48 +0100
|
Dylan Walsh wrote:
> To clarify: the syntax for a "text declaration" is exactly the same as
> an XML declaration e.g.:
>
> <?xml version="1.0" encoding="utf-8"?>
>
> Is that correct?
>
Not quite. From the XML recommendation [1] :
[23] XMLDecl ::= '<?xml' VersionInfo EncodingDecl? SDDecl? S? '?>'
[77] TextDecl ::= '<?xml' VersionInfo? EncodingDecl S? '?>'
Regards
~Rob
--
Rob Lugt
ElCel Technology
http://www.elcel.com/
[1] http://www.w3.org/TR/REC-xml
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|