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

Re: Error in RelaxNG schema

From: David Carlisle <davidc@nag.co.uk>
Date: Mon, 02 Jul 2012 13:47:59 +0100
Message-ID: <4FF1987F.3020304@nag.co.uk>
To: www-math@w3.org
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:


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
<   pattern = 
 >   pattern = 

Units may be omitted from length attributes of mpadded

<     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

<     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

<   attribute actiontype {text}?,
 >   attribute actiontype {text},

actiontype attribute is required on maction.


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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:27:45 UTC