Subject: Re: Printing out variables with escaped text. From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Wed, 12 Apr 2000 20:52:42 -0700 |
I'm having a problem printing out variables that contain text declared with disable-output-escaping="yes" (and yes, I'm doing dodgy stuff, trying to create start and end tags where I shouldn't, before anyone tells me I shouldn't be doing this.)
Consider the following stylesheet - it surprised me that this didn't work.
<xsl:variable name="bob"> <xsl:text><fake_element_no_escaping> </xsl:text> </xsl:variable> <xsl:value-of select="$bob" disable-output-escaping="yes"/>
-- G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995) Web site: XSL/XML/DSSSL/SGML services, training, libraries, products. Practical Transformation Using XSLT and XPath ISBN 1-894049-04-7 Next instructor-led training: 2000-05-02,2000-05-11/12,2000-05-15, - 2000-06-12,2000-06-13,2001-01-27
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Printing out variables with escaped, Warren Hedley | Thread | Re: Printing out variables with esc, G. Ken Holman |
Printing out variables with escaped, Warren Hedley | Date | Re: Printing out variables with esc, G. Ken Holman |
Month |