Subject: [xsl] Can XSLT remember the occurrence of an element? From: Thorsten Scherler <thorsten@xxxxxxxxxx> Date: Wed, 27 Apr 2005 19:43:28 +0200 |
Hello list, can XSLT remember the occurrence of an element? e.g. XML: <forrest:view type="xhtml"> <forrest:contract name="meta"/> <forrest:hook name="container"> <forrest:contract name="grouplogo"/> <forrest:contract name="searchbox"/> <forrest:hook name="spacer" /> <forrest:contract name="nav"/> <forrest:contract name="content"/> </forrest:hook> <forrest:contract name="searchbox"/> <forrest:contract name="feedback"/> </forrest:view> e.g. XSL: <xsl:for-each select="forrest:view[@type=$format]//forrest:contract"> <xi:include href="cocoon://get.contract.{$format}.{@name}"/> </xsl:for-each> The xsl would include now *two* times the searchbox contract, but it *has to* be only one time. Any ideas how I could change the xsl to only include *one* instance of a contract despite it is *two or more* times called? Is there a way that xsl remembers the occurrence of an element in the above given example? TIA salu2 -- thorsten "Together we stand, divided we fall!" Hey you (Pink Floyd)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] intersection of different, Michael Kay | Thread | Re: [xsl] Can XSLT remember the occ, Joe Fawcett |
Re: [xsl] problem with handling con, Rahil | Date | Re: [xsl] problem with handling con, Jon Gorman |
Month |