W3C home > Mailing lists > Public > www-math@w3.org > July 2012

Re: Error in RelaxNG schema

From: Frédéric WANG <fred.wang@free.fr>
Date: Mon, 02 Jul 2012 15:16:11 +0200
Message-ID: <4FF19F1B.4030104@free.fr>
To: www-math@w3.org

>
> I have updated the stylesheet that extracts the schema from the 
> document sources and updated the draft mathml3 area.
>
> The schema changes are highlighted in red/yellow (css classes diff-del 
> and diff-add) in:
>
> http://www.w3.org/Math/draft-spec/appendixa-d.html
>
> At the present time I haven't yet updated the schema distribution in 
> Math/RelaxNG (I need to generate and test the dtd and XSD versions)
> nor documented the changes in the changes appendix.
>
> The changes so far appear to be
>
>
>  cvs diff -D20101021 mathml3*rnc
> Index: mathml3-presentation.rnc
> ===================================================================
> RCS file: 
> /w3ccvs/WWW/Math/Group/RelaxNG/mathml3/mathml3-presentation.rnc,v
> retrieving revision 1.58
> diff -r1.58 mathml3-presentation.rnc
> 29c29
> <   pattern = 
> '\s*([\+\-]?[0-9]*(\.[0-9]*)?\s*((%?\s*(height|depth|width)?)|e[mx]|in|cm|mm|p[xtc]|((negative)?((very){0,2}thi(n|ck)|medium)mathspace)))\s*' 
> }
> ---
> >   pattern = 
> '\s*([\+\-]?[0-9]*(\.[0-9]*)?\s*((%?\s*(height|depth|width)?)|e[mx]|in|cm|mm|p[xtc]|((negative)?((very){0,2}thi(n|ck)|medium)mathspace))?\s*' 
> }
>
>
> Units may be omitted from length attributes of mpadded
>
>
> 444c444
> <     pattern ='\s*(top|bottom|center|baseline|axis)\s*[0-9]*'}}?,
> ---
> >     pattern 
> ='\s*(top|bottom|center|baseline|axis)(\s+-?[0-9]+)?\s*'}}?,
>
Thanks David,

As for the align attributes, shouldn't it be

'\s*(top|bottom|center|baseline|axis)(\s*-?[0-9]+)?\s*'

otherwise, it seems it becomes mandatory to have a space before the 
rownumber (which is not the case e.g. in the page I mentioned).

(I think in general spaces are only allowed at the beginning/end of 
attribute values,  so that could even be 
'\s*(top|bottom|center|baseline|axis)(-?[0-9]+)?\s*')

-- 
Frédéric Wang
maths-informatique-jeux.com/blog/frederic
Received on Monday, 2 July 2012 13:15:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 2 July 2012 13:15:01 GMT