I include reference to CSS-stylesheet ind the transformation stylesheet: <xsl:template match="root"> <link href="pathToFile/xxxxx.css" rel="stylesheet" type="text/css" /> </xsl:template>
Niels Bjerre NB-Informatik Storegade 21 B DK 3740 Svaneke mailto:[EMAIL PROTECTED] http://www.nbinfo.dk Tlf.: +45 5644 3030 Fax.: +45 5644 3031 Cell: +45 2324 5554 > -----Original Message----- > From: Ugo Cei [mailto:[EMAIL PROTECTED]] > Sent: 8. October 2002 14:13 > To: [EMAIL PROTECTED] > Subject: Re: XML stylesheet processing instruction > > > 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]> > --------------------------------------------------------------------- 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]>