How to write a query in XSLT2.0 using variables?

Bleceabuchbew

New Member
I want to use 2 variables called SOURCE and DEST.In that manner my perl script will useSOURCE="Bonn";DEST="Berlin";Then I will call the xslt2.0 transformation from my perl script.\[code\]<xsl:param name="SOURCE"/><xsl:param name="DEST"/><xsl:variable name="start" select="//S[@id=$SOURCE]/T[@id=$DEST]"/><!--<xsl:variable name="start" select="//S[@id='Paris']/T[@id='London']"/> -->\[/code\]It happens that I do not write correctly the line (as this xslt foes not return any rows):\[code\]<xsl:variable name="start" select="//S[@id=$SOURCE]/T[@id=$DEST]"/>\[/code\]Could you kindly correct my XSLT syntax ?
 
Back
Top