xsl-list
[Top] [All Lists]

Re: [xsl] group-adjacent problem

2008-02-13 08:47:26
On 13/02/2008, Terry Ofner <tofner(_at_)comcast(_dot_)net> wrote:
I need to process all the elements inside the story element. One
thing I need to do is group the <matching_group> elements. Here is
one of the templates I have tried to do this:

<xsl:template match='Story[child::matching_group]'>
<xsl:for-each-group select="*" group-adjacent="name()">
<xsl:if test="self::matching_group">
...
This works to group the <matching_group> elements. However, it cuts
the <ma>, <sa>, and <es> elements from the result:
...
Any hints would be appreciated.

you've got:

<xsl:if test="self::matching_group">

remove that and the other elements will be processed...


-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

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

<Prev in Thread] Current Thread [Next in Thread>