|
Subject: [xsl] Current Context and document() From: "Marty McKeever" <marty.mckeever@xxxxxxxxxx> Date: Fri, 21 Feb 2003 15:59:57 -0500 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] OT: Schema Q, Jeni Tennison | Thread | Re: [xsl] Current Context and docum, J.Pietschmann |
| RE: [xsl] Partial XSLT on grandchil, cknell | Date | [xsl] substring-before<tab/> substr, Deb Berkson |
| Month |