[xep-support] using a function in an expression

Alexander Peshkov peshkov at renderx.com
Mon May 17 08:23:43 PDT 2004


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 at 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 at sagehill.net



BS> -------------------
BS> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
BS> in the body of the message to majordomo at 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 at 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



More information about the Xep-support mailing list