xsl-list
[Top] [All Lists]

Current Context and document()

2003-02-21 13:59:57

When iterating through elements in an external document('foo.xml'),
how can i access the current node of the internal DOM?  I thought current()
would work, but apparently not.

<xsl:template match="form">
  <xsl:for-each select="document('foo.xml')/root/item">

    <xsl:value-of select="."/>
    <!-- value of foo.xml/root/item[i] -->

    <xsl:value-of select="current()/@name"/>
    <!-- attribute of the matched form element ?? -->

  </xsl:for-each>
</xsl:template>


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



<Prev in Thread] Current Thread [Next in Thread>