Hi Chris,
Yes, that template is out of date since it does not support author/orgname from DB5. Could you please file a bug report on the DocBook SourceForge site about it?

Including corpauthor from DB4 in the DB5 namespaced stylesheets is not a concern. Currently the stylesheets are written to support both DocBook 4 and 5. The namespaced version of the stylesheets for DocBook 5 are generated from the non-namespaced version by a script, so they are nearly identical except for the use of the namespace prefix on element matches.

Supporting both DB4 and DB5 with the same stylesheets is possible for two 
reasons:

1. Elements in both versions have the same meaning in DB5 as they do in DB4, in general.

2. In a pattern-matching language like XSLT, a stylesheet can contain patterns that never match, but don't create problems. Since corpauthor would not be seen in a DB5 document, that pattern would never match there. Likewise, adding support for author/orgname will not harm the processing of a DB4 document, as that pattern would not be seen there.

So far we have been able to maintain one set of stylesheets for both versions. This is highly desirable so they don't get out of synch.

Bob Stayton
Sagehill Enterprises
[email protected]


----- Original Message ----- From: "Chris Ridd" <[email protected]>
To: <[email protected]>
Sent: Wednesday, December 08, 2010 3:06 AM
Subject: [docbook-apps] Document properties in FOP are out of date


Hi,

In the current version of fo/fop1.xsl the PDF "Document Properties" seem to be set from something called "corpauthor":

<!-- Metadata support ("Document Properties" in Adobe Reader) -->
<xsl:template name="fop1-document-information">
<xsl:variable name="authors" select="(//author|//editor|//corpauthor|//authorgroup)[1]"/>

(Verified in trunk: <http://docbook.svn.sourceforge.net/viewvc/docbook/trunk/xsl/fo/fop1.xsl?revision=8944&content-type=text%2Fplain>)

That element doesn't seem to exist in DB 5, but was in 4.4. The replacement for <corpauthor> seems to be something like: <author><orgname>...</orgname></author>, but that doesn't seem to match up with the templates.

Are the templates wrong (out of date) or should I use different markup to get a "corporate" author into my manuals?

Cheers,

Chris



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to