Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

displaying webdings in xml

Status
Not open for further replies.

r0n1n

Programmer
Joined
Apr 20, 2004
Messages
1
Location
US
Hi all, i am new to xml and i am facing a problem while displaying a particular symbol from the Webdings font family, the character is the moon(character code 0xE0). How do i display the moon in the xml file?
Right now i am trying this code:

<xsl:attribute name="Style">
Font-family: "Webdings"
</xsl:attribute>
<xsl:variable name="moon" select="'0xE0'"/>
<xsl:value-of select="$moon"></xsl:value-of>

But it is displaying the Webding characters for "0","x","E" and "0" separately.

So how do i display the moon? Or any character code for that matter. help appreciated.
Thanks
 
'0xE0'

isn't a valid XML character reference. The proper representation is

&#xE0;

So try this for your variable declaration:

<xsl:variable name="moon" select="&#xE0;"/>
 
And you should add extra (single-)quotes:
<xsl:variable name="moon" select="'&#xE0;'"/>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top