|
Subject: Re: [xsl] Error: XPTY0020: Leading '/' cannot select the root node of the tree containing the context item: the context item is an atomic value From: Michael Kay <mike@xxxxxxxxxxxx> Date: Mon, 10 Jan 2011 11:42:35 +0000 |
<xsl:template match="/">
<body>
<xsl:for-each select="tokenize(example/bar/@ids, ',')">
<xsl:value-of select="."/>:<xsl:value-of
select="key('index', .)" />
</xsl:for-each>
</body>
</xsl:template>
<xsl:variable name="root" select="/"/>
<xsl:template match="/">
<body>
<xsl:for-each select="tokenize(example/bar/@ids, ',')">
<xsl:value-of select="."/>:<xsl:value-of
select="key('index', ., $root)" />
</xsl:for-each>
</body>
</xsl:template>Michael Kay Saxonica
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Error: XPTY0020: Leading '/' , Dietrich Bollmann | Thread | Re: [xsl] Error: XPTY0020: Leading , Martin Honnen |
| [xsl] Error: XPTY0020: Leading '/' , Dietrich Bollmann | Date | Re: [xsl] Error: XPTY0020: Leading , Martin Honnen |
| Month |