Re: Error in RelaxNG schema

>
> 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 UTC