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: Re: [docbook-apps] Re: sorting bibliography by authors


Hi,

I am answering myself :-)

I got it by date too. Though ".//" seems like two steps deep inside tag 
structure (I really don't have idea yet), by removing ".//" in my 
pubdate worked fine. It looks like this now:

      <xsl:apply-templates>
         <xsl:sort select=".//surname"/>
         <xsl:sort select="pubdate"/>
       </xsl:apply-templates>

Thanks again! :-)

d888pak@netscape.net wrote:
> Bob Stayton wrote:
> 
>> Hi,
>> The problem was that your document uses bibliodiv's, and the posted
>> customization was sorting biblioentry elements that were directly 
>> inside a
>> bibliography element.  So you just need to copy the bibliodiv template 
>> from
>> fo/biblio.xsl to your customization layer and change the 
>> xsl:apply-templates
>> to:
>>
>>    <xsl:apply-templates>
>>       <xsl:sort select=".//surname"/>
>>     </xsl:apply-templates>
>>
> 
> Thanks I got it sorted by authors surname, however there are similar
>  authors with different dates, can I sort it by date too after surname?
> By the way what is that ".//surname" means? I tried to put another line
> after that to sort by date like
> 
>     <xsl:apply-templates>
>        <xsl:sort select=".//surname"/>
>        <xsl:sort select=".//pubdate"/>
>      </xsl:apply-templates>
> 
> but sorting by date didn't work. Sorry If I am asking really stupid
> question. :-)
> 
> 
> Yoshihiro Toda wrote:
> 
>> Hi, Deepak.  Try these templates.
> 
> 
> Sorry Yoshihiro, I forgot to mention that I used biblioentry inside
> bibliodiv. Thanks for your help too.
> 
> Deepak K. Shrestha
> 
> 


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