[xep-support] Center tables horizontally

David Tolpin dvd at renderx.com
Thu Feb 20 23:30:39 PST 2003

> With previous versions of XEP (2.78) I used the following code to centre tables horizontally
> across a page:
> <xsl:attribute name="start-indent">(323 - <xsl:value-of select="$totalcolwidth"/>)div 2</xsl:attribute>
> I pick up the columns values of each column within <colspec>, take the total colwidth and
> divide it by 2 and use the code to offset it from the left so that it centers across the page.
> 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}"


lengths must have units. The previous version was relaxed in this respect (unitless lengths were treated as points),
the current version has been made more demanding (in accordance with the specification) to implement more functionality.

Just specify units.


(*) 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