[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: Writing out '-', not '<'.
Subject: Re: Writing out '-', not '<'.
From: "Mallikarjuna Sangappa" <malliks@xxxxxxxxxxx>
Date: Mon, 20 Sep 1999 12:10:19 PDT
|
Mike,
Which engine are u using to do the translation?
Mallik
From: Michael.Scepaniak@xxxxxxxxxxxxx
Reply-To: xsl-list@xxxxxxxxxxxxxxxx
To: <xsl-list@xxxxxxxxxxxxxxxx>
Subject: Writing out '<', not '<'.
Date: Mon, 20 Sep 1999 14:26:11 -0400
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 <. Section 7.2 of draft 13 of the spec. states
"Note
that text is processed at the tree level. Thus, markup of < 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 < (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
(<body
bgcolor="White">):
<xsl:variable name="body" select="'<BODY
bgcolor="White">'"/>
or
<xsl:variable name="body"><BODY
bgcolor="White"></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
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|