[tei-council] @points again, in relaxng

Lou Burnard lou.burnard at oucs.ox.ac.uk
Sun Oct 17 19:15:11 EDT 2010


To be more exact I think we actually said we wanted pairs of 
data.numerics (which allows real numbers and negative numbers and lord 
save us vulgar fractions too)

so surely we shouldn't be defining a specific pattern here?


On 17/10/10 23:53, Sebastian Rahtz wrote:
> We agreed a few weeks ago that we wanted @points to accept 3 or more comma-separated pairs of
> numbers. So in RELAXNG that may be
>
>       xsd:token { pattern = "[0-9]+,[0-9]+" }
>
> but then we said we also wanted real numbers and negative numbers.
>
> So how exactly _does_ one say that in regexp land?
>
> lord help us, is it
>
> -?[0-9]+\.?[0-9]*,-?[0-9]+\.?[0-9]*
>
> or am I being dense?
> --
> Sebastian Rahtz
> Information and Support Group Manager, Oxford University Computing Services
> 13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
>
> Sólo le pido a Dios
> que el futuro no me sea indiferente
>
>
>
>
>
> _______________________________________________
> tei-council mailing list
> tei-council at lists.village.Virginia.EDU
> http://lists.village.Virginia.EDU/mailman/listinfo/tei-council



More information about the tei-council mailing list