|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








