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] extending db5, html vs fo customization

Hi Dave,
The Website stylesheets are not in any namespace, so they would be DocBook 4 

If you are doing mixed DocBook 4 and 5 processing, then you could stay with 
the non-namespace-aware (original) stylesheets, and use the strip namespace 
feature again for any DocBook 5 documents.  The namespace-aware stylesheets 
were created because there were some circumstances when the strip namespace 
prefilter created some problems, because it is done by processing the 
document into a variable, then using exsl:nodeset() to convert that to a 
nodeset, and then applying templates to the nodeset.  A nodeset loses its 
xml:base and so relative filename references can get lost.

Bob Stayton
Sagehill Enterprises

----- Original Message ----- 
From: "DavePawson" <davep@dpawson.co.uk>
To: "Bob Stayton" <bobs@sagehill.net>
Cc: "docbook-apps" <docbook-apps@lists.oasis-open.org>
Sent: Monday, May 11, 2009 10:17 AM
Subject: Re: [docbook-apps] extending db5, html vs fo customization

> Bob Stayton wrote:
>>> Is there a separate set of stylesheets for v5 I should be
>>> using for fo and html? I thought the ns stripped version
>>> (i.e. main xslt stylesheets) were the preferred option today?
>> Actually, no, the preferred option today for DocBook 5 is to import the 
>> namespace-aware stylesheets with '-ns-' in the distribution filename. 
>> Those are the same as the main xslt stylesheets, except all element names 
>> are handled in the DocBook 5 namespace, and the no-longer-necessary 
>> namespace stripping operation is not performed.  Then you can use 
>> match="d:poem" in your stylesheet customization layers.
>> Bob Stayton
>> Sagehill Enterprises
>> bobs@sagehill.net
> So I should be picking up
> http://docbook.sourceforge.net/snapshots/docbook-xsl-ns-snapshot.zip
> which has the xref bugfix... Which may leave me with a problem.
> Is the website 'as was' or is that namespaced too please Bob?
> I guess I should now start splitting up my xsl stylesheets;
> docbook-xsl (basic 4.5 + website)
> docbook-xsl-ns (for v5)
> I really need to document all this! Processing docbook all over my
> disk I'm always getting caught out! If it's not the stylesheet
> names it's the graphics location!
> Thanks Bob.
> regards
> -- 
> Dave Pawson
> http://www.dpawson.co.uk
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

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