Kjetil Kjernsmo wrote:
> Dear all,
> 
> I want to serve XML with a stylesheet to as many clients as possible, 
> but I haven't figured out how to include a processing instruction of 
> the type described in http://www.w3.org/TR/xml-stylesheet/ , for 
> example 
> <?xml-stylesheet href="xmlcssns.css" type="text/css" ?>
> in my sitemap (or whereever it would be convenient to include such an 
> instruction). Well, I can always include it the sitemap, but it needs 
> to make it all the way through the serializer... :-)
> 
> As many recent browsers are capable of processing XML styled with CSS, I 
> think of (X)HTML mainly as transitional technology.... :-)
> 
> Any hints?
> 
> Best,
> 
> Kjetil

In the last stylesheet in the pipeline:

<xsl:template match="/">
   <xsl:processing-instruction name="xml-stylesheet">
     href="xmlcssns.css" type="text/css"
   </xsl:processing-instruction>
</xsl:template>


        Ugo

-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to