[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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>
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
[xsl] xsl:copy and disable-output-escaping
Subject: [xsl] xsl:copy and disable-output-escaping From: Guenstig und Gut <guenstig-und-gut@xxxxxx> Date: Tue, 07 Oct 2008 09:58:50 +0200 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] matching elements by name, Andrew Welch | Thread | Re: [xsl] xsl:copy and disable-outp, David Carlisle |
RE: [xsl] <xsl:output indent="yes"/, Bradley, Peter | Date | Re: [xsl] xsl:copy and disable-outp, David Carlisle |
Month |