|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] AW: Dynamic stilesheet assignement
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@xxxxxxxxx]
> Gesendet am: Freitag, 13. Oktober 2000 18:13
> An: XSL-List@xxxxxxxxxxxxxxxx
> 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@xxxxxxxxx
>
>
> __________________________________________________
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








