Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XSL disable-output-escaping

843834May 2 2006 — edited May 3 2006
Hi,
I have the next part of an XML file:

<?xml version="1.0" encoding="UTF-8"?>
<idiomas>
<element>
<titol><![CDATA[Angl�s]]></titol>
<url>/google.com</url>
<alt><![CDATA[Change to Angl�s]]></alt>
<language>en</language>
</element>
</idiomas>

I want to obtain the next html code transforming the XML with an XSL to HTML code:

<a title="Canviar a Castell�">Castellano </a>
<a title="Change to Angl�s">Angl�s </a>

but I obtain the next one:

<a title="Canviar a Castell�">Castellano</a>
<a title="Change to Angl�s">Angl�s</a>

because I don't know HOW CAN I MAKE THE "disable-output-escaping" in elements like href, title, lang or xml:lang
It seems that the "disable-output-escaping" only is available for xsl:value-of and xsl:text

This is part of my XSL file:

<?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:output method="html" version="4.0" encoding="UTF-8" indent="yes"/>
...
<a href="{url" title="{alt" tabindex="80" lang="{language}" xml:lang="{language}">
<xsl:value-of select="titol" disable-output-escaping="yes"/>
</a>
...

Anyone know how can I "disable-output-escaping" in elements accessed as {url}, {alt} ...

Thanks in advance.
Xavi

Message was edited by:
ffelipei_

Message was edited by:
ffelipei_
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 31 2006
Added on May 2 2006
4 comments
446 views