This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Convert String to (node-set)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]