[Home] [By Thread] [By Date] [Recent Entries]
McDonald, Shaun wrote:
In case anyone is working on a solution to the problem presented in my Aha, I see. Sorry, missed that post, just spotted it. I misunderstood your question then, sorry. But there are a few redundancies here. The xsl:for-each is not needed. And the extra variable 'xx' is not needed either. You can change your code as follows (less lines, same results) <xsl:template match="n1:share">
<xsl:variable name="x" select="@item" />
<xsl:for-each select="document(@loc)//*[@id=$x]">
<xsl:value-of select="."/>
</xsl:for-each>
</xsl:template>-- Abel Braaksma http://www.nuntia.com
|

Cart



