OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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
 
 
 


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]