Take a look at the template with mode="profile" in profiling/profile-mode.xsl. It isn't that complicated, and would be pretty straightforward to customize to support the logic for a NOT or ELSE option.

Bob Stayton
Sagehill Enterprises
[email protected]

On 10/6/2015 11:28 PM, Fekete, Róbert wrote:
I agree, it would be great to have a NOT condition for profiling.
Another useful thing would be something like ELSE (that is, to mark some
text that appears only if none of the conditions matched).

Robert

On Tue, Oct 6, 2015 at 3:57 PM, Thomas Schraitle <[email protected]
<mailto:[email protected]>> wrote:

    Hi Matteo,

    On Tue, 6 Oct 2015 15:36:53 +0200
    Matteo Regazzo <[email protected]
    <mailto:[email protected]>> wrote:

     > [...]
    > Does the DocBook include something like a "NOT" conditionfor the
    > profiling?

    Unfortunately, the profiling stylesheet doesn't support a NOT condition.
    It would be very convenient to have one.

    What you can do is to list all possible profiling attributes except the
    one which you want to exclude (that's your "not condition").

    You can translate the "not condition" into this set of relationships:

      not Cond2 = Cond1
      not Cond1 = Cond2

    If you allow more than two values in your profiling attribute, you
    have to list *all* your possible values, except the excluded one:

      not Cond1 = Cond2;Cond3;Cond4;...


    Hope this helps.


    --
    Gruß/Regards,
         Thomas Schraitle

    ---------------------------------------------------------------------
    To unsubscribe, e-mail:
    [email protected]
    <mailto:[email protected]>
    For additional commands, e-mail:
    [email protected]
    <mailto:[email protected]>



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to