This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
[docbook] A complex case of profiling
- From: Stephane Bortzmeyer <bortzmeyer at nic dot fr>
- To: docbook at lists dot oasis-open dot org
- Date: Wed, 27 Apr 2005 16:49:53 +0200
- Subject: [docbook] A complex case of profiling
- Organization: NIC France
I've read the excellent
http://www.sagehill.net/docbookxsl/Profiling.html but I have a
profiling issue which, it seems, cannot be solved that way.
I have several binary (have / have not) conditions, which do not fit
in predefined attributes like "os" or "userlevel", so I use the
generic "condition" attribute.
These conditions are not mutually exclusive, an element can have two
of them. (I hesitate between concatenating the strings in the
"condition" attribute or nesting "phrase" elements.)
I believe it prevents me from using the techniques described in
http://www.sagehill.net/docbookxsl/Profiling.html and that I should
develop my own XSLT stylesheet (or DOM script).
Here is an example:
<para condition="X">Foo.</para><para condition="Y">Bar.</para>
If X is true and Y too, it must yield:
<para condition="X">Foo.</para><para condition="Y">Bar.</para>
If both are false, it must yields nothing.
Also, conditions can be negated which I currently write:
<para condition="no_X">Oof.</para>
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-help@lists.oasis-open.org