RE: RE: RE: [xsl] xsl:output method=xml

Subject: RE: RE: RE: [xsl] xsl:output method=xml
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 31 Jul 2003 11:36:36 -0400
Also, someone might point Frank to the plausability of applying an identity tranformation to achieve his goal.

The "XSLT identity transform" is well-documented in the archives of list and elsewhere (including in the XSLT Recommendation).

I heartily assent to Charles' verdict that the d-o-e thing is ugly here. It's worse than that. Newbies should be on notice that d-o-e will get you into trouble, not only in application, but also with old-timers who deride you and your code. Disable-output-escaping is like the drill in the electrician's toolbox: you use it, with apologies, only on screws that are totally stripped. (If you want to be a carpenter or a machinist, learn Perl, Python, Java or C.)

Cheers,
Wendell

At 04:53 PM 7/30/2003, Charles wrote:
That is uuuuuug-ly! There is almost never a reason to use disable-output-escaping. Trash everything inside the <xsl:for-each select="child::*"> element and replace it with this:

<xsl:element name="name()"><xsl:value-of select="text()"/></xsl:element>
--
Charles Knell
cknell@xxxxxxxxxx - email


======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread