[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: ouputting through stylesheet.


Subject: Re: ouputting <?xml version="1.0"?> through stylesheet.
From: Mike Brown <mike@xxxxxxxx>
Date: Wed, 24 May 2000 10:10:24 -0600 (MDT)

> I am generating a DOM structure from which i want to
> create an XML document by applying the stylesheet.
> 
> Can anyone tell me how can i output the statment 
> <?xml version="1.0"?> using stylesheet.

The XML or text declaration does not get created in the result tree. It is
added to the serialization of the result tree by an XSLT processor that
implements the XML output method.

<xsl:output method="xml"/>

See the 'Output' section of the XSLT spec.

   - Mike
___________________________________________________________
Mike J. Brown, software engineer, Webb Interactive Services
XML/XSL stuff: http://www.skew.org/    http://www.webb.net/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords