Subject: [xsl] finding position in list of siblings From: "John C Cartwright" <John.C.Cartwright@xxxxxxxx> Date: Fri, 09 Jul 2004 12:56:57 -0600 |
<?xml version="1.0" encoding="UTF-8"?> <FAMILY> <SISTER/> <SISTER/> <BROTHER/> <BROTHER/> <BROTHER/> </FAMILY>
<xsl:template match="/"> <xsl:apply-templates select="/FAMILY/BROTHER" /> </xsl:template>
<xsl:template match="BROTHER"> <xsl:value-of select="count(BROTHER/preceding-sibling::*)" /> <xsl:value-of select="count(preceding-sibling::node()[.='BROTHER'])" />
</xsl:template> </xsl:stylesheet>
===================================================== John Cartwright Associate Scientist Geospatial Data Services Group CIRES, National Geophysical Data Center/NOAA (303) 497-6284 John.C.Cartwright@xxxxxxxx =====================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Using xsl:for-each-group , Jeni Tennison | Thread | Re: [xsl] finding position in list , Wendell Piez |
Re: [xsl] Figuring out for-group-by, Barry Lay | Date | RE: [xsl] finding position in list , cknell |
Month |