Thanks for your answer, yet it doesn't fit my needs : you're refering to
how define variables inside a XSLT. For my part, I need to know how to
define XPath variables outside a XSLT, that means :

- within the XPath expression itself (I think there's finally no way)
- through the Xalan API (I found a VariableStack class, but I don't
understand how to use it, or if I should use it in my purpose anyway).

Has anyone done such a thing ?

-----Message d'origine-----
De : Richard Cao [mailto:[EMAIL PROTECTED]
Envoye : vendredi 24 octobre 2003 18:01
A : Zeljko Velaja
Cc : [EMAIL PROTECTED]
Objet : Re: binding variables to values in XPath






Hi,

Have a look at "xsl:variable" and "xsl:param" in the XSLT [1]
specifications for binding variables.

[1] http://www.w3.org/TR/xslt#variables

Thanks,

Richard Cao
XSLT Development, Toronto IBM Lab
(905) 413-2454 T/L 969-2454
[EMAIL PROTECTED]



 

             "Zeljko Velaja"

             <[EMAIL PROTECTED]

             iendly.com>
To 
                                       <[EMAIL PROTECTED]>

             10/24/2003 11:53
cc 
             AM

 
Subject 
                                       binding variables to values in

                                       XPath

 

 

 

 

 

 





I'm reading in the XPath language specification that the lexical
production
$QName retrieves the value of the QName variable. Yet I cannot find
anything in the XPath specification to declare a new variable and assign
a
value to it within an XPath expression. Did I miss something in the
specification or does Xalan define a language extension wich should be
usefull in what I mean to do ?

Reply via email to