This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Formatted node to variable


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]