This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] XSL sort expression for bibliography


Hello,
I'm trying to sort my bibliography according to author surname. First of all I don't know where to put the sort code(<xsl:sort>)? I first tried putting it inside the  match="bibliography" (biblio.xsl) template inside <xsl:apply-template/>. This sorts the entries but not the numbers?!?
 
Second question is about XSL if someone could help me phrase a proper XPath query to use in with the <xsl:sort>. This is how I want to sort: 
    ./author/surname
        or (if it does not exist)
    ./authorgroup/author/surname 
        or (if it does not exist)
    ./biblioset[@relation='journal']/author/surname
        or (if it does not exist)
    ./biblioset[@relation='journal']/authorgroup/author/surname
        or (if it does not exist)
    ./title
 
To make it even more complicated the author names are not sorted in the bibliography so I also need a way to find the alphabetical first surname in every case.
 
/William
 
 
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]