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] 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/
------------------------------------------------------------------

S/MIME Cryptographic Signature



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