Subject: Re: [xsl] 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 |
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>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Sorting a TEI <biblStruct> bi, Charles Muller acmul | Thread | Re: [xsl] Sorting a TEI <biblStruct, Syd Bauman s.bauman@ |
[xsl] Sorting a TEI <biblStruct> bi, Charles Muller acmul | Date | Re: [xsl] Sorting a TEI <biblStruct, Syd Bauman s.bauman@ |
Month |