Next in thread → Next in month →

Re: [docbook-apps] extending db5, html vs fo customization

From
Bob Stayton <>
Date
2009-05-11T17:59:10+00:00
ID
015e01c9d262$28da1a60$6400a8c0@pazu
Thread
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 
compatible.

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" <>
To: "Bob Stayton" <>
Cc: "docbook-apps" <>
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
>> 
>
> 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
> XSLT XSL-FO FAQ.
> http://www.dpawson.co.uk
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>
Next in thread → Next in month →