Re: [docbook-tc] "Kahlúa" comments

From
Jirka Kosek <>
Date
2005-04-20T20:57:44+00:00
ID
Thread
Re: [docbook-tc] "Kahlúa" comments
Norman Walsh wrote:

> | 3. What about defining some restrictions for
> |     width/height/contentwidth/contentheight attributes using regular
> |     expressions? Currently they are defined as text.
> 
> What restrictions did you have in mind?

Something like:

db.length.type = string { pattern = 
"[0-9]*\.?[0-9]*(pt|cm|mm|in|pc|px|em|%)?" }

attribute width { db.length.type }
attribute height { db.length.type }
...

Which will make documents containing things like width="it-depends" invalid.

-- 
------------------------------------------------------------------
   Jirka Kosek     e-mail:      http://www.kosek.cz
------------------------------------------------------------------
   Profesionální školení a poradenství v oblasti technologií XML.
      Podívejte se na náš nově spuštěný web http://DocBook.cz
        Podrobný přehled školení http://xmlguru.cz/skoleni/
------------------------------------------------------------------