cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Bajoit <p...@lebutch.org>
Subject generate XML with its CSS
Date Fri, 27 Feb 2004 14:48:24 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body>
I would like to generate this kind of output: XML with CSS, ie the <br>
<pre id="line1"><b><span class="pi">&lt;?xml-stylesheet ...</span></b></pre>
&nbsp;instructions:<br>
<br>
<pre id="line1"><span class="pi">&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;</span>
<b><span class="pi">&lt;?xml-stylesheet href='rss-colored.css' title='Default'
alternate='no' type='text/css'?&gt;</span>
<span class="pi">&lt;?xml-stylesheet href='rss.css' title='Boxed' alternate='yes'
type='text/css'?&gt;</span>
</b>&lt;<span class="start-tag">rss</span><span class="attribute-name">
version</span>=<span
 class="attribute-value">"2.0"</span>&gt;
...
</pre>
<br>
I've searched a solution as options of the serializer:<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;map:serializer name="xml"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; src="org.apache.cocoon.serialization.XMLSerializer"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mime-type="text/xml"&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;encoding&gt;ISO-8859-1&lt;/encoding&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;indent&gt;yes&lt;/indent&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/map:serializer&gt;<br>
<br>
but it seems there is no way to pass stylesheet information.<br>
Does it exist another way to do that?<br>
<br>
Thank you in advance.<br>
Philippe Bajoit<br>
</body>
</html>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message