Subject: [xsl] group-adjacent problem From: Terry Ofner <tofner@xxxxxxxxxxx> Date: Wed, 13 Feb 2008 10:38:54 -0500 |
<xsl:template match='Story[child::matching_group]'> <xsl:for-each-group select="*" group-adjacent="name()"> <xsl:if test="self::matching_group"> <matching-group> <choices columns='1'> <xsl:for-each select="current-group()"> <xsl:apply-templates select="."/> </xsl:for-each> </choices> </matching-group> </xsl:if> </xsl:for-each-group> </xsl:template>
<title> <ChapNum>10</ChapNum> <ChapName>Character Development</ChapName> <matching-group> <choices columns="1"> <choice-a>falling action</choice-a> <choice-b>without reference to the audience</choice-b> <choice-c>struggle</choice-c> <choice-d>highest emotional intensity</choice-d> <choice-e>exaggerated</choice-e> <choice-f>direct address</choice-f> <choice-g>completion</choice-g> <choice-h>complications</choice-h> <choice-i>implied information</choice-i> <choice-j>convention of realistic theatre</choice-j> </choices> </matching-group> </title>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] fairly complex xslt not g, Michael Kay | Thread | Re: [xsl] group-adjacent problem, Andrew Welch |
Re: [xsl] fairly complex xslt not g, Martin Honnen | Date | Re: [xsl] group-adjacent problem, Andrew Welch |
Month |