Subject: Re: [xsl] group-adjacent problem From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx> Date: Wed, 13 Feb 2008 15:46:49 +0000 |
On 13/02/2008, Terry Ofner <tofner@xxxxxxxxxxx> 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/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] group-adjacent problem, Terry Ofner | Thread | RE: [xsl] group-adjacent problem, Michael Kay |
[xsl] group-adjacent problem, Terry Ofner | Date | RE: [xsl] group-adjacent problem, Michael Kay |
Month |