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]

Re: [docbook-apps] isbn formatting


Sam Steingold wrote:

I want the <isbn> element to be rendered as "ISBN 0-201-10088-6" and not
just "0-201-10088-6" as it is now (both XHTML and FO):
<https://sourceforge.net/tracker/?func=detail&atid=373750&aid=1064041&group_id=21935>

I tried this:

<xsl:template match="isbn">
 <div class="isbn">ISBN <xsl:apply-templates/></div>
</xsl:template>

but it did not help
(what's the difference between apply-templates and apply-imports, BTW?)

You have your ISBN element inside biblioentry, I suppouse. Then following code should work:


<xsl:template match="isbn" mode="bibliography.mode">
  <fo:inline>
    <xsl:text>ISBN&#160;</xsl:text>
    <xsl:apply-templates mode="bibliography.mode"/>
    <xsl:value-of select="$biblioentry.item.separator"/>
  </fo:inline>
</xsl:template>

--
------------------------------------------------------------------
  Jirka Kosek     e-mail: jirka@kosek.cz     http://www.kosek.cz
------------------------------------------------------------------
  Profesionální školení a poradenství v oblasti technologií XML.
     Podívejte se na náš nově spuštěný web http://DocBook.cz
       Podrobný přehled školení http://xmlguru.cz/skoleni/
------------------------------------------------------------------

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


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