[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Writing out '<', not '&lt;'.

Subject: Writing out '<', not '&lt;'.
From: Michael.Scepaniak@xxxxxxxxxxxxx
Date: Mon, 20 Sep 1999 14:26:11 -0400
not lt

All,

I'd like to assign the string "<body bgcolor="White">" to an xsl:variable and
then output that variable as part of my HTML output, but I am unable to do it.
It always comes out as &lt;.  Section 7.2 of draft 13 of the spec. states "Note
that text is processed at the tree level. Thus, markup of &lt; in a template
will be represented in the stylesheet tree by a text node that includes the
character <. This will create a text node in the result tree that contains a <
character, which will be represented by the markup &lt; (or an equivalent
character reference) when the result tree is externalized as an XML document."
Does this mean that what I'm trying to do is impossible?

I've tried all of the following, but get the same output everytime (&lt;body
bgcolor="White">):
<xsl:variable name="body" select="'&lt;BODY bgcolor=&quot;White&quot;&gt;'"/>
or
<xsl:variable name="body">&lt;BODY bgcolor=&quot;White&quot;&gt;</xsl:variable>
or
<xsl:variable name="body"><![CDATA[<body bgcolor="White">]]></xsl:variable>

and

<xsl:value-of select="$body"/>

Any and all help would be appreciated.


Mike....




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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.