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: orgname & orgdiv bug ?


orgname and orgdiv content is concatenated with
fo docbook stylesheet SVN id 5945.
(Debian sid Version: 1.71.0.dfsg.1-1)

It also does not work with SNAPSHOT_2006-09-26.
from http://docbook.sourceforge.net/snapshots/docbook-xsl-snapshot.zip
tested today.

I have only tested the fo stylesheet for each distribution.
I have not tested how this works with Docbook 5 and the <info> container.

Should I file it as a bug here ?
or should I just report it here.

Details :

The following xml file :
<?xml version="1.0" encoding='UTF-8'?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
<article lang="en">
	  <orgname>Acne Inc.</orgname>
	  <orgdiv>Work Division</orgdiv>
    <title>Iteresting section contributed by Mr Doe</title>
      Testing the fo stylesheet.

According to http://www.docbook.org/tdg/en/html/affiliation.html
affiliation ::=
the tags have to be in that order.

Produces this fo with docbook.xsl
 $Id: docbook.xsl 5945 2006-05-07 07:19:24Z bobstayton $
from the Debian sid package installation.

java net.sf.saxon.Transform -o test.fo test.xml

==== cut ====
<fo:block>Mr. John Doe</fo:block><fo:block>ACNE<fo:block>Worker</fo:block>Acne
Inc.Work Division</fo:block>
==== end cut ====

Acne Inc. and Work Division is concatenated.

With a Customization layer :
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"

<xsl:import href="/usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl"/>

<xsl:template match="orgname" mode="titlepage.mode">
     <xsl:apply-templates mode="titlepage.mode"/>

<xsl:template match="orgdiv" mode="titlepage.mode">
     <xsl:apply-templates mode="titlepage.mode"/>

It they are separated. I am not sure if I add to many fo:blocks but the pdf
looks OK at least.

Mr. John Doe
Acne Inc.
Work Division

instead of

Mr. John Doe
Acne Inc.Work Division


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