This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Formatted node to variable
- To: xsl-list at mulberrytech dot com
- Subject: Formatted node to variable
- From: "Hakan Pettersson" <hakanxsl15 at hotmail dot com>
- Date: Mon, 09 Oct 2000 17:47:25 GMT
- Reply-To: xsl-list at mulberrytech dot com
In order to get a pop-up window using JavaScript I want to have formatted
text assigned to a variable.
If "ListItem" contains "some text" I get:
"Before some text After"
But I want:
"Before <B>some text</B> After"
Is it possible?
My stylesheet:
<xsl:template match = "List">
<xsl:variable name="var">
<xsl:apply-templates select="ListItem"/>
</xsl:variable>
<xsl:value-of select="$var"/>
</xsl:template>
<xsl:template match = "ListItem">
Before
<B>
<xsl:value-of select="."/>
</B>
After
</xsl:template>
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list