[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
Re:  Group Techniques by xslt
... 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

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.