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] Custom numbering scheme for a DocBook document(legal style stylesheet)

Right of the bat i think the problem is that you're trying to call an XSL stylesheet from a CSS one. CSS and XSL are two completely different animals and I don't think they were ever meant to work the way you're trying.

Take a look at Bob Sayton's book, particularly the section n creating customization layers. http://www.sagehill.net/docbookxsl/CustomMethods.html#CustomizationLayer ; I think that'll help you achieve  your objective.


2010/10/4 Néstor Amigo Cairo <nestor@aberi.org>

I'm using dblatex v. 0.2.12-4 (GNU/Linux Ubuntu Lucid 10.04 64bit).


I'm trying to number DocBook document in the 'legal' (lawyer) style, to

1 Chapter one
 Article 1. Article one
 Article 2. Article two
2 Chapter two
 Article 3. Article three (*not* 'one' again)
 Article 4. Article four (*not* 'two' again)


To achieve that, I have modified a stylesheet, which can be found in:


to be able to include it in a stylesheet (renamed as 'style.xsl'), that
I call style.css:

<?xml version="1.0"?>

 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   <xsl:import href=""style.xsl"/>  </xsl:stylesheet>

That I include at process time:

#dblatex estatutos.xml -p style.css -o estatutos.pdf

I add some lines at the end of the file style.xsl which are the

http://www.dpawson.co.uk/xsl/sect2/N5758.html#d7876e154 (recommended
here, but simplified)

 <xsl:template match="sect1">
     <xsl:number level="any" from="chapter" format="1. "/>

But this doesn't work, because I loose all the default style, I only get
the number (fortunately, in the correct sequence). But no bold text, no
new lines, no title text itself...

Mi exact doubt is: how can I add the parameter level="any" (by default,
it's 'single') to a stylesheet without breaking it?

Of course, I can attach the documents if necessary.

Thank you!


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]