|
Subject: [xsl] Yet Another Sorting Problem From: Allin Cottrell <cottrell@xxxxxxx> Date: Wed, 28 Jul 2004 11:16:42 -0400 (EDT) |
* each bibliography-entry element has an "authorlist" element. * an authorlist has one or more "author" elements, which have attributes such as surname, fist name, initials.
<xsl:template match="bibliography">
<xsl:for-each select="book|journalarticle|paper">
<xsl:attribute name="auhash">
<xsl:for-each select="authorlist/author">
<xsl:value-of select="@surname"/>
<xsl:value-of select="@initials"/>
</xsl:for-each>
</xsl:attribute>
</xsl:for-each>
<xsl:apply-templates select="book|journalarticle|paper">
<xsl:sort select="@auhash"/>
<xsl:sort select="pubdate"/>
</xsl:apply-templates>
</xsl:template>-- Allin Cottrell Department of Economics Wake Forest University, NC
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] for-each inside an attrib, Wendell Piez | Thread | RE: [xsl] Yet Another Sorting Probl, Michael Kay |
| RE: [xsl] for-each inside an attrib, Michael Kay | Date | Re: [xsl] How to produce a record o, Wendell Piez |
| Month |