[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Sorting a TEI <biblStruct> bibliography by <surnam

Subject: Re: Sorting a TEI <biblStruct> bibliography by <surname>
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 20 Jul 2014 11:34:00 -0000
Re:  Sorting a TEI <biblStruct> bibliography by <surnam
Charles Muller acmuller@xxxxxxxxxxxxxxx wrote:

My code for handling <biblStruct> has been working fine for a number of
years, but I just recently tried to add the sort by <surname>. The
relevant part of the code looks like this (including my most recent
attempt at sorting, which generates error messages):

<!-- Bibliographical renderings --> <xsl:template match="TEI//listBibl"> <xsl:for-each select="biblStruct"> <xsl:sort select="*//surname"/> <p style="text-indent:-10mm;margin-left:10mm"> <xsl:if test="@n"> <span style="font-weight:bold;margin-left:2mm"> <xsl:value-of select="@n"/> <xsl:text>-&#x09;</xsl:text> </span> </xsl:if> <xsl:apply-templates/> </p> </xsl:for-each> </xsl:template>

Which errors exactly do you get?

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.