You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "J.Pietschmann" <j3...@yahoo.de> on 2004/02/27 19:49:29 UTC
Re: generate XML with its CSS
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>
</xsl:processing-instruction>
<rss version="2.0">
...
See
http://www.w3.org/TR/xslt#section-Creating-Processing-Instructions
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org