xsl-list
[Top] [All Lists]

Re: [xsl] Sorting a TEI <biblStruct> bibliography by <surname>

2014-07-20 22:08:09
Martin Honnen wrote:

Charles Muller acmuller(_at_)l(_dot_)u-tokyo(_dot_)ac(_dot_)jp 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 Hongō, Bunkyō-ku
Tokyo 113-8654, Japan

Office: 03-5841-3735

<acmuller(_at_)l(_dot_)u-tokyo(_dot_)ac(_dot_)jp>

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



--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>