Bob Stayton | 1 Mar 2007 03:45

chunking templates rearranged in snapshot

I've rearranged the templates in the chunking stylesheet files, and I'm 
hoping some people will try out the latest DocBook XSL snapshot and report 
any problems.

I've been trying to solve a long standing problem with the chunking 
stylesheets: how do you customize both the element formats and the chunking 
behavior, without creating conflicts between templates.  The chunking 
templates make extensive use of import precedence, but sometimes when 
another import layer is added for a customization, things would break.

The basic idea is that the chunking stylesheet imports the non-chunking 
stylesheet to get the templates that format elements.  The chunking 
stylesheet also defines templates that match on the same elements, but 
instead perform the chunking process to contain the formatted content.  The 
chunking version has import precedence over the non-chunking version, so it 
acts first.  Inside the chunking template, the xsl:apply-imports element is 
used to apply the non-chunking version to format the content.  So far so 
good.

The problem arises when a customization layer imports the chunking 
templates and then customizes the chunking behavior.  If the customized 
chunking template does xsl:apply-imports, it applies the most recent 
import, which is the original chunking template, not the element formatting 
template. Oops, broken output, most visibly noticed as chunks with header 
and footer but no content.

The chunking customization process tries to work around this by using 
xsl:include instead of xsl:import for the chunking templates.  That way you 
don't add another layer of import, so xsl:apply-imports will find the 
element formatting version.   The problem with xsl:include is that any 
(Continue reading)

Dave Pawson | 1 Mar 2007 09:58
Picon

Re: chunking templates rearranged in snapshot

Bob Stayton wrote:
> I've rearranged the templates in the chunking stylesheet files, 

> 
> So I rearranged the templates so that chunk-common.xsl now contains all 
> the named chunking templates, and chunk-code.xsl now contains all the 
> match templates.  The chunk.xsl stylesheet does xsl:import on 
> chunk-common.xsl (named templates are imported), and it does xsl:include 
> on chunk-code.xsl (match templates are included).  The manifest.xsl 
> templates were moved into one or the other as well, leaving an empty 
> module at this point.
> 
> Now a chunking customization will look a lot like the old way of doing 
> it (minus manifest.xsl):
> 
> <xsl:import href="mydocbook.xsl"/> <!-- contains any element format 
> customizations -->
> <xsl:import href="/path/to/chunk-common.xsl"/>
> <xsl:include href="/path/to/chunk-code.xsl"/>
> <!-- Add any customized chunking templates here -->

User feedback.

I usually want to either:
use the bare stylesheets - I import /path/to/html/docbook.xsl
or to chunk
use the chunk stylesheet - import /path/to/html/.... heck which one!
   -rw-rw-r--  1 dpawson dpawson  22203 Feb 28 18:33 chunk-code.xsl
   -rw-rw-r--  1 dpawson dpawson  71462 Feb 28 18:33 chunk-common.xsl
   -rw-rw-r--  1 dpawson dpawson  21116 Feb 28 18:33 chunker.xsl
(Continue reading)

Jacques Foucry | 1 Mar 2007 15:20

Docbook 5.0 cover statement

Hello people,

I read here that the new tag "cover" in docbook 5.0 is not totally supported.

Is that the reason the book title and author name are in light grey in the
PDF output file ?

How can I change the color ?

Thanks in advance,

Jacques Foucry
--

-- 
« Mac OS X Server à votre Service » en vente au Monde en Tique.
<http://www.lmet.fr/fiche.cgi?_ISBN=9782952726603>
Attention, il ne reste que 19 exemplaires.
Bob Stayton | 1 Mar 2007 17:48

Re: Docbook 5.0 cover statement

Hmm, I can find no mention of "cover" in the stylesheets at all. You should 
not get any effect from a cover element in info.  I don't think the grey 
text is coming from the cover element (try removing it to see).

The stylesheets don't add color to any titlepage elements by default. Is 
there a customization in use?

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs <at> sagehill.net

