From: Norman Walsh Date: Sun, 12 May 2002 11:11:08 +0000 (+0000) Subject: Changed default units to px; added length-in-points template X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fb91850e64a208310afb496af0d30586f16d4f86;p=docbook-dsssl Changed default units to px; added length-in-points template --- diff --git a/xsl/lib/lib.xweb b/xsl/lib/lib.xweb index 04bd0a52a..d51255d1c 100644 --- a/xsl/lib/lib.xweb +++ b/xsl/lib/lib.xweb @@ -187,7 +187,7 @@ the empty string. - + length-magnitude Return the unqualified dimension from a length specification @@ -245,12 +245,13 @@ length, the defauilt.units are returned. - + + @@ -287,12 +288,14 @@ the default.units will be added to it. - + + + @@ -325,6 +328,83 @@ the default.units will be added to it. + + + + +length-in-points +Returns the size, in points, of a specified length + + +Description + +The length-in-points template converts a length +specification to points and returns that value as an unqualified +number. + + + +There is no way for the template to infer the size of an +em. It relies on the default em.size +which is initially 10 (for 10pt). + +Similarly, converting pixesl to points relies on the +pixels.per.inch parameter which is initially +90. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Unrecognized unit of measure: + + . + + + + + + + + @@ -606,6 +686,7 @@ around these functions. +