[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

AW: Accessing values in a node-set using XPATH

Subject: AW: Accessing values in a node-set using XPATH
From: "Klunzinger, Dagmar" <Dagmar.Klunzinger@xxxxxxxxxxxxx>
Date: Tue, 11 Nov 2008 11:38:30 +0100
 AW: Accessing values in a node-set using XPATH
I would like to display only the values of an XML that are configured in a
separate Configuration file. As the data is structured it makes sense to
access the data using an XPATH. This can be done using dyn:evaluate() like in
the example below.

<xsl:template name="print">
   <xsl:param name="pos"/>
   <xsl:variable name="xpath">
select="document('config-szenario.xml')/config/Line/field[position() =
   <xsl:if test="$xpath">
       <xsl:variable name="valueofxpath">
             <xsl:value-of select="dyn:evaluate($xpath)"/>
          <xsl:value-of select="$valueofxpath"/>
       <xsl:call-template name="print">
           <xsl:with-param name="pos" select="$pos + 1"/>
However is there a possibility to perform this also on a nodeset? I would like
to pass a variable (e.g. comparing) and then call dyn:evaluate like shown
below. However it raises an error. It this somehow possible?

<xsl:value-of select="dyn:evaluate($comparing/$xpath)"/>

Thank you in advance

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.