Re: [xsl] Re:Re: [xsl] XSLT/XPATH 2.0 - except example.

Subject: Re: [xsl] Re:Re: [xsl] XSLT/XPATH 2.0 - except example.
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 23 Jul 2009 18:20:38 -0400
Michel,

I just reread my own post, and there's a small but important glitch --

At 06:01 PM 7/23/2009, I wrote:
<xsl:template match="xhtml:div[@class='center']">
  <xsl:copy>
    <xsl:apply-templates select="@* | node()" mode="remove"/>
  </xsl:copy>
</xsl:template>

Note that if you apply templates to attributes and child nodes in the 'remove' mode, you also have to match them in 'remove' mode to have them copied (or removed).


I left the 'remove' mode off the templates I then wrote to illustrate.

Cheers,
Wendell



======================================================================
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
======================================================================

Current Thread