|
Subject: Re: [xsl] Terminate <xsl:for-each> From: "Joris Gillis" <roac@xxxxxxxxxx> Date: Sat, 03 Sep 2005 11:57:40 +0200 |
Using my logic in my sytlesheets, all the <text:user-field-get> are captured, is there a possibility that when <for-each> select <text:bookmark-end text:name="___"/>, <for-each> will automatically be terminated, and the next <text:bookmark-start text:name="___"/> will be the one to process.
<xsl:key name="bookmark" match="*" use="self::node() [preceding::text:bookmark-start[1]/@text:name = following::text:bookmark-end[1]/@text:name] /preceding::text:bookmark-start[1]/@text:name"/>
<xsl:template match="text:root"> <root> <xsl:apply-templates select=".//text:bookmark-start"/> </root> </xsl:template>
<xsl:template match="text:bookmark-start">
<xsl:element name="{@text:name}">
<xsl:for-each select="key('bookmark',@text:name)[self::text:user-field-get]">
<tag><xsl:value-of select="."/></tag>
</xsl:for-each>
</xsl:element>
</xsl:template>regards, -- Joris Gillis (http://users.telenet.be/root-jg/me.html) Veni, vidi, wiki (http://www.wikipedia.org)
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Terminate <xsl:for-each>, aaron apigo | Thread | Re: [xsl] Terminate <xsl:for-each>, Joris Gillis |
| Re: [xsl] XSLT on the server side, M. David Peterson | Date | Re: [xsl] Terminate <xsl:for-each>, Mukul Gandhi |
| Month |