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

xsl:copy and disable-output-escaping

Subject: xsl:copy and disable-output-escaping
From: Guenstig und Gut <guenstig-und-gut@xxxxxx>
Date: Tue, 07 Oct 2008 09:58:50 +0200
 xsl:copy and disable-output-escaping
Hi,

I'm using Saxon-B 9.0.0.6. I've following XSL-Example:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:template match="/">
<xsl:variable name="test"><xsl:text disable-output-escaping="yes"><![CDATA[<b>5</b>]]></xsl:text></xsl:variable>


       <xsl:copy-of select="$test"></xsl:copy-of>
   </xsl:template>
</xsl:stylesheet>

The output of $test in any browser is <b>5</b> but I want that the number 5 is bold. If I only use
<xsl:text disable-output-escaping="yes"><![CDATA[<b>5</b>]]></xsl:text>
it works. It also works using Xalan 2.70 processor. Can somebody help me?


That's only a example which shall explain my problem. I know that I could write <b>5</b> without <xsl:text> and without CDATA.

Thx Walter

ps: sorry for my bad english

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.