xsl-list
[Top] [All Lists]

Re: [xsl] Grouping problem. 2.0

2008-07-04 08:30:10
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)]"


--

        Martin Honnen
        http://JavaScript.FAQTs.com/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--