Re: Error in RelaxNG schema

On 29/06/2012 23:34, David Carlisle wrote:
> On 29/06/2012 23:05, Frédéric WANG wrote:
>> Hello,
>>
>> The MathML RelaxNG schema does not allow a negative /rownumber/ for the
>> align attribute of mtable. A minus sign should be added to the pattern.
>>
>> mtable.attributes =
>>    CommonAtt, CommonPresAtt,
>>    attribute align {xsd:string {
>>      pattern ='\s*(top|bottom|center|baseline|axis)\s*[0-9]*'}}?,
>>
>> (discovered by trying to validate
>> http://www.mozilla.org/projects/mathml/demo/mtable.html with
>> http://validator.w3.org/nu/)
>>
>
> Sorry about that. Will fix.
>
> David


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*'}}?,


Optional minus sign in align attribute of mtable

491c491
<     pattern ='\s*(top|bottom|center|baseline|axis)\s*[0-9]*'}}?,
---
 >     pattern ='\s*(top|bottom|center|baseline|axis)(\s+-?[0-9]+)?\s*'}}?,


Optional minus sign in align attribute of mstack

535c535
<   attribute actiontype {text}?,
---
 >   attribute actiontype {text},

actiontype attribute is required on maction.



David

As always, comments welcome....



________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

Received on Monday, 2 July 2012 12:48:28 UTC