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: isbn formatting


> * Jirka Kosek <wvexn@xbfrx.pm> [2004-11-14 15:34:10 +0100]:
>
> 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>

I suppose this is for FO, and it appears to work for XHTML as well when
I remove <fo:inline>.
Thanks a lot!

What does <fo:inline> do?
Why is it necessary?

--
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.honestreporting.com>
Illiterate?  Write today, for free help!



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