Subject: RE: [xsl] Group Techniques by xslt From: Hermann Stamm-Wilbrandt <STAMMW@xxxxxxxxxx> Date: Fri, 4 Dec 2009 09:34:00 +0100 |
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: [xsl] 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Find the string and apply, Selvaganesh | Thread | Re: [xsl] Group Techniques by xslt, ac |
[xsl] Auto generate XSL software, Selvaganesh | Date | Re: [xsl] Group Techniques by xslt, ac |
Month |