Re: [xsl] Grouping problem. 2.0

Subject: Re: [xsl] Grouping problem. 2.0
From: Dave Pawson <davep@xxxxxxxxxxxxx>
Date: Fri, 04 Jul 2008 16:43:17 +0100
Martin Honnen wrote:
Dave Pawson wrote:

        <xsl:apply-templates
          select="following-sibling::para[preceding::title[1]=$this]"
          mode='group'/>

I think you want to compare node identity so with XSLT 2.0 you should do
select="following-sibling::para[preceding::title[1] is $this]"
or with XSLT 1.0 you should compare the generate-id results:
select="following-sibling::para[generate-id(preceding::title[1]) = generate-id($this)]"



That parts working fine Martin. It's just the numbering!

It is 2.0 btw.


regards


--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

Current Thread