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]

Re: How to add HTML code to variables


You'll want to try:

  <xsl:copy-of select="$t1"/>

to preserve the structure of your 
result-tree-fragment valued variable.

_________________________________________________________
Steve Muench, Consulting Product Manager & XML Evangelist
Business Components for Java Development Team
http://technet.oracle.com/tech/java
http://technet.oracle.com/tech/xml
----- Original Message ----- 
From: "Harald Normann" <harald.normann@wts.se>
To: <xsl-list@mulberrytech.com>
Sent: Friday, February 04, 2000 4:40 AM
Subject: How to add HTML code to variables


| Hi,
| 
| does anyone know how to add HTML code to variables.
| I tried the following:
| 
| <xsl:variable name="t1">
|   <b>hello</b>
| </xsl:variable>
| 
| When accessing the variable t1 I only get the value "hello"; the HTML code
| is removed.
| 
| 
| TIA
| 
| /Harald
| 
| 
|  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
| 


 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]