Re: [docbook-apps] Titlepage

2012-06-26 Thread Bob Stayton
Hi Lars, Just to be clear here, I'm not advocating that you use the titlepage spec file system. The titlepage spec file and associated stylesheet is most useful to those users of DocBook XSL that do not know the XSL language. It was designed to allow a non-technical user to generate XSL for a c

Re: [docbook-apps] Titlepage

2012-06-26 Thread Bob Stayton
Hi Lars, Actually, adding an image to the part title page is possible with the titlepage spec file. If you add to the spec file like this: Processing this will add a template matching on info/mediaobject to part.titlepage.recto: select="info/mediaobject"/> If you then add a

Re: [docbook-apps] Titlepage

2012-06-26 Thread Lars Vogel
Hi Richard, thanks. I give part.titlepage.recto a try. I also have plans to add a image to the part titlepage (in the future) and as far as I know this is not supported with the template. Best regards, Lars 2012/6/26 Richard Hamilton : > Hi Lars, > > I think it's just part.titlepage.recto. > > H

Re: [docbook-apps] Supporting WAI-ARIA specification

2012-06-26 Thread Jirka Kosek
On 26.6.2012 14:23, robert wrote: > I'm using DocBook XSL stylesheets to generate XHTML files. Those must > conform to the WAI-ARIA specification. That's quite strange requirement. ARIA is used to annotate *web applications* not static web pages in order to allow interaction with various widgets

Re: [docbook-apps] Adding custom attributes to body and table

2012-06-26 Thread Bob Stayton
Hi Robert, The body element is easy, see: http://www.sagehill.net/docbookxsl/BodyAtts.html For tables, not so easy. You would need to copy this template from xhtml/table.xsl to your customization layer: (remove the d: namespace if you are using DocBook 4 instead of DocBook 5). That is the

Re: [docbook-apps] Supporting WAI-ARIA specification

2012-06-26 Thread Bob Stayton
Hi Robert, I don't have any experience implementing WAI-ARIA conformance, but I can tell you what would need customization to replace lists. For TOCs, you can reset the value of two params: div div For indices, you will need to modify the XSL templates. There are three indexing methods avail

[docbook-apps] Supporting WAI-ARIA specification

2012-06-26 Thread robert
Hi, I'm using DocBook XSL stylesheets to generate XHTML files. Those must conform to the WAI-ARIA specification. I've noticed that by default HTML files output by the DB XSL violate the specification. For example, the specification forbids the use of list elements for formatting and DB XSL use co

[docbook-apps] Adding custom attributes to body and table

2012-06-26 Thread robert
Hi I'm using DocBook XSL stylesheets to generate XHTML files. I would like my output HTML files to contain some custom attributes, mainly for the body and table elements. For the body element, the value of the attribute is always the same so it could be hardcoded into stylesheets. So the question

Re: [docbook-apps] Reducing the top-margin and botton margin in programlisting

2012-06-26 Thread Lars Vogel
Hello Bob, thanks a bunch for clarifying my misunderstanding. I adjusted my regular expression which I use in my Ant script to strip out trailing spaces to delete also the line break. For reference here is the Apache Ant regular expression I use: