Next in thread → Next in month →

Re: [docbook] Handling of ranges and measurement units (metric andimperial) and fractions

From
Dave Pawson <>
Date
2011-03-16T14:36:54+00:00
ID
20110316143638.567c856d@marge3
Thread
Re: [docbook] Handling of ranges and measurement units (metric andimperial) and fractions
On Wed, 16 Mar 2011 14:32:46 +0100
Lech Rzedzicki <> wrote:

> Very good answer actually as what we're after is indeed a semantic
> markup, mostly.
> And just like with semantic endeavors there is no telling in how
> exactly it ends up being used in the future.
> The things we've envisioned so far is publishing only metric for
> European audiences for example, and we're definitely using @condition
> profiling for that, another scenario is perhaps finding just the items
> that weight less than 100kg etc


length = xsd:token
{pattern="[+\-]?([0-9]*(\.)?[0-9]*)(pt|em|in|mm|cm|pt|px|pc)"}

Thats a pattern I used for a value of 100pt or 27.5mm etc.

Perhaps you could adapt it for your use.



-- 

regards 

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
Next in thread → Next in month →