----- Original Message ----- 
From: "Jacques Foucry" <jacques <at> foucry.net>
To: <docbook-apps <at> lists.oasis-open.org>
Sent: Thursday, March 01, 2007 6:20 AM
Subject: [docbook-apps] Docbook 5.0 cover statement

Hello people,

I read here that the new tag "cover" in docbook 5.0 is not totally 
supported.

Is that the reason the book title and author name are in light grey in the
PDF output file ?

How can I change the color ?

Thanks in advance,

(Continue reading)

Ian Moor | 1 Mar 2007 18:42
Picon
Picon
Favicon

Slides using 1.72.0

During processing docbook full slides  with 1.72.0 stylesheet  xalan complains
of four lines in the html glossary.xsl  (the first line being 56 )

Illegal value: $language used for NMTOKEN attribute: lang

I don't have any glossary in the slides. 

    Ian Moor
Daniel Leidert | 1 Mar 2007 19:49
Picon

Re: Slides using 1.72.0

Am Donnerstag, den 01.03.2007, 17:42 +0000 schrieb Ian Moor:
> During processing docbook full slides  with 1.72.0 stylesheet  xalan complains
> of four lines in the html glossary.xsl  (the first line being 56 )

IMO mentioned in bug #1644881 and fixed in SVN revision 6562.
http://docbook.svn.sourceforge.net/viewvc/docbook?view=rev&revision=6562

> Illegal value: $language used for NMTOKEN attribute: lang
> 
> I don't have any glossary in the slides. 

But there are several imports of stylesheets from html/.

Regards, Daniel
Nigel hardy | 1 Mar 2007 20:23
Picon

Re: Slides using 1.72.0

Ian Moor wrote:
> During processing docbook full slides  with 1.72.0 stylesheet  xalan complains
> of four lines in the html glossary.xsl  (the first line being 56 )
>
> Illegal value: $language used for NMTOKEN attribute: lang
>
> I don't have any glossary in the slides. 
>   
I have had problems with these lines (not with slides) and have hacked 
around it. I don't fully understand it but will contribute my hacks to 
the discussion if nobody can do any better :-)

Nigel

--

-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%lt%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Nigel Hardy     Tel: +44 1970 622 434.   http://users.aber.ac.uk/nwh/
Dept. Computer Sci,  University of Wales, Aberystwyth, SY23 3DB, UK
Adran Cyfrifiadureg, Prifysgol Cymru,     Aberystwyth, SY23 3DB, UK 
Bob Stayton | 1 Mar 2007 20:58

Re: Slides using 1.72.0

Actually, this is already fixed in the SVN tree, and the latest snapshot 
build has the fix.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs <at> sagehill.net

----- Original Message ----- 
From: "Nigel hardy" <nwh <at> aber.ac.uk>
To: <docbook-apps <at> lists.oasis-open.org>
Sent: Thursday, March 01, 2007 11:23 AM
Subject: Re: [docbook-apps] Slides using 1.72.0

> Ian Moor wrote:
>> During processing docbook full slides  with 1.72.0 stylesheet  xalan 
>> complains
>> of four lines in the html glossary.xsl  (the first line being 56 )
>>
>> Illegal value: $language used for NMTOKEN attribute: lang
>>
>> I don't have any glossary in the slides.
> I have had problems with these lines (not with slides) and have hacked 
> around it. I don't fully understand it but will contribute my hacks to 
> the discussion if nobody can do any better :-)
>
> Nigel
>
> -- 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%lt%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
(Continue reading)

Kari Bourgeois | 1 Mar 2007 21:12

HOME link at the bottom of HTML

Can anyone tell me how to adjust the target of the home link at the 
bottom of HTML docbook production. Currently, the link goes to .html and 
I've been unable to figure out how to change this.

thanks
Kari

--

-- 
Kari Bourgeois
Technical Writer
Pyxis Technology
512-637-0519
kari <at> pyxistech.com
Dave Pawson | 2 Mar 2007 10:25
Picon

v5 xinclude

I'm curious why v5 has separate schemas for the xinclude version?

regards

--

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

Gmane