Re: [xep-support] Center tables horizontally

From: Nikolai Grigoriev (grig@renderx.com)
Date: Thu Feb 20 2003 - 23:34:11 PST

  • Next message: Nikolai Grigoriev: "Re: [xep-support] no space for an element"

    Hi Els,

    > However, with the 3.2 version, I get the following warning:
    > "{?Bad attribute start-indent: Attribute type mismatch:
    > start-indent cannot have value '161.5' of type Real number}"

    It says that a length must bear a unit specifier. Do you mean
    161.5 pt? 161.5 px? 161.5 mm?

    > What has changed between the XEP versions?

    Expression syntax checks have become more strict. In XEP 3.2,
    the only length value that does not require unit specifier is 0.
    All other lengths should be expressed in pt, pc, in, mm, cm, or px.

    > or rather: what can I do to get the divide functionality
    > to center tables horizontally?

    Your code is OK; but you should care to get the correct dimensionality.
    Something like this:

    <xsl:attribute name="start-indent">
      (323pt - <xsl:value-of select="$totalcolwidth"/>pt) div 2
    </xsl:attribute>

    Regards,
    Nikolai Grigoriev
    RenderX
    -------------------
    (*) 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 : Thu Feb 20 2003 - 23:36:42 PST