Wondering what I'd use to evaluate the following to return 'Easy'
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="Answers.xsl"?>
<answers>
<answer>
<code>A</code>
<method>Easy</method>
</answer>
<answer>
<code>B</code>
<method>Way</method>
</answer>
<answer>
<code>C</code>
<method>Out</method>
</answer>
</answers>
The following "Answers.xsl" doesn't do it:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/answers/answer[code='A']">
<xsl:value-of select="lang_description" />
</xsl:template>
</xsl:stylesheet>
And while we're at it... why does the evaluated expression differ for
the following?
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/answers/answer[code='A']/lang_description">
<xsl:value-of select="." />
</xsl:template>
</xsl:stylesheet>
Thanks