RE: [xsl] removing nesting in data structure

Subject: RE: [xsl] removing nesting in data structure
From: "Andrew Welch" <awelch@xxxxxxxxxxxxxxx>
Date: Mon, 20 May 2002 12:46:01 +0100

Ive found a problem already... for some reason it applies subpara3
twice.  Why is this?  When I use Xselerator's debugger I can see that
when Im matching say subpara1 the line

<apply-templates select="subpara1|subpara2|subpara3"/>

matches both subpara2 and subpara3 - which is correct as it is creating
a union of the matches.   What select should I use instead?  Will I need
to split up the template?


<?xml version="1.0"?>
    <para>para 0</para>
      <para>subpara 1</para>
        <para>subpara 2</para>
          <para>subpara 3</para>

<xsl:stylesheet xmlns:xsl="";

<xsl:template match="/">

<xsl:template match="@*|node()">
    <xsl:apply-templates select="@*|node()"/>

<xsl:template match="para0|subpara1|subpara2|subpara3">
  <xsl:apply-templates select="subpara1|subpara2|subpara3"/>


Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
Version: 6.0.350 / Virus Database: 196 - Release Date: 17/04/2002

 XSL-List info and archive:

Current Thread