you will need to use something like the saxon:evaluate extension
function - I dont know what it is for other processors...

this will 'covert' a string to an xpath, but will make you stylesheets
non-portable (prob not an issue for you, and not much work to convert
anyway)

<xsl:apply-templates select="saxon:evaluate($var)"/>

cheers
andrew


-----Original Message-----
From: GB [mailto:[EMAIL PROTECTED]
Sent: 18 July 2002 11:12
To: [EMAIL PROTECTED]
Subject: Re: Parameters and the select attribute inside
xsl:apply-templates.


Hello,

For me this solution wont work while I don't know the value of value in
advance ....

"value" is an xpath string build dynamicaly and which allows me to find
an
extract of a whole big xml file.

I think about an other way of doing this : building a dynamic xsl which
contains  xsp call to update my select call. When the xsl is produced, I
will use it to transform my xml file.

The problem here is how can I do this inside cocoon ????

Any idea ????

Guy

>This wont work, you will need to use something like:
>
><xsl:choose>
>  <xsl:when test="$value=something">
>    <xsl:apply-templates select="whatever"/>
>  </xsl:when>
>  <xsl:when test="$value=somethingelse">
>    <xsl:apply-templates select="whatever"/>
>  </xsl:when>
>  ...
></xsl:choose>









---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 01/07/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 01/07/2002
 

Reply via email to