This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook] A complex case of profiling


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]