XSLT: Output of character references

M

Markus Wiedenmaier

Hi,

I have an xml like this simplified sample:

<root>
<a u=0105/>
</root>

I want to transform this xml to html and want to put out the glyph of
unicode character 0105(hex).

I tried this:

<xsl:template match="a">
<xsl:text>&#x</xsl:text>
<xsl:value-of select="@u"/>
<xsl:text>;</xsl:text>
</xsl:template>

This occurs an error! Is it possible to do this?
Has someone an idea?

Thanks for your help
Bye
Markus
 
M

Markus Wiedenmaier

Great!Thanks for your fast help.
Bye
Markus
Janwillem Borleffs said:
Try this:

<xsl:template match="a">
<xsl:text disable-output-escaping="yes">&amp;#x</xsl:text>
<xsl:value-of select="@u"/>
<xsl:text>;</xsl:text>
</xsl:template>


JW
 
J

Janwillem Borleffs

Markus said:
I want to transform this xml to html and want to put out the glyph of
unicode character 0105(hex).

I tried this:

<xsl:template match="a">
<xsl:text>&#x</xsl:text>
<xsl:value-of select="@u"/>
<xsl:text>;</xsl:text>
</xsl:template>

This occurs an error! Is it possible to do this?
Has someone an idea?

Try this:

<xsl:template match="a">
<xsl:text disable-output-escaping="yes">&amp;#x</xsl:text>
<xsl:value-of select="@u"/>
<xsl:text>;</xsl:text>
</xsl:template>


JW
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top