This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Re: isbn formatting
- From: Sam Steingold <sds at gnu dot org>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Sun, 14 Nov 2004 13:12:40 -0500
- Subject: [docbook-apps] Re: isbn formatting
- Cancel-lock: sha1:vvDIFsHvwd093OaBtT9oYtPNQnY=
- Organization: disorganization
- References: <uk6so8pvs.fsf@gnu.org> <41976CE2.20203@kosek.cz>
- Reply-to: sds at gnu dot org
> * 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 </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!