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: !-- Remove the indentation in

[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

[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

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 dl lists. For TOCs, you can reset the value of two params: xsl:param name=toc.list.typediv/xsl:param xsl:param name=toc.listitem.typediv/xsl:param For indices,

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: xsl:template match=d:tgroup name=tgroup (remove the d: namespace if you are using DocBook

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] part 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 hamil...@xmlpress.net: Hi Lars, I think it's just

Re: [docbook-apps] part 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 mediaobject/ to the spec file like this: t:titlepage t:element=part t:wrapper=fo:block t:titlepage-content t:side=recto title t:named-template=division.title