OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: RE: [docbook-apps] Excluding sections using profiling

Hi David,

 I had the same question.  Here was the response.  I checked it and it works great!!

> The problem is, what I'd really like to do is code something as
> condition=hidden, and then never have anything with condition=hidden
> show up in the results.  I'd like to get everything that has no value
> for the condition attribute but NOT the things that have
> condition=hidden. Is there a way to do this?  Is there a way to
> specify condition!=hidden (condition not equals hidden) or to somehow
> only get the elements with no value for condition?  I haven't been
> able to find a way in my web searches.  Am I stuck with either making
> all elements have condition=visible or something or making up some
> kind of 2 pass profiling?

You can mark elements with condition="hidden" and then run profiling 
with parameter profile.condition="nothidden". This will output elements 
with no condition set or elements with condition="nothidden" (you will 
not hove such elements in your documents in fact). Looks strange, but 
will do what you want.


Trish Billard
(408) 285-5462

-----Original Message-----
From: David Shevitz [mailto:dshevitz@singlestep.com]
Sent: Monday, July 12, 2004 11:39 AM
To: docbook-apps
Subject: [docbook-apps] Excluding sections using profiling


I have a quick question (I hope!) about profiling.

 From what I read in the DocBook XSL: A Definitive Guide, I understand 
how to modify the content of any given output by profiling. However, 
what I would like to do is include everything in a document _except_ 
certain sections that have an attribute.

 From what I understand, the only way I can do this is to assign an 
attribute to the sections I want to exclude AND to the sections I want 
to include. Is that correct? Or can I supply a parameter during 
processing that states: "process everything except sections with this 

I hope this makes sense! Thanks in advance for any help.

Dave Shevitz

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]