Is "0" valid for all XSL-FO lengths?

Something that xmlroff stumbled on a week or so ago...

The XSL 1.1 definition of the <length> datatype [1] is:

   <length>

   A signed length value where a 'length' is a real number plus a unit
   qualification. A property may define additional constraints on the
   value.

The definition of 'border-top-width' (which, by its black border [3],
is denoted as copied from CSS2) has a link to the CSS2 definition of
'border-top-width' [4], which has a link to the CSS2 definition of
border width [5], which has a link to the CSS2 definition of the
<length> datatype [6], which includes:

   After a zero length, the unit identifier is optional.

So, is 'border-top-width="0"' allowed by XSL 1.1?  If it is, is "0"
allowed for FO-only properties such as 'rule-thickness' [7]?

Regards,


Tony.

[1] http://www.w3.org/TR/xsl11/#datatype
[2] http://www.w3.org/TR/xsl11/#border-top-width
[3] http://www.w3.org/TR/xsl11/#d0e15664
[4] http://www.w3.org/TR/CSS2/box.html#propdef-border-top-width
[5] http://www.w3.org/TR/CSS2/box.html#value-def-border-width
[6] http://www.w3.org/TR/CSS2/syndata.html#value-def-length
[7] http://www.w3.org/TR/xsl11/#rule-thickness

Received on Wednesday, 1 January 2014 19:57:32 UTC