xsl-list
[Top] [All Lists]

RE: <sub> into xsl

2002-11-11 01:22:38
Hi,

I want to extract a sub tag from xml into xsl:
e.g. it should look like this in the xsl: O<sub>2</sub> Login.
My data in the xml: <frameTop name="O&lt;sub&gt;2&lt;/sub&gt; Login"/>

With a <xsl:value-of select ... in the xsl I get this as an 
output in the
browser: O<sub>2</sub> Login

What am I doing wrong?

You're trying to write an XML parser in XSLT.

Change your approach, stick the frameTop/@name content into an element as XML, 
not as a string - e.g. as <frameTop><name>O<sub>2</sub> Login</name></frameTop>.

Cheers,

Jarno

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>