> 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
----- Original Message -----
From: "DavePawson" <>
To: "Bob Stayton" <>
Cc: "docbook-apps" <>
Sent: Monday, May 11, 2009 9:14 AM
Subject: Re: [docbook-apps] extending db5, html vs fo customization
> Bob Stayton wrote:
>> Hi Dave,
>> I'm not quite clear what's going on here. The stylesheets generate a red
>> copy of any document elements for which it has no template match. But it
>> also generates an error message about what element and what namespace it
>> is in. Are you getting such messages?
>
>
>
>
>>
>> You mentioned namespace stripping. If you are using the xsl-ns
>> namespace-aware stylesheets, there is no preprocessor step to strip the
>> namespace from DB5 elements. That only happens when you process a DB5
>> document with the non-namespace-aware stylesheets. Which stylesheet set
>> are you using?
>
> docbook-xsl/fo/docbook.xsl with your 1.75 stylesheets, hence my
> assumption about the namespace stripping? I get the message
>
> Note: namesp. cut : stripped namespace before processing Dave
> Pawson
> Note: namesp. cut : processing stripped document Dave
> Pawson
> Making portrait pages on A4 paper (210mmx297mm)
> done
>
> etc.
>
> Resolved by adding, in my customization layer
>
> <xsl:template match="poem">
> <fo:block >
> <xsl:apply-templates/>
> </fo:block>
> </xsl:template>
>
> I.e. no namespace. Now processes OK, so I guess
> that is being called up post your namespace stripping?
>
> 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?
>
> regards
>
>
>
>
>
>
>
>>
>> Bob Stayton
>> Sagehill Enterprises
>>
>>
>>
>> ----- Original Message ----- From: "DavePawson" <>
>> To: "docbook-apps" <>
>> Sent: Monday, May 11, 2009 2:47 AM
>> Subject: [docbook-apps] extending db5, html vs fo customization
>>
>>
>>> I've a namespace problem which I think is interim, awaiting a full
>>> set of xslt 2.0 stylesheets !
>>>
>>>
>>> I've extended docbook to include a poem.
>>>
>>> <poem xmlns="http://docbook.org/ns/docbook">
>>> <author>Irene Jones</author>
>>> <dateline>1960-70</dateline>
>>>
>>> I'm using the snapshot stylesheets.
>>>
>>> For HTML it seems to be working fine. All my templates are namespaced.
>>>
>>> In my customization layer I've added templates
>>> for (namespaced) elements and it's all working well.
>>>
>>> For the fo output it isn't.
>>>
>>> I've added both namespaced and non-namespaced templates
>>> and .... I'm getting 'red' marked up raw XML in the PDF
>>> from xep.
>>>
>>> I've a feeling its to do with the namespace stripping
>>> stage, and I can't figure out which way round it should be.
>>>
>>> Any thoughts please?
>>>
>>>
>>> regards
>>>
>>> --
>>> Dave Pawson
>>> XSLT XSL-FO FAQ.
>>> http://www.dpawson.co.uk
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail:
>>> For additional commands, e-mail:
>>>
>>>
>>>
>>
>>
>
>
>
> regards
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> http://www.dpawson.co.uk
>
>