I think this isn't possible but would like to have a definitive answer.
XML:
<agentlang>French</agentlang>
...
<books>
<book>
<title>My Book</title>
<author>Me</author>
</book>
<book>
<title>XPath 101</title>
<author>You</author>
</book>
...
</books>
.....
<translations>
<translation English="title" French="titre" German="Titel" />
<translation English="author" French="auteur" German="Autor" />
</translations>
then in the XSL there is a simple transform of the main books info, but I want the headers to be translated according to the translation xml- something like this will work:
<xsl:value-of select="//translation[@English='title']/@French"/>
<xsl:value-of select="//translation[@English='Author']/@French"/>
But I want to replace the attribute @French with the agentlang value from the XML
I'm using MSXML / XSLT 1.0
Is there any way this can be done?