[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Sorting a TEI bibliography by


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

Martin Honnen wrote:

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?

From <oXygen/> I get this message:


System ID: /mnt/win_d/docs/xml/xsl/biblStruct.xsl
Scenario: xml-stylesheet processing instruction
XML file: /mnt/win_d/docs/projects/gihwa/hyeonjeongnon/book/08bibliography.xml
Engine name: Saxon-PE 9.5.1.5
Severity: fatal
Description: XTTE1020: A sequence of more than one item is not allowed as the @select attribute of xsl:sort
Start location: 9:0
URL: http://www.w3.org/TR/xslt20/#err-XTTE1020



Regards,


Charles


-------------------


A. Charles Muller

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

Office: 03-5841-3735

<acmuller@xxxxxxxxxxxxxxx>

Web Site: Resources for East Asian Language and Thought
http://www.acmuller.net

H-Buddhism Zotero Bibliography: https://www.zotero.org/groups/h-buddhism_bibliography_project/items/collectionKey


Current Thread
Keywords
xml