[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Writing out '<', not '<'.
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
|
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
|