In a small XML conversion project I am working on, I am able to use the XSLT 1.0 translate()
function to convert to lowercase or uppercase as suggested in posts like this one, so that something like the following works fine:
<xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'" />
<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
<xsl:value-of select="translate(@value, $uppercase, $lowercase)" />
But really, I would prefer to use XSLT 2.0's lower-case()
function, but for the following:
<xsl:value-of select="lower-case(@value)" />
...Chrome outputs nothing, and Firefox gets "unknown" error 0x8060000e, which maybe suggests that the lower-case()
function isn't recognized. Perhaps my problem is something with the XML declaration line?:
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
...or is there something else I'm missing?