cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Pietschmann" <j3322...@yahoo.de>
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>
     </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


Mime
View raw message