Subject: Re: [xsl] xsl Date Sorting referencing ID and data in a different Node From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Wed, 08 May 2002 01:57:00 +0200 |
XSL:
<?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:key name="distinct-region" match="rep/company/application/region_name" use="text()"/>
<xsl:template match="/">
<xsl:for-each select="rep/company/application/region_name[generate-id()=generate-id(key('distinct-region', text()))]">
<xsl:value-of select="text()"/>
<xsl:for-each select="key('distinct-region', text())">
<xsl:variable name="appid" select="parent::application/@id"/>
<xsl:value-of select="parent::application/ssn"/>
<xsl:value-of select="ancestor::rep/stages/application[@idref=$appid]/closedate"/>
<xsl:value-of select="ancestor::rep/stages/application[@idref=$appid]/current"/>
</xsl:for-each>
</xsl:for-each> </xsl:stylesheet>
</xsl:template>
Thanks in advance .. -Kumar
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] xsl Date Sorting referencing , KUMAR NINGASHETTY | Thread | [xsl] xsl/xml, Simon Choy |
RE: [xsl] conditional html, Stuart Celarier | Date | Re: [xsl] limiting preceding axis b, Joerg Heinicke |
Month |