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

Convert String to (node-set)

Subject: Convert String to (node-set)
From: mxmodi@xxxxxxxxxxxxxxx
Date: Fri, 2 Feb 2001 18:15:29 -0600
convert node set variable xsl
I am trying to parse two separate XML documents in one XSL stylesheet. This
I can do!. My Q is, I am extracting the value of a node from XML doc. 1 and
then I want to pass that as XPATH for parsing XML doc 2.

A snippet of my XSL code is:

<xsl:stylesheet>
  <xsl:variable name="node" select="document('BER.xml')/CHANNEL/EVENT/NODE"
/>
  <xsl:variable name="chandoc" select="document('TSInsertBER.xml')" />

  <xsl:template match="/">
    <xsl:for-each select="$node//Node_path">
      <xsl:variable name="query" select="*[name()='$chandoc//.']" />
      <xsl:value-of select="$query" />
    </xsl:for-each>
</xsl:template>
<xsl:stylesheet>

THanks.

Maulik


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.