If you really want to use the name instead of the character reference, you can do it like this:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY uarr "↑"><!-- Define character to use for "uarr" entity -->
]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:etc="...all the other namespaces..."
>
<xsl:template match="/">
I would like to point upwards here... ↑ </xsl:text>
</xsl:template>
</xsl:stylesheet>
referencing ↑ in Xslt
Hi,
I need to use the ↑ character in an Xslt file, but I get an error :
Reference to undeclared entity 'uarr'.
Is there a way to reference the character ↑ in Xslt?
Thanks for your help,
Anthony Candaele
Belgium
Have you tried ↑ instead?
Hey Anthony,
Sebastiaans solution works perfect for me.
This should also work, though a little long winded
<xsl:variable name="arrow">&uarr;</xsl:variable>
<xsl:value-of select="$arrow" disable-output-escaping="yes"/>
Rich
@Sebastiaan: Thanks Sebastiaan, this solution works perfect!
@Rich: Thanks for the alternative solution.
Have a great sunday,
Anthony
Hi all,
If you really want to use the name instead of the character reference, you can do it like this:
/Chriztian
is working on a reply...