[docbook-apps] Exposing DocBook profiling information in HTML5 data elements

2014-01-08 Thread graeme
Hi there, I have a use case where I'd like to convert DocBook to HTML, whilst preserving the information from the 'revision' attributes of all original DocBook elements. I'd like to pass these through as an HTML5 'data' attribute (named 'data-revision'). This way, I can profile the document

Re: [docbook-apps] Exposing DocBook profiling information in HTML5 data elements

2014-01-08 Thread Jirka Kosek
On 8.1.2014 12:29, gra...@heliocentrik.net wrote: So I created a similar set of templates. However, they don't seem to be picking anything up, or adding the appropriate attributes to the created HTML elements. Your templates will never be called. You must modify existing template xsl:template

Odp: Re: [docbook-apps] Adding page number to olinks destroys text justification

2014-01-08 Thread Maria Lowas
Hi Bob, I've tested the issue with FOP 1.1 and there is no problem there. Everything is justified nicely and neatly. Thanks a lot for your help. Regards, Maria Dnia Wtorek, 7 Stycznia 2014 21:11 Bob Stayton b...@sagehill.net napisaƂ(a) Hi Maria, I believe this is an artifact of FOP 1.0. It

Re: [docbook-apps] Exposing DocBook profiling information in HTML5 data elements

2014-01-08 Thread graeme
Hi Jirka, Thanks for your advice. I was able to get it working with the following solution, incorporating changes to the common.html.attributes template as you suggested: xsl:import href=html/docbook.xsl / !-- Apply common attributes such as class, lang, dir --

[docbook-apps] DocBook at XML Prague pre-conference day

2014-01-08 Thread Jirka Kosek
Hi, as a part of the XML Prague conference (http://xmlprague.cz) there is possibility on Friday, February 14th to hold DocBook related session. If you want to show something interesting related to DocBook please apply for slot:

Re: [docbook-apps] Adding page number to olinks destroys text justification

2014-01-08 Thread Bob Stayton
Hi Maria, Now it looks like FOP 1.1 is not including the padding-right=10pt in the fo:inline when it computes the justification spacing on the line. That's a bug in FOP 1.1 that should be reported. I would suggest instead of using padding and a background image, that you use a foreground