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] DocBook Technical Committee Meeting Minutes: 16 August2006


Dave Pawson wrote:

>> db.charoff.attribute            xsd:decimal { minExclusive = 0, 
>> maxInclusive = 100 }
> Why decimal Jirka? If it's an offset, isn't integer more appropriate?

I try not to be more restrictive then original specification. Section 
3.3.2.8 of http://www.oasis-open.org/specs/tm9901.html says that charoff 
is number. There is no indication whether this number is integer or 
real, so I choosen more wider datatype to prevent problems with tools 
that can produce fractional values of charoff attribute. (It is separate 
question whether there is any application supporting this attribute 
though ;-).)

>> db.html.table.attributes/width        xsd:integer | xsd:string { 
>> pattern = "[0-9]+%" }
> Unsure of the syntax, shouldn't that be [0-9]{1,2}%?
> for 8% through to 99%
> but should we cover 100%?
> 100|[0-9]{1,2}%

Again. HTML specification defines width as "length":

http://www.w3.org/TR/REC-html40/struct/tables.html#adef-width-TABLE

Length is defined as:

http://www.w3.org/TR/REC-html40/types.html#type-length

Specification doesn't say that you can not create length 200%. 
Specification doesn't clarify whether percentage should be integer, or 
if decimal numbers are also allowed. To my knowledge and according to 
comment in DTD (http://www.w3.org/TR/REC-html40/sgml/dtd.html#Length) it 
seems that percentage is always assumed to be integer.

-- 
------------------------------------------------------------------
   Jirka Kosek     e-mail: jirka@kosek.cz     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/
------------------------------------------------------------------
                    Nejbližší termíny školení:
     ** XSLT 23.-26.10.2006 ** XML schémata 13.-15.11.2006 **
      ** DocBook 11.-13.12.2006 ** XSL-FO 11.-12.12.2006 **
------------------------------------------------------------------
   http://xmlguru.cz    Blog mostly about XML for English readers
------------------------------------------------------------------

S/MIME Cryptographic Signature



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