You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Marco Magistrali <ma...@ariadne.it> on 2001/02/22 11:25:08 UTC

choose xsl stylesheet dinamically

Hi to everybody,

    is it possible to choose xsl stylesheet like this:

<?xml version='1.0' encoding='UTF-8'?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="../portlets/xsl/griglia.xsl"/>

<xsl:if test=" pippo='yes' ">
<xsl:include href="../portlets/xsl/toolbar_yes.xsl"/>
</xsl:if>

<xsl:if test=" pippo='no' ">
<xsl:include href="../portlets/xsl/toolbar_no.xsl"/>
</xsl:if>

<xsl:include href="../portlets/xsl/strumenti.xsl"/>
<xsl:output method="html"/>

<xsl:template match="page">.....

in which pippo is a variable that I put in xml file????

thanks

Marco