cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Pietschmann" <>
Subject Re: generate XML with its CSS
Date Fri, 27 Feb 2004 18:49:29 GMT
Philippe Bajoit wrote:
> I would like to generate this kind of output: XML with CSS, ie the
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <?xml-stylesheet href='rss-colored.css' title='Default' alternate='no' type='text/css'?>
> <?xml-stylesheet href='rss.css' title='Boxed' alternate='yes' type='text/css'?>
> <rss version="2.0">
> Does it exist another way to do that?

It is not an serializer option. The stylesheet link is a standard
XML processing instruction. If you generate the XML with XSLT, try
something like
   <xsl:template match="/">
     <xsl:processing-instruction name="xml-stylesheet">
       <xsl:text>href='rss-colored.css' title='Default' </xsl:text>
       <xsl:text>alternate='no' type='text/css'</xsl:text>
     <rss version="2.0">



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message