[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: how to output a processing instruction
Nnaemeka David wrote:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0"> <xsl:template match="/"> <xsl:processing-instruction name="xml-stylesheet">href="me.css" type="text/css"</xsl:processing-instruction> <html> ... </html> </xsl:template> should do, assuming you want to create an XHTML result document to be parsed as XML by an user agent. If you want to create text/html output then I would not use xsl:processing-instruction to link to a stylesheet, instead I would put an HTML "link rel=stylesheet" element in the head section of the HTML document. -- Martin Honnen http://msmvps.com/blogs/martin_honnen/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|