This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: dimension arithmetic in xpath


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]