This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
AW: Dynamic stilesheet assignement
- To: xsl-list at mulberrytech dot com
- Subject: AW: Dynamic stilesheet assignement
- From: "Schmitt, Christian" <Christian dot Schmitt at dresdner-bank dot com>
- Date: Mon, 16 Oct 2000 10:39:04 +0200
- Reply-To: xsl-list at mulberrytech dot com
Hi Massimo,
we have two stylesheets that are called in sequence. The first stylesheet is
always the same. The secon depends on various things. So in our first
stylesheet we have something like:
<?xml version="1.0"?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="output"/>
<xsl:template match="/">
<xsl:processing-instruction name="cocoon-process">
type="xslt"
</xsl:processing-instruction>
<xsl:processing-instruction name="xml-stylesheet">
type="text/xsl"
href="<xsl:value-of select="$output"/>"
</xsl:processing-instruction>
<!-- more stuff goes here -->
</xsl:template>
</xsl:stylesheet>
Hope this helps,
Christian
> -----Ursprüngliche Nachricht-----
> Von: massimo cravero [mailto:mcravero@yahoo.com]
> Gesendet am: Freitag, 13. Oktober 2000 18:13
> An: XSL-List@mulberrytech.com
> Betreff: Dynamic stilesheet assignement
>
> hi.
>
> i'm trying to build a publishing system via the cocoon
> server.
>
> i have a number of XML datasheets and XSL
> stylesheeets: how can i dynamically join them each
> other ?
> in other words, how can i dynamically change the
> assignement
> <?xml-stylesheet type="text/xsl" href="mysheet.xsl"?>
> in the XML file ?
>
> thanks in advance to everyone.
>
>
>
> =====
> massimo cravero
> mcravero@yahoo.com
>
>
> __________________________________________________
> Do You Yahoo!?
> Get Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list