Hi ,
The following code gets me the first div3 element w/in the odes document
(as expected):
<xsl:variable name="from" select="@from"/>
<xsl:variable name="docnode"
select="document('../texts/odes.xml')"/>
<xsl:message>
<xsl:value-of select="$docnode//div3"/>
</xsl:message>
But when I try to find an element whose id attribute is equal to the
value of the 'from' variable, I get an error saying "Unexpected token
[<function>] in path expression."
<xsl:variable name="from" select="@from"/>
<xsl:variable name="docnode"
select="document('../texts/odes.xml')"/>
<xsl:message>
<xsl:value-of select="$docnode//id($from)"/>
</xsl:message>
Sorry, if I dont understand this correctly, but error is that U are
looking /selecting the value of id elements from attribute. Is this
what U really want? It would help to see the xml file (atleast for me).