[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: Group Techniques by xslt
Subject: Re: Group Techniques by xslt
From: ac <ac@xxxxxxxxxxxxx>
Date: Fri, 04 Dec 2009 03:48:43 -0500
|
... or even simply:
<sc><xsl:value-of select="$level"/></sc>
as the "sc" is literal anyway?
ac
Hi Joga,
I verified in your thread that this is the first time CDATA appears in
your/Martin's stylesheet.
I have read and been told that using CDATA to generate XML is ALWAYS a bad
idea ...
Why do use
<xsl:text
disable-output-escaping="yes"><![CDATA[<sc]]></xsl:text><xsl:value-of
select="$level"/>
<xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
instead of
<xsl:element name="sc"><xsl:value-of select="$level"/></xsl:element>
?
Mit besten Gruessen / Best wishes,
Hermann Stamm-Wilbrandt
Developer, XML Compiler
WebSphere DataPower SOA Appliances
----------------------------------------------------------------------
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschaeftsfuehrung: Dirk Wittkopp
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
"Joga Singh
Rawat"
<jrawat@aptaracor To
p.com> <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
cc
12/04/2009 05:56
AM Subject
RE: Group Techniques by xslt
Please respond to
xsl-list@xxxxxxxx
lberrytech.com
Hi Martin,
We have modified the line where you are generating element (<sc[0-9]>) and
it is working fine. I want your expert comments on this, whether this can
cause any problem.
<xsl:if test="self::p[matches(@class,'^Head[0-9]+$')]">
<xsl:text
disable-output-escaping="yes"><![CDATA[<sc]]></xsl:text><xsl:value-of
select="$level"/>
<xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
</xsl:if>
<!--<xsl:element name="sc{$level}">-->
......
<!--</xsl:element>-->
<xsl:if test="self::p[matches(@class,'^Head[0-9]+$')]">
<xsl:text
disable-output-escaping="yes"><![CDATA[</sc]]></xsl:text><xsl:value-of
select="$level"/>
<xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
</xsl:if>
Thanks a lot!!!
Thanks
...JSR
|
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 |
|
|