Subject: RE: Référence: RE: question about transformation
From: Marco.Mistroni@xxxxxxxxx
Date: Tue, 23 Nov 1999 13:26:59 +0200
|
hi
sorry for my mistake( i did not try it...i just only wrote it for
suggestion...sorry if it was wrong....)
rgds
marco
> -----Original Message-----
> From: EXT David Carlisle [mailto:davidc@xxxxxxxxx]
> Sent: 23. November 1999 11:28
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: Re: Référence: RE: question about transformation
>
>
>
> You have stated here exactly the cause of your problem:
>
> ] Since my transformation stylesheet is an XML document,
>
> An XSL stylesheet is an XML document, thus this:
>
> ] <xsl:template match="/">
> ] <?xml blah blah blah
>
> is an XML error and will generate a parse error from the XML parser
> before the XSL system even gets started. <? is the XML syntax for
> a text declaration, an XML declaration or a processing instruction.
> PI's are not allowed to begin with `xml' and declarations are not
> allowed to be inside XML elements, so the above is not a well
> formed XML
> document.
>
> The output of XSLT is the tree representing your document.
> If that tree is linearised into a file, and XML declaration will be
> added by the system if it is needed. Then declaration is not
> part of the
> tree itself, and so does not need to be in a template (even
> if that was
> allowed by XML rules) The declaration just tells a parser how
> to convert
> the linearoised form in the file back to the parse tree that
> corresponds
> to your output. In particular if you specify an encoding
> other than utf8
> or utf16 using xsl:output then an XML declaration will be added by the
> system (if it supports the encoding you ask for).
>
> David
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|