Subject: Re: [xsl] Sorting a TEI <biblStruct> bibliography by <surname> From: "Charles Muller acmuller@xxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Mon, 21 Jul 2014 03:07:55 -0000 |
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>-	</xsl:text> </span> </xsl:if> <xsl:apply-templates/> </p> </xsl:for-each> </xsl:template>
Which errors exactly do you get?
University of Tokyo Graduate School of Humanities and Sociology, Faculty of Letters Center for Evolving Humanities 7-3-1 HongE , BunkyE -ku Tokyo 113-8654, Japan
Web Site: Resources for East Asian Language and Thought http://www.acmuller.net
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Sorting a TEI <biblStruct, Martin Honnen martin | Thread | Re: [BULK] [xsl] Sorting a TEI <bi, Syd Bauman s.bauman@ |
Re: [BULK] [xsl] Sorting a TEI <bi, Syd Bauman s.bauman@ | Date | Re: [xsl] Sorting a TEI <biblStruct, Charles Muller acmul |
Month |