[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Adding processing based on an attribute value
Jeff, I'm not sure that I completely understand your situation, but would profiling help? You can assign attributes to tags you want to have included or excluded in the final PDF (e.g. <para customer="supplier1">blah blah blah</para>). http://www.sagehill.net/docbookxsl/Profiling.html Dave On Mar 20, 2008, at 5:10 PM, Jeff Hooker wrote: > Hi all, > > I'm using Docbook XSL 1.73.2 and FOP 0.93. > > Is there any straightforward way of checking to see if every element > in a document has a specific attribute attached, and if, so adding > some additional attributes to its block or inline element in the FO > output, and doing this without having to rewrite vast stretches of > the stylesheets? > > The basic need is that in my current PDF output, my reviewers have > no way of knowing if the content they're viewing is aimed at a > specific audience (small parts of many documents are specific to > certain suppliers or customers), so I'd like to cycle through every > element and add some styling to the block or inline element (i.e. > make it red) in the event that it is audience-specific. So far I > can't find any way of doing this that doesn't involve a mass of > element-level modifications, to the point where my modification > layer basically contains most of the FO stylesheets. > > Am I overcomplicating this? Any advice on a more intelligent > approach would be appreciated. > > Regards, > Jeff. > > --------------------------------------------------------------------- > 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]