|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: "Group by" question
You should be able to "loop" on "doc", sorted by "address" and generate
an "address" element for the first "doc" with a certain address. Not
very efficient, but it should do the job:
<xsl:template match="/docs"> <xsl:for-each select="doc"> <xsl:sort select="@address" data-type="text"/> <xsl:variable name="this-address" select="@address"/> <xsl:if test="position()=1 or preceding-sibling::doc/@address != $this-address"> <xsl:address val="{$this-address}"> <xsl:apply-templates select="../doc[@address = $this-address}"/> </xsl:address> </xsl:if> </xsl:for-each> </xsl:template> <xsl:template match="doc"> <!-- process doc --> </xsl:template> Regards, Raffaele Sena ------------------- On Monday, March 22, 2004, at 08:58 AM, Hilder Sousa wrote: Hi :)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








