OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


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


On Wed, 16 Mar 2011 14:32:46 +0100
Lech Rzedzicki <xchaotic@gmail.com> 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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]