Re: [xep-support] using a function in an expression

From: Alexander Peshkov (peshkov@renderx.com)
Date: Mon May 17 2004 - 08:23:43 PDT

  • Next message: Jim Skelton: "[xep-support] Rendering Unicode combined diacritic characters"

    Hello Bob,

    In general you can use property functions in an expression for
    another property, however in this particular case you hit a limitation
    of XEP: you cannot safely do arithmetics with indents and margins.
    I'll reiterate recent Nikolay's comment on this subject:
    (http://xep.xattic.com/lists/xep-support/2063.html)

    Technically, it happens because the default 'start-indent' is treated
    not as '0pt' but as a special value, to account for start-indent
    redefinition due to margins.). To make additive expressions work, you
    can add an explicit start-indent="0" specifier somewhere at the top:
    it will populate all descendant nodes with the inherited value.

    Note that any appearance of margin will reset start-indent value.

    Best regards,
    Alexander Peshkov mailto:peshkov@renderx.com
    RenderX

    BS> I thought one could use property functions in an expression for another
    BS> property. For example, in computing a content-width on a graphic so that it
    BS> responds to the current start-indent, I tried:

    BS> content-width="4in - inherited-property-value(start-indent)"

    BS> But XEP 3.7.8 complains with:

    BS> [warning] Bad attribute content-width: Cannot subtract type Word from type
    BS> Length

    BS> Shouldn't that work?

    BS> Bob Stayton
    BS> Sagehill Enterprises
    BS> DocBook Consulting
    BS> bobs@sagehill.net

    BS> -------------------
    BS> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    BS> in the body of the message to majordomo@renderx.com from the address
    BS> you are subscribed from.
    BS> (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html

    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



    This archive was generated by hypermail 2.1.5 : Mon May 17 2004 - 08:36:07 PDT