Hi, I am having some fundamental problems with processing the following key. Here is a example:
Stylesheet:
Code:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="text"/>
<xsl:key name="wp-name-key" match="wp" use="@id"/>
<xsl:template match="/">
<xsl:for-each select="//xref">
<xsl:value-of select="key('wp-name-key', @href)/@name"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
XML
Code:
<root>
<wp id="A1234" name="test"/>
<xref href="image1.png"/>
</root>
Why is it that I have no output result?
Thanks,