[xep-support] xsl:sort in apply-templates

From: Martin Holmes <mholmes@uvic.ca>
Date: Thu Feb 24 2005 - 12:19:03 PST

Hi there,

I'm processing a list of bibliography elements, like this:

<listBibl>
         <biblStruct>...</biblStruct>
         <biblStruct>...</biblStruct>
         <biblStruct>...</biblStruct>
</listBibl>

I want to sort them by author or editor, but it doesn't seem to be working:

<xsl:template match="listBibl">
         <fo:list-block provisional-distance-between-starts="0"
provisional-label-separation="0" space-before="0.25cm" space-after="0.25cm">
                 <xsl:apply-templates>
                         <xsl:sort select="//author[1] | //editor[1]" />
                 </xsl:apply-templates>
         </fo:list-block>
</xsl:template>

Every variation I try of the select attribute has no effect at all; the
elements are all processed in the order of the document. Can anyone see
what I'm doing wrong here?

Cheers,
Martin

______________________________________
Martin Holmes
University of Victoria Humanities Computing and Media Centre
mholmes@uvic.ca
martin@mholmes.com
mholmes@halfbakedsoftware.com
http://www.mholmes.com
http://web.uvic.ca/hcmc/
http://www.halfbakedsoftware.com

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
Received on Thu Feb 24 12:58:52 2005

This archive was generated by hypermail 2.1.8 : Thu Feb 24 2005 - 12:58:52 PST