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(_at_)aptaracor To
p.com>
<xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
cc
12/04/2009 05:56
AM Subject
RE: [xsl] Group Techniques by xslt
Please respond to
xsl-list(_at_)lists(_dot_)mu
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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--