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: [docbook-apps] "Edited by" label with multiple editors


When processing a document with multiple editors the EPUB3 titlepage is showing an "Edited by" label for each editor, rather than just the once.

I can fix the problem by updating xhtml/titlepage.xsl:210;

<xsl:if test="self::d:editor[position()=1] and not($editedby.enabled = 0)"

to

<xsl:if test="self::d:editor and position()=1 and not($editedby.enabled = 0)">

Is this a bug or perhaps something wrong on my end?


I'm using the latest "docbook-xsl-ns-snapshot" and parsing with Nokogiri (a RubyGEM), which itself uses libxml2.

Here's what's in the XML;

<book ...>
  <info>
    ...
    <authorgroup>
      ...
      <editor>
        <personname>
          <firstname>Jon</firstname>
          <surname>Doe</surname>
        </personname>
      </editor>
      <editor>
        <personname>
          <firstname>Timmy</firstname>
          <surname>Toe</surname>
        </personname>
      </editor>
    </authorgroup>
    ....

which with the current stylesheet becomes;

Edited by
Jon Smith

Edited by
Timmy Toe


Thanks,

Michael Cook


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