RE: dimension arithmetic in xpath

Subject: RE: dimension arithmetic in xpath
From: "Sebastian Rahtz" <sebastian.rahtz@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 4 May 2000 23:39:56 +0100 (BST)
Ronald Walraven writes:
 > Try:
 > 
 > <xsl:attribute name="content-width">
 >           <xsl:value-of select="number(string-before($PageWidth,'mm')) -
 > number(string-before($PageMarginLeft,'mm')) -
 > number(string-before($PageMarginRight,'mm'))"/>
 >       </xsl:attribute>

If one could be sure that all lengths used the same units, sure.  I
think DPC's more cumbersome suggestion of replacing the unit with "*
factor" is necessary, however.

sebastian


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread