[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] role for para
Hi Peter,I think this can be done without any customization by using DocBook profiling (conditional text), described here:
http://www.sagehill.net/docbookxsl/Profiling.htmlYou could use the profiling attribute @condition="html" or @condition="fo" (or @audience) on your different para elements. I don't recommend using @role, for reasons listed at the end of that chapter.
Bob Stayton Sagehill Enterprises email@example.com On 2/18/2014 7:50 AM, Peter Fleck wrote:
Hi all, I have been able to use "role" on /para/ tag for elements that I don't want printed in html (when the user prints in their browser) using css ( display: none !important;) eg, some parts of the header or footer. Is it possible to do something similar for FO and HTML. Something similar to *use.role.for.mediaobject* where you can tag up a different /para/ depending on the output. My problem is floating images. They work perfect for HTML output but I have to use a table in FO to get the same effect. However the HTML output using the table doesn't scale well when you change the browser or font size. It leaves a gap at the bottom of the paragraph. I wonder if it is feasible/sensible to set the *para* or *section* role for FO or HTML like we have for /mediaobjects/ so that I can write a para with floats for html and another with table for FO? Sorry if I'm being a bit convoluted over what may be fairly simple. Thanks for your help, Peter