[tei-council] num
Sebastian Rahtz
sebastian.rahtz at oucs.ox.ac.uk
Thu May 28 09:48:18 EDT 2009
I am inclined to agree with Lou's argument
that we should not re-invent datatypes with
paired attributes. but
why not simply extend our data.numeric to also
support rational numbers? then Gabriel
can just use @value="22/7" as he needs.
there is prececedent - several of our data.*
types are the W3C ones plus additions. data.numeric
itself is already
<rng:choice>
<rng:data type="double"/>
<rng:data type="decimal"/>
</rng:choice>
so why not change it to
<rng:choice>
<rng:data type="double"/>
<rng:data type="decimal"/>
<rng:data type="token">
<rng:param name="pattern">([\d\-]/[\d\-])</rng:param>
</rng:data>
</rng:choice>
(or does \d already allow for - prefix, ie "-1"?)
--
Sebastian Rahtz
Information Manager, Oxford University Computing Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
More information about the tei-council
mailing list