This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: [docbook-apps] Excluding sections using profiling
- From: "Billard, Trish" <trish dot billard at hp dot com>
- To: "David Shevitz" <dshevitz at singlestep dot com>,"docbook-apps" <docbook-apps at lists dot oasis-open dot org>
- Date: Mon, 12 Jul 2004 11:45:23 -0700
- 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.
Jirka
Trish Billard
trish.billard@hp.com
(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
All,
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
attribute."
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/.
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.