incubator-odf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From devin...@apache.org
Subject svn commit: r1172466 [10/16] - in /incubator/odf/trunk/validator: ./ misc/ nbproject/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/odftoolkit/ src/main/java/org/odftoolkit/odfvalidator/ src/main/resources/ src/main/resources/META-INF/ ...
Date Mon, 19 Sep 2011 05:43:28 GMT
Added: incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-strict.rnc
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-strict.rnc?rev=1172466&view=auto
==============================================================================
--- incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-strict.rnc (added)
+++ incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-strict.rnc Mon Sep 19 05:43:23 2011
@@ -0,0 +1,81 @@
+#     This is the Mathematical Markup Language (MathML) 3.0, an XML
+#     application for describing mathematical notation and capturing
+#     both its structure and content.
+#
+#     Copyright 1998-2008 W3C (MIT, ERCIM, Keio)
+# 
+#     Use and distribution of this code are permitted under the terms
+#     W3C Software Notice and License
+#     http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+#
+#
+#     Revision:   $Id: mathml3-strict.rnc,v 1.3 2008/11/15 22:00:48 dcarlis Exp $
+#
+#    Update to MathML3 and Relax NG: David Carlisle and Michael Kohlhase
+#
+#  This is the RelaxNG schema module for the strict content part of MathML.
+
+default namespace m = "http://www.w3.org/1998/Math/MathML"
+
+include "mathml3-common.rnc"
+
+math.content |= ContExp
+
+#ednote(rnc:opel-content) What is the content of a operator element, currently all text?
+opel.content = text
+
+# we want to extend this in pragmatic CMathML, so we introduce abbrevs here.
+#ednote(rnc:cn-content) What is the content of a cn?
+cn.content = text |(cn,cn)
+cn.type.vals  = "integer"|"real"|"double"
+
+cn = element cn {attribute base {text}?,
+                 attribute type {cn.type.vals}?,
+  		 Definition.attrib,
+  		 MathML.Common.attrib,	
+		 (cn.content)*}
+
+ci = element ci {attribute type {xsd:string}?,
+                 attribute nargs {xsd:string}?,
+		 attribute occurrence {xsd:string}?,		
+                 Definition.attrib,	
+  		 MathML.Common.attrib,
+		 opel.content,
+		 name.attrib?}
+
+cdname.attrib = attribute cd {xsd:NCName}
+
+csymbol       = element csymbol {MathML.Common.attrib,
+	                         Definition.attrib,cdname.attrib?,cdbase.attrib?, 
+				 opel.content}
+
+# the content of the apply element, leave it empty and extend it later
+apply = element apply {MathML.Common.attrib,cdbase.attrib?,apply.content}
+apply-head = apply|bind|ci|csymbol|semantics-apply
+apply.content = apply-head,ContExp*
+semantics-apply = element semantics {semantics.attribs,apply-head, semantics-annotation*}
+
+qualifier = notAllowed
+
+# the content of the bind element, leave it empty and extend it later
+bind = element bind {MathML.Common.attrib,cdbase.attrib?,bind.content}
+bind-head = apply|csymbol|semantics-bind
+bind.content = bind-head,bvar*,qualifier?,ContExp
+semantics-bind   = element semantics {semantics.attribs,bind-head, semantics-annotation*}
+
+bvar = element bvar {MathML.Common.attrib,cdbase.attrib?,bvar-head}
+bvar-head = ci|semantics-bvar
+semantics-bvar   = element semantics {semantics.attribs,bvar-head, semantics-annotation*}
+
+share = element share {MathML.Common.attrib,attribute href {xsd:anyURI}}
+
+# the content of the cerror element, leave it empty and extend it later
+cerror = element cerror {MathML.Common.attrib,cdbase.attrib?,cerror.content}
+cerror-head = csymbol|apply|semantics-cerror
+cerror.content = cerror-head,ContExp*
+semantics-cerror = element semantics {semantics.attribs,cerror-head, semantics-annotation*}
+
+semantics-cmml = element semantics {semantics.attribs,ContExp, semantics-annotation*}
+
+ContExp = cn| ci | csymbol | apply | bind | share | cerror | semantics-cmml
+

Added: incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-strict.rng
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-strict.rng?rev=1172466&view=auto
==============================================================================
--- incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-strict.rng (added)
+++ incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3-strict.rng Mon Sep 19 05:43:23 2011
@@ -0,0 +1,267 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+      This is the Mathematical Markup Language (MathML) 3.0, an XML
+      application for describing mathematical notation and capturing
+      both its structure and content.
+  
+      Copyright 1998-2008 W3C (MIT, ERCIM, Keio)
+  
+      Use and distribution of this code are permitted under the terms
+      W3C Software Notice and License
+      http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+  
+  
+      Revision:   $Id: mathml3-strict.rng,v 1.3 2008/11/15 22:00:48 dcarlis Exp $
+  
+     Update to MathML3 and Relax NG: David Carlisle and Michael Kohlhase
+  
+   This is the RelaxNG schema module for the strict content part of MathML.
+-->
+<grammar ns="http://www.w3.org/1998/Math/MathML" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+  <include href="mathml3-common.rng"/>
+  <define name="math.content" combine="choice">
+    <ref name="ContExp"/>
+  </define>
+  <!-- ednote(rnc:opel-content) What is the content of a operator element, currently all text? -->
+  <define name="opel.content">
+    <text/>
+  </define>
+  <!--
+    we want to extend this in pragmatic CMathML, so we introduce abbrevs here.
+    ednote(rnc:cn-content) What is the content of a cn?
+  -->
+  <define name="cn.content">
+    <choice>
+      <text/>
+      <group>
+        <ref name="cn"/>
+        <ref name="cn"/>
+      </group>
+    </choice>
+  </define>
+  <define name="cn.type.vals">
+    <choice>
+      <value>integer</value>
+      <value>real</value>
+      <value>double</value>
+    </choice>
+  </define>
+  <define name="cn">
+    <element name="cn">
+      <optional>
+        <attribute name="base"/>
+      </optional>
+      <optional>
+        <attribute name="type">
+          <ref name="cn.type.vals"/>
+        </attribute>
+      </optional>
+      <ref name="Definition.attrib"/>
+      <ref name="MathML.Common.attrib"/>
+      <zeroOrMore>
+        <ref name="cn.content"/>
+      </zeroOrMore>
+    </element>
+  </define>
+  <define name="ci">
+    <element name="ci">
+      <optional>
+        <attribute name="type">
+          <data type="string"/>
+        </attribute>
+      </optional>
+      <optional>
+        <attribute name="nargs">
+          <data type="string"/>
+        </attribute>
+      </optional>
+      <optional>
+        <attribute name="occurrence">
+          <data type="string"/>
+        </attribute>
+      </optional>
+      <ref name="Definition.attrib"/>
+      <ref name="MathML.Common.attrib"/>
+      <ref name="opel.content"/>
+      <optional>
+        <ref name="name.attrib"/>
+      </optional>
+    </element>
+  </define>
+  <define name="cdname.attrib">
+    <attribute name="cd">
+      <data type="NCName"/>
+    </attribute>
+  </define>
+  <define name="csymbol">
+    <element name="csymbol">
+      <ref name="MathML.Common.attrib"/>
+      <ref name="Definition.attrib"/>
+      <optional>
+        <ref name="cdname.attrib"/>
+      </optional>
+      <optional>
+        <ref name="cdbase.attrib"/>
+      </optional>
+      <ref name="opel.content"/>
+    </element>
+  </define>
+  <!-- the content of the apply element, leave it empty and extend it later -->
+  <define name="apply">
+    <element name="apply">
+      <ref name="MathML.Common.attrib"/>
+      <optional>
+        <ref name="cdbase.attrib"/>
+      </optional>
+      <ref name="apply.content"/>
+    </element>
+  </define>
+  <define name="apply-head">
+    <choice>
+      <ref name="apply"/>
+      <ref name="bind"/>
+      <ref name="ci"/>
+      <ref name="csymbol"/>
+      <ref name="semantics-apply"/>
+    </choice>
+  </define>
+  <define name="apply.content">
+    <ref name="apply-head"/>
+    <zeroOrMore>
+      <ref name="ContExp"/>
+    </zeroOrMore>
+  </define>
+  <define name="semantics-apply">
+    <element name="semantics">
+      <ref name="semantics.attribs"/>
+      <ref name="apply-head"/>
+      <zeroOrMore>
+        <ref name="semantics-annotation"/>
+      </zeroOrMore>
+    </element>
+  </define>
+  <define name="qualifier">
+    <notAllowed/>
+  </define>
+  <!-- the content of the bind element, leave it empty and extend it later -->
+  <define name="bind">
+    <element name="bind">
+      <ref name="MathML.Common.attrib"/>
+      <optional>
+        <ref name="cdbase.attrib"/>
+      </optional>
+      <ref name="bind.content"/>
+    </element>
+  </define>
+  <define name="bind-head">
+    <choice>
+      <ref name="apply"/>
+      <ref name="csymbol"/>
+      <ref name="semantics-bind"/>
+    </choice>
+  </define>
+  <define name="bind.content">
+    <ref name="bind-head"/>
+    <zeroOrMore>
+      <ref name="bvar"/>
+    </zeroOrMore>
+    <optional>
+      <ref name="qualifier"/>
+    </optional>
+    <ref name="ContExp"/>
+  </define>
+  <define name="semantics-bind">
+    <element name="semantics">
+      <ref name="semantics.attribs"/>
+      <ref name="bind-head"/>
+      <zeroOrMore>
+        <ref name="semantics-annotation"/>
+      </zeroOrMore>
+    </element>
+  </define>
+  <define name="bvar">
+    <element name="bvar">
+      <ref name="MathML.Common.attrib"/>
+      <optional>
+        <ref name="cdbase.attrib"/>
+      </optional>
+      <ref name="bvar-head"/>
+    </element>
+  </define>
+  <define name="bvar-head">
+    <choice>
+      <ref name="ci"/>
+      <ref name="semantics-bvar"/>
+    </choice>
+  </define>
+  <define name="semantics-bvar">
+    <element name="semantics">
+      <ref name="semantics.attribs"/>
+      <ref name="bvar-head"/>
+      <zeroOrMore>
+        <ref name="semantics-annotation"/>
+      </zeroOrMore>
+    </element>
+  </define>
+  <define name="share">
+    <element name="share">
+      <ref name="MathML.Common.attrib"/>
+      <attribute name="href">
+        <data type="anyURI"/>
+      </attribute>
+    </element>
+  </define>
+  <!-- the content of the cerror element, leave it empty and extend it later -->
+  <define name="cerror">
+    <element name="cerror">
+      <ref name="MathML.Common.attrib"/>
+      <optional>
+        <ref name="cdbase.attrib"/>
+      </optional>
+      <ref name="cerror.content"/>
+    </element>
+  </define>
+  <define name="cerror-head">
+    <choice>
+      <ref name="csymbol"/>
+      <ref name="apply"/>
+      <ref name="semantics-cerror"/>
+    </choice>
+  </define>
+  <define name="cerror.content">
+    <ref name="cerror-head"/>
+    <zeroOrMore>
+      <ref name="ContExp"/>
+    </zeroOrMore>
+  </define>
+  <define name="semantics-cerror">
+    <element name="semantics">
+      <ref name="semantics.attribs"/>
+      <ref name="cerror-head"/>
+      <zeroOrMore>
+        <ref name="semantics-annotation"/>
+      </zeroOrMore>
+    </element>
+  </define>
+  <define name="semantics-cmml">
+    <element name="semantics">
+      <ref name="semantics.attribs"/>
+      <ref name="ContExp"/>
+      <zeroOrMore>
+        <ref name="semantics-annotation"/>
+      </zeroOrMore>
+    </element>
+  </define>
+  <define name="ContExp">
+    <choice>
+      <ref name="cn"/>
+      <ref name="ci"/>
+      <ref name="csymbol"/>
+      <ref name="apply"/>
+      <ref name="bind"/>
+      <ref name="share"/>
+      <ref name="cerror"/>
+      <ref name="semantics-cmml"/>
+    </choice>
+  </define>
+</grammar>

Added: incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3.rnc
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3.rnc?rev=1172466&view=auto
==============================================================================
--- incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3.rnc (added)
+++ incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3.rnc Mon Sep 19 05:43:23 2011
@@ -0,0 +1,21 @@
+#     This is the Mathematical Markup Language (MathML) 3.0, an XML
+#     application for describing mathematical notation and capturing
+#     both its structure and content.
+#
+#     Copyright 1998-2010 W3C (MIT, ERCIM, Keio)
+# 
+#     Use and distribution of this code are permitted under the terms
+#     W3C Software Notice and License
+#     http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+
+
+default namespace m = "http://www.w3.org/1998/Math/MathML"
+
+## Content  MathML
+include "mathml3-content.rnc" 
+
+## Presentation MathML
+include "mathml3-presentation.rnc"
+
+## math and semantics common to both Content and Presentation
+include "mathml3-common.rnc"

Added: incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3.rng
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3.rng?rev=1172466&view=auto
==============================================================================
--- incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3.rng (added)
+++ incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/mathml3.rng Mon Sep 19 05:43:23 2011
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+      This is the Mathematical Markup Language (MathML) 3.0, an XML
+      application for describing mathematical notation and capturing
+      both its structure and content.
+  
+      Copyright 1998-2010 W3C (MIT, ERCIM, Keio)
+  
+      Use and distribution of this code are permitted under the terms
+      W3C Software Notice and License
+      http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+-->
+<grammar ns="http://www.w3.org/1998/Math/MathML" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns="http://relaxng.org/ns/structure/1.0">
+  <include href="mathml3-content.rng">
+    <a:documentation>Content  MathML</a:documentation>
+  </include>
+  <include href="mathml3-presentation.rng">
+    <a:documentation>Presentation MathML</a:documentation>
+  </include>
+  <include href="mathml3-common.rng">
+    <a:documentation>math and semantics common to both Content and Presentation</a:documentation>
+  </include>
+</grammar>

Added: incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/relations.rnc
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/relations.rnc?rev=1172466&view=auto
==============================================================================
--- incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/relations.rnc (added)
+++ incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/relations.rnc Mon Sep 19 05:43:23 2011
@@ -0,0 +1,43 @@
+#     This is the Mathematical Markup Language (MathML) 3.0, an XML
+#     application for describing mathematical notation and capturing
+#     both its structure and content.
+#
+#     Copyright 1998-2007 World Wide Web Consortium
+#        (Massachusetts Institute of Technology, Institut National de
+#         Recherche en Informatique et en Automatique, Keio University).
+#         All Rights Reserved.
+#
+#     Permission to use, copy, modify and distribute the RelaxNG schema for MathML3
+#     and its accompanying documentation for any purpose and without fee is
+#     hereby granted in perpetuity, provided that the above copyright notice
+#     and this paragraph appear in all copies.  The copyright holders make
+#     no representation about the suitability of the Schema for any purpose.
+#
+#     This file contains the arity checking rules for the symbols
+#     from the content dictionary 
+#     It is provided "as is" without expressed or implied warranty.
+#
+#     Revision:   $Id: relations.rnc,v 1.1 2007/12/11 15:38:52 dcarlis Exp $
+
+cd.token.binary.class |= neq.token | factorof.token
+cd.token.nary.class |= eq.token | gt.token | lt.token | geq.token | leq.token | equivalent.token | approx.token
+
+# the element definitions for the token elements
+eq.content = Token.type
+eq.token = element eq {eq.content}
+neq.content = Token.type
+neq.token = element neq {neq.content}
+gt.content = Token.type
+gt.token = element gt {gt.content}
+lt.content = Token.type
+lt.token = element lt {lt.content}
+geq.content = Token.type
+geq.token = element geq {geq.content}
+leq.content = Token.type
+leq.token = element leq {leq.content}
+equivalent.content = Token.type
+equivalent.token = element equivalent {equivalent.content}
+approx.content = Token.type, attribute type {MathMLtype}?
+approx.token = element approx {approx.content}
+factorof.content = Token.type, attribute  type  {MathMLtype}?
+factorof.token = element factorof {factorof.content}
\ No newline at end of file

Added: incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/relations.rng
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/relations.rng?rev=1172466&view=auto
==============================================================================
--- incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/relations.rng (added)
+++ incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/relations.rng Mon Sep 19 05:43:23 2011
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+  <!--
+        This is the Mathematical Markup Language (MathML) 3.0, an XML
+        application for describing mathematical notation and capturing
+        both its structure and content.
+    
+        Copyright 1998-2007 World Wide Web Consortium
+           (Massachusetts Institute of Technology, Institut National de
+            Recherche en Informatique et en Automatique, Keio University).
+            All Rights Reserved.
+    
+        Permission to use, copy, modify and distribute the RelaxNG schema for MathML3
+        and its accompanying documentation for any purpose and without fee is
+        hereby granted in perpetuity, provided that the above copyright notice
+        and this paragraph appear in all copies.  The copyright holders make
+        no representation about the suitability of the Schema for any purpose.
+    
+        This file contains the arity checking rules for the symbols
+        from the content dictionary 
+        It is provided "as is" without expressed or implied warranty.
+    
+        Revision:   $Id: relations.rng,v 1.1 2007/12/11 15:59:28 dcarlis Exp $
+  -->
+  <define name="cd.token.binary.class" combine="choice">
+    <choice>
+      <ref name="neq.token"/>
+      <ref name="factorof.token"/>
+    </choice>
+  </define>
+  <define name="cd.token.nary.class" combine="choice">
+    <choice>
+      <ref name="eq.token"/>
+      <ref name="gt.token"/>
+      <ref name="lt.token"/>
+      <ref name="geq.token"/>
+      <ref name="leq.token"/>
+      <ref name="equivalent.token"/>
+      <ref name="approx.token"/>
+    </choice>
+  </define>
+  <!-- the element definitions for the token elements -->
+  <define name="eq.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="eq.token">
+    <element name="eq">
+      <ref name="eq.content"/>
+    </element>
+  </define>
+  <define name="neq.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="neq.token">
+    <element name="neq">
+      <ref name="neq.content"/>
+    </element>
+  </define>
+  <define name="gt.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="gt.token">
+    <element name="gt">
+      <ref name="gt.content"/>
+    </element>
+  </define>
+  <define name="lt.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="lt.token">
+    <element name="lt">
+      <ref name="lt.content"/>
+    </element>
+  </define>
+  <define name="geq.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="geq.token">
+    <element name="geq">
+      <ref name="geq.content"/>
+    </element>
+  </define>
+  <define name="leq.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="leq.token">
+    <element name="leq">
+      <ref name="leq.content"/>
+    </element>
+  </define>
+  <define name="equivalent.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="equivalent.token">
+    <element name="equivalent">
+      <ref name="equivalent.content"/>
+    </element>
+  </define>
+  <define name="approx.content">
+    <ref name="Token.type"/>
+    <optional>
+      <attribute name="type">
+        <ref name="MathMLtype"/>
+      </attribute>
+    </optional>
+  </define>
+  <define name="approx.token">
+    <element name="approx">
+      <ref name="approx.content"/>
+    </element>
+  </define>
+  <define name="factorof.content">
+    <ref name="Token.type"/>
+    <optional>
+      <attribute name="type">
+        <ref name="MathMLtype"/>
+      </attribute>
+    </optional>
+  </define>
+  <define name="factorof.token">
+    <element name="factorof">
+      <ref name="factorof.content"/>
+    </element>
+  </define>
+</grammar>

Added: incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/sequences_series.rnc
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/sequences_series.rnc?rev=1172466&view=auto
==============================================================================
--- incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/sequences_series.rnc (added)
+++ incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/sequences_series.rnc Mon Sep 19 05:43:23 2011
@@ -0,0 +1,31 @@
+#     This is the Mathematical Markup Language (MathML) 3.0, an XML
+#     application for describing mathematical notation and capturing
+#     both its structure and content.
+#
+#     Copyright 1998-2007 World Wide Web Consortium
+#        (Massachusetts Institute of Technology, Institut National de
+#         Recherche en Informatique et en Automatique, Keio University).
+#         All Rights Reserved.
+#
+#     Permission to use, copy, modify and distribute the RelaxNG schema for MathML3
+#     and its accompanying documentation for any purpose and without fee is
+#     hereby granted in perpetuity, provided that the above copyright notice
+#     and this paragraph appear in all copies.  The copyright holders make
+#     no representation about the suitability of the Schema for any purpose.
+#
+#     This file contains the arity checking rules for the symbols
+#     from the content dictionary 
+#     It is provided "as is" without expressed or implied warranty.
+#
+#     Revision:   $Id: sequences_series.rnc,v 1.1 2007/12/11 15:38:52 dcarlis Exp $
+
+
+# the element definitions for the token elements
+sum.content = Token.type
+sum.token = element sum {sum.content}
+product.content = Token.type
+product.token = element product {product.content}
+limit.content = Token.type
+limit.token = element limit {limit.content}
+tendsto.content = Token.type, attribute type {MathMLtype}?
+tendsto.token = element tendsto {tendsto.content}
\ No newline at end of file

Added: incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/sequences_series.rng
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/sequences_series.rng?rev=1172466&view=auto
==============================================================================
--- incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/sequences_series.rng (added)
+++ incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/sequences_series.rng Mon Sep 19 05:43:23 2011
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+  <!--
+        This is the Mathematical Markup Language (MathML) 3.0, an XML
+        application for describing mathematical notation and capturing
+        both its structure and content.
+    
+        Copyright 1998-2007 World Wide Web Consortium
+           (Massachusetts Institute of Technology, Institut National de
+            Recherche en Informatique et en Automatique, Keio University).
+            All Rights Reserved.
+    
+        Permission to use, copy, modify and distribute the RelaxNG schema for MathML3
+        and its accompanying documentation for any purpose and without fee is
+        hereby granted in perpetuity, provided that the above copyright notice
+        and this paragraph appear in all copies.  The copyright holders make
+        no representation about the suitability of the Schema for any purpose.
+    
+        This file contains the arity checking rules for the symbols
+        from the content dictionary 
+        It is provided "as is" without expressed or implied warranty.
+    
+        Revision:   $Id: sequences_series.rng,v 1.1 2007/12/11 15:59:28 dcarlis Exp $
+  -->
+  <!-- the element definitions for the token elements -->
+  <define name="sum.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="sum.token">
+    <element name="sum">
+      <ref name="sum.content"/>
+    </element>
+  </define>
+  <define name="product.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="product.token">
+    <element name="product">
+      <ref name="product.content"/>
+    </element>
+  </define>
+  <define name="limit.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="limit.token">
+    <element name="limit">
+      <ref name="limit.content"/>
+    </element>
+  </define>
+  <define name="tendsto.content">
+    <ref name="Token.type"/>
+    <optional>
+      <attribute name="type">
+        <ref name="MathMLtype"/>
+      </attribute>
+    </optional>
+  </define>
+  <define name="tendsto.token">
+    <element name="tendsto">
+      <ref name="tendsto.content"/>
+    </element>
+  </define>
+</grammar>

Added: incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/sets.rnc
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/sets.rnc?rev=1172466&view=auto
==============================================================================
--- incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/sets.rnc (added)
+++ incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/sets.rnc Mon Sep 19 05:43:23 2011
@@ -0,0 +1,52 @@
+#     This is the Mathematical Markup Language (MathML) 3.0, an XML
+#     application for describing mathematical notation and capturing
+#     both its structure and content.
+#
+#     Copyright 1998-2007 World Wide Web Consortium
+#        (Massachusetts Institute of Technology, Institut National de
+#         Recherche en Informatique et en Automatique, Keio University).
+#         All Rights Reserved.
+#
+#     Permission to use, copy, modify and distribute the RelaxNG schema for MathML3
+#     and its accompanying documentation for any purpose and without fee is
+#     hereby granted in perpetuity, provided that the above copyright notice
+#     and this paragraph appear in all copies.  The copyright holders make
+#     no representation about the suitability of the Schema for any purpose.
+#
+#     This file contains the arity checking rules for the symbols
+#     from the content dictionary 
+#     It is provided "as is" without expressed or implied warranty.
+#
+#     Revision:   $Id: sets.rnc,v 1.1 2007/12/11 15:38:53 dcarlis Exp $
+
+cd.token.unary.class |= card.token
+cd.token.binary.class |= in.token | notin.token | notsubset.token | notprsubset.token | setdiff.token
+cd.token.nary.class |= set.token | list.token | intersect.token | subset.token | prsubset.token | cartesianproduct.token
+
+# the element definitions for the token elements
+set.content = Token.type, attribute order {MathMLtype}?,ContExp*
+set.token = element set {set.content}
+list.content = Token.type, attribute order {MathMLtype}?,ContExp*
+list.token = element list {list.content}
+union.content = Token.type
+union.token = element union {union.content}
+intersect.content = Token.type
+intersect.token = element intersect {intersect.content}
+in.content = Token.type
+in.token = element in {in.content}
+notin.content = Token.type
+notin.token = element notin {notin.content}
+subset.content = Token.type
+subset.token = element subset {subset.content}
+prsubset.content = Token.type
+prsubset.token = element prsubset {prsubset.content}
+notsubset.content = Token.type
+notsubset.token = element notsubset {notsubset.content}
+notprsubset.content = Token.type
+notprsubset.token = element notprsubset {notprsubset.content}
+setdiff.content = Token.type
+setdiff.token = element setdiff {setdiff.content}
+card.content = Token.type
+card.token = element card {card.content}
+cartesianproduct.content = Token.type
+cartesianproduct.token = element cartesianproduct {cartesianproduct.content}
\ No newline at end of file

Added: incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/sets.rng
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/sets.rng?rev=1172466&view=auto
==============================================================================
--- incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/sets.rng (added)
+++ incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/sets.rng Mon Sep 19 05:43:23 2011
@@ -0,0 +1,168 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+  <!--
+        This is the Mathematical Markup Language (MathML) 3.0, an XML
+        application for describing mathematical notation and capturing
+        both its structure and content.
+    
+        Copyright 1998-2007 World Wide Web Consortium
+           (Massachusetts Institute of Technology, Institut National de
+            Recherche en Informatique et en Automatique, Keio University).
+            All Rights Reserved.
+    
+        Permission to use, copy, modify and distribute the RelaxNG schema for MathML3
+        and its accompanying documentation for any purpose and without fee is
+        hereby granted in perpetuity, provided that the above copyright notice
+        and this paragraph appear in all copies.  The copyright holders make
+        no representation about the suitability of the Schema for any purpose.
+    
+        This file contains the arity checking rules for the symbols
+        from the content dictionary 
+        It is provided "as is" without expressed or implied warranty.
+    
+        Revision:   $Id: sets.rng,v 1.1 2007/12/11 15:59:28 dcarlis Exp $
+  -->
+  <define name="cd.token.unary.class" combine="choice">
+    <ref name="card.token"/>
+  </define>
+  <define name="cd.token.binary.class" combine="choice">
+    <choice>
+      <ref name="in.token"/>
+      <ref name="notin.token"/>
+      <ref name="notsubset.token"/>
+      <ref name="notprsubset.token"/>
+      <ref name="setdiff.token"/>
+    </choice>
+  </define>
+  <define name="cd.token.nary.class" combine="choice">
+    <choice>
+      <ref name="set.token"/>
+      <ref name="list.token"/>
+      <ref name="intersect.token"/>
+      <ref name="subset.token"/>
+      <ref name="prsubset.token"/>
+      <ref name="cartesianproduct.token"/>
+    </choice>
+  </define>
+  <!-- the element definitions for the token elements -->
+  <define name="set.content">
+    <ref name="Token.type"/>
+    <optional>
+      <attribute name="order">
+        <ref name="MathMLtype"/>
+      </attribute>
+    </optional>
+    <zeroOrMore>
+      <ref name="ContExp"/>
+    </zeroOrMore>
+  </define>
+  <define name="set.token">
+    <element name="set">
+      <ref name="set.content"/>
+    </element>
+  </define>
+  <define name="list.content">
+    <ref name="Token.type"/>
+    <optional>
+      <attribute name="order">
+        <ref name="MathMLtype"/>
+      </attribute>
+    </optional>
+    <zeroOrMore>
+      <ref name="ContExp"/>
+    </zeroOrMore>
+  </define>
+  <define name="list.token">
+    <element name="list">
+      <ref name="list.content"/>
+    </element>
+  </define>
+  <define name="union.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="union.token">
+    <element name="union">
+      <ref name="union.content"/>
+    </element>
+  </define>
+  <define name="intersect.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="intersect.token">
+    <element name="intersect">
+      <ref name="intersect.content"/>
+    </element>
+  </define>
+  <define name="in.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="in.token">
+    <element name="in">
+      <ref name="in.content"/>
+    </element>
+  </define>
+  <define name="notin.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="notin.token">
+    <element name="notin">
+      <ref name="notin.content"/>
+    </element>
+  </define>
+  <define name="subset.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="subset.token">
+    <element name="subset">
+      <ref name="subset.content"/>
+    </element>
+  </define>
+  <define name="prsubset.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="prsubset.token">
+    <element name="prsubset">
+      <ref name="prsubset.content"/>
+    </element>
+  </define>
+  <define name="notsubset.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="notsubset.token">
+    <element name="notsubset">
+      <ref name="notsubset.content"/>
+    </element>
+  </define>
+  <define name="notprsubset.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="notprsubset.token">
+    <element name="notprsubset">
+      <ref name="notprsubset.content"/>
+    </element>
+  </define>
+  <define name="setdiff.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="setdiff.token">
+    <element name="setdiff">
+      <ref name="setdiff.content"/>
+    </element>
+  </define>
+  <define name="card.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="card.token">
+    <element name="card">
+      <ref name="card.content"/>
+    </element>
+  </define>
+  <define name="cartesianproduct.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="cartesianproduct.token">
+    <element name="cartesianproduct">
+      <ref name="cartesianproduct.content"/>
+    </element>
+  </define>
+</grammar>

Added: incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/specfun.rnc
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/specfun.rnc?rev=1172466&view=auto
==============================================================================
--- incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/specfun.rnc (added)
+++ incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/specfun.rnc Mon Sep 19 05:43:23 2011
@@ -0,0 +1,79 @@
+#     This is the Mathematical Markup Language (MathML) 3.0, an XML
+#     application for describing mathematical notation and capturing
+#     both its structure and content.
+#
+#     Copyright 1998-2007 World Wide Web Consortium
+#        (Massachusetts Institute of Technology, Institut National de
+#         Recherche en Informatique et en Automatique, Keio University).
+#         All Rights Reserved.
+#
+#     Permission to use, copy, modify and distribute the RelaxNG schema for MathML3
+#     and its accompanying documentation for any purpose and without fee is
+#     hereby granted in perpetuity, provided that the above copyright notice
+#     and this paragraph appear in all copies.  The copyright holders make
+#     no representation about the suitability of the Schema for any purpose.
+#
+#     This file contains the arity checking rules for the symbols
+#     from the content dictionary 
+#     It is provided "as is" without expressed or implied warranty.
+#
+#     Revision:   $Id: specfun.rnc,v 1.1 2007/12/11 15:38:53 dcarlis Exp $
+
+cd.token.unary.class |= ln.token | sin.token | cos.token | tan.token | sec.token | csc.token | cot.token | sinh.token | cosh.token | tanh.token | sech.token | csch.token | coth.token | arcsin.token | arccos.token | arctan.token | arccosh.token | arccot.token | arccoth.token | arccsc.token | arccsch.token | arcsec.token | arcsech.token | arcsinh.token | arctanh.token | exp.token 
+cd.token.binary.class |=  log.token
+
+# the element definitions for the token elements
+exp.content = Token.type
+exp.token = element exp {exp.content}
+ln.content = Token.type
+ln.token = element ln {ln.content}
+log.content = Token.type
+log.token = element log {log.content}
+sin.content = Token.type
+sin.token = element sin {sin.content}
+cos.content = Token.type
+cos.token = element cos {cos.content}
+tan.content = Token.type
+tan.token = element tan {tan.content}
+sec.content = Token.type
+sec.token = element sec {sec.content}
+csc.content = Token.type
+csc.token = element csc {csc.content}
+cot.content = Token.type
+cot.token = element cot {cot.content}
+sinh.content = Token.type
+sinh.token = element sinh {sinh.content}
+cosh.content = Token.type
+cosh.token = element cosh {cosh.content}
+tanh.content = Token.type
+tanh.token = element tanh {tanh.content}
+sech.content = Token.type
+sech.token = element sech {sech.content}
+csch.content = Token.type
+csch.token = element csch {csch.content}
+coth.content = Token.type
+coth.token = element coth {coth.content}
+arcsin.content = Token.type
+arcsin.token = element arcsin {arcsin.content}
+arccos.content = Token.type
+arccos.token = element arccos {arccos.content}
+arctan.content = Token.type
+arctan.token = element arctan {arctan.content}
+arccosh.content = Token.type
+arccosh.token = element arccosh {arccosh.content}
+arccot.content = Token.type
+arccot.token = element arccot {arccot.content}
+arccoth.content = Token.type
+arccoth.token = element arccoth {arccoth.content}
+arccsc.content = Token.type
+arccsc.token = element arccsc {arccsc.content}
+arccsch.content = Token.type
+arccsch.token = element arccsch {arccsch.content}
+arcsec.content = Token.type
+arcsec.token = element arcsec {arcsec.content}
+arcsech.content = Token.type
+arcsech.token = element arcsech {arcsech.content}
+arcsinh.content = Token.type
+arcsinh.token = element arcsinh {arcsinh.content}
+arctanh.content = Token.type
+arctanh.token = element arctanh {arctanh.content}

Added: incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/specfun.rng
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/specfun.rng?rev=1172466&view=auto
==============================================================================
--- incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/specfun.rng (added)
+++ incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/specfun.rng Mon Sep 19 05:43:23 2011
@@ -0,0 +1,275 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+  <!--
+        This is the Mathematical Markup Language (MathML) 3.0, an XML
+        application for describing mathematical notation and capturing
+        both its structure and content.
+    
+        Copyright 1998-2007 World Wide Web Consortium
+           (Massachusetts Institute of Technology, Institut National de
+            Recherche en Informatique et en Automatique, Keio University).
+            All Rights Reserved.
+    
+        Permission to use, copy, modify and distribute the RelaxNG schema for MathML3
+        and its accompanying documentation for any purpose and without fee is
+        hereby granted in perpetuity, provided that the above copyright notice
+        and this paragraph appear in all copies.  The copyright holders make
+        no representation about the suitability of the Schema for any purpose.
+    
+        This file contains the arity checking rules for the symbols
+        from the content dictionary 
+        It is provided "as is" without expressed or implied warranty.
+    
+        Revision:   $Id: specfun.rng,v 1.1 2007/12/11 15:59:28 dcarlis Exp $
+  -->
+  <define name="cd.token.unary.class" combine="choice">
+    <choice>
+      <ref name="ln.token"/>
+      <ref name="sin.token"/>
+      <ref name="cos.token"/>
+      <ref name="tan.token"/>
+      <ref name="sec.token"/>
+      <ref name="csc.token"/>
+      <ref name="cot.token"/>
+      <ref name="sinh.token"/>
+      <ref name="cosh.token"/>
+      <ref name="tanh.token"/>
+      <ref name="sech.token"/>
+      <ref name="csch.token"/>
+      <ref name="coth.token"/>
+      <ref name="arcsin.token"/>
+      <ref name="arccos.token"/>
+      <ref name="arctan.token"/>
+      <ref name="arccosh.token"/>
+      <ref name="arccot.token"/>
+      <ref name="arccoth.token"/>
+      <ref name="arccsc.token"/>
+      <ref name="arccsch.token"/>
+      <ref name="arcsec.token"/>
+      <ref name="arcsech.token"/>
+      <ref name="arcsinh.token"/>
+      <ref name="arctanh.token"/>
+      <ref name="exp.token"/>
+    </choice>
+  </define>
+  <define name="cd.token.binary.class" combine="choice">
+    <ref name="log.token"/>
+  </define>
+  <!-- the element definitions for the token elements -->
+  <define name="exp.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="exp.token">
+    <element name="exp">
+      <ref name="exp.content"/>
+    </element>
+  </define>
+  <define name="ln.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="ln.token">
+    <element name="ln">
+      <ref name="ln.content"/>
+    </element>
+  </define>
+  <define name="log.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="log.token">
+    <element name="log">
+      <ref name="log.content"/>
+    </element>
+  </define>
+  <define name="sin.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="sin.token">
+    <element name="sin">
+      <ref name="sin.content"/>
+    </element>
+  </define>
+  <define name="cos.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="cos.token">
+    <element name="cos">
+      <ref name="cos.content"/>
+    </element>
+  </define>
+  <define name="tan.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="tan.token">
+    <element name="tan">
+      <ref name="tan.content"/>
+    </element>
+  </define>
+  <define name="sec.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="sec.token">
+    <element name="sec">
+      <ref name="sec.content"/>
+    </element>
+  </define>
+  <define name="csc.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="csc.token">
+    <element name="csc">
+      <ref name="csc.content"/>
+    </element>
+  </define>
+  <define name="cot.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="cot.token">
+    <element name="cot">
+      <ref name="cot.content"/>
+    </element>
+  </define>
+  <define name="sinh.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="sinh.token">
+    <element name="sinh">
+      <ref name="sinh.content"/>
+    </element>
+  </define>
+  <define name="cosh.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="cosh.token">
+    <element name="cosh">
+      <ref name="cosh.content"/>
+    </element>
+  </define>
+  <define name="tanh.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="tanh.token">
+    <element name="tanh">
+      <ref name="tanh.content"/>
+    </element>
+  </define>
+  <define name="sech.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="sech.token">
+    <element name="sech">
+      <ref name="sech.content"/>
+    </element>
+  </define>
+  <define name="csch.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="csch.token">
+    <element name="csch">
+      <ref name="csch.content"/>
+    </element>
+  </define>
+  <define name="coth.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="coth.token">
+    <element name="coth">
+      <ref name="coth.content"/>
+    </element>
+  </define>
+  <define name="arcsin.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="arcsin.token">
+    <element name="arcsin">
+      <ref name="arcsin.content"/>
+    </element>
+  </define>
+  <define name="arccos.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="arccos.token">
+    <element name="arccos">
+      <ref name="arccos.content"/>
+    </element>
+  </define>
+  <define name="arctan.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="arctan.token">
+    <element name="arctan">
+      <ref name="arctan.content"/>
+    </element>
+  </define>
+  <define name="arccosh.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="arccosh.token">
+    <element name="arccosh">
+      <ref name="arccosh.content"/>
+    </element>
+  </define>
+  <define name="arccot.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="arccot.token">
+    <element name="arccot">
+      <ref name="arccot.content"/>
+    </element>
+  </define>
+  <define name="arccoth.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="arccoth.token">
+    <element name="arccoth">
+      <ref name="arccoth.content"/>
+    </element>
+  </define>
+  <define name="arccsc.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="arccsc.token">
+    <element name="arccsc">
+      <ref name="arccsc.content"/>
+    </element>
+  </define>
+  <define name="arccsch.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="arccsch.token">
+    <element name="arccsch">
+      <ref name="arccsch.content"/>
+    </element>
+  </define>
+  <define name="arcsec.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="arcsec.token">
+    <element name="arcsec">
+      <ref name="arcsec.content"/>
+    </element>
+  </define>
+  <define name="arcsech.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="arcsech.token">
+    <element name="arcsech">
+      <ref name="arcsech.content"/>
+    </element>
+  </define>
+  <define name="arcsinh.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="arcsinh.token">
+    <element name="arcsinh">
+      <ref name="arcsinh.content"/>
+    </element>
+  </define>
+  <define name="arctanh.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="arctanh.token">
+    <element name="arctanh">
+      <ref name="arctanh.content"/>
+    </element>
+  </define>
+</grammar>

Added: incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/statistics.rnc
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/statistics.rnc?rev=1172466&view=auto
==============================================================================
--- incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/statistics.rnc (added)
+++ incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/statistics.rnc Mon Sep 19 05:43:23 2011
@@ -0,0 +1,39 @@
+#     This is the Mathematical Markup Language (MathML) 3.0, an XML
+#     application for describing mathematical notation and capturing
+#     both its structure and content.
+#
+#     Copyright 1998-2007 World Wide Web Consortium
+#        (Massachusetts Institute of Technology, Institut National de
+#         Recherche en Informatique et en Automatique, Keio University).
+#         All Rights Reserved.
+#
+#     Permission to use, copy, modify and distribute the RelaxNG schema for MathML3
+#     and its accompanying documentation for any purpose and without fee is
+#     hereby granted in perpetuity, provided that the above copyright notice
+#     and this paragraph appear in all copies.  The copyright holders make
+#     no representation about the suitability of the Schema for any purpose.
+#
+#     This file contains the arity checking rules for the symbols
+#     from the content dictionary 
+#     It is provided "as is" without expressed or implied warranty.
+#
+#     Revision:   $Id: statistics.rnc,v 1.1 2007/12/11 15:38:53 dcarlis Exp $
+
+cd.token.unary.class |= momentabout.token
+cd.token.nary.class |= mean.token | sdev.token | variance.token | median.token | mode.token | moment.token
+
+# the element definitions for the token elements
+mean.content = Token.type
+mean.token = element mean {mean.content}
+sdev.content = Token.type
+sdev.token = element sdev {sdev.content}
+variance.content = Token.type
+variance.token = element variance {variance.content}
+median.content = Token.type
+median.token = element median {median.content}
+mode.content = Token.type
+mode.token = element mode {mode.content}
+moment.content = Token.type
+moment.token = element moment {moment.content}
+momentabout.content = Token.type
+momentabout.token = element momentabout {momentabout.content}
\ No newline at end of file

Added: incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/statistics.rng
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/statistics.rng?rev=1172466&view=auto
==============================================================================
--- incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/statistics.rng (added)
+++ incubator/odf/trunk/validator/src/main/resources/schema/mathml3.0/statistics.rng Mon Sep 19 05:43:23 2011
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+  <!--
+        This is the Mathematical Markup Language (MathML) 3.0, an XML
+        application for describing mathematical notation and capturing
+        both its structure and content.
+    
+        Copyright 1998-2007 World Wide Web Consortium
+           (Massachusetts Institute of Technology, Institut National de
+            Recherche en Informatique et en Automatique, Keio University).
+            All Rights Reserved.
+    
+        Permission to use, copy, modify and distribute the RelaxNG schema for MathML3
+        and its accompanying documentation for any purpose and without fee is
+        hereby granted in perpetuity, provided that the above copyright notice
+        and this paragraph appear in all copies.  The copyright holders make
+        no representation about the suitability of the Schema for any purpose.
+    
+        This file contains the arity checking rules for the symbols
+        from the content dictionary 
+        It is provided "as is" without expressed or implied warranty.
+    
+        Revision:   $Id: statistics.rng,v 1.1 2007/12/11 15:59:28 dcarlis Exp $
+  -->
+  <define name="cd.token.unary.class" combine="choice">
+    <ref name="momentabout.token"/>
+  </define>
+  <define name="cd.token.nary.class" combine="choice">
+    <choice>
+      <ref name="mean.token"/>
+      <ref name="sdev.token"/>
+      <ref name="variance.token"/>
+      <ref name="median.token"/>
+      <ref name="mode.token"/>
+      <ref name="moment.token"/>
+    </choice>
+  </define>
+  <!-- the element definitions for the token elements -->
+  <define name="mean.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="mean.token">
+    <element name="mean">
+      <ref name="mean.content"/>
+    </element>
+  </define>
+  <define name="sdev.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="sdev.token">
+    <element name="sdev">
+      <ref name="sdev.content"/>
+    </element>
+  </define>
+  <define name="variance.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="variance.token">
+    <element name="variance">
+      <ref name="variance.content"/>
+    </element>
+  </define>
+  <define name="median.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="median.token">
+    <element name="median">
+      <ref name="median.content"/>
+    </element>
+  </define>
+  <define name="mode.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="mode.token">
+    <element name="mode">
+      <ref name="mode.content"/>
+    </element>
+  </define>
+  <define name="moment.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="moment.token">
+    <element name="moment">
+      <ref name="moment.content"/>
+    </element>
+  </define>
+  <define name="momentabout.content">
+    <ref name="Token.type"/>
+  </define>
+  <define name="momentabout.token">
+    <element name="momentabout">
+      <ref name="momentabout.content"/>
+    </element>
+  </define>
+</grammar>

Added: incubator/odf/trunk/validator/src/main/resources/schema/odf1.0/OpenDocument-manifest-schema-v1.0-os.rng
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/validator/src/main/resources/schema/odf1.0/OpenDocument-manifest-schema-v1.0-os.rng?rev=1172466&view=auto
==============================================================================
--- incubator/odf/trunk/validator/src/main/resources/schema/odf1.0/OpenDocument-manifest-schema-v1.0-os.rng (added)
+++ incubator/odf/trunk/validator/src/main/resources/schema/odf1.0/OpenDocument-manifest-schema-v1.0-os.rng Mon Sep 19 05:43:23 2011
@@ -0,0 +1,111 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    OASIS OpenDocument v1.0
+    OASIS standard, 1 May 2005
+    Relax-NG Manifest Schema
+
+    $Id$
+
+    © 2002-2005 OASIS Open
+    © 1999-2005 Sun Microsystems, Inc.
+-->
+
+<grammar 
+    xmlns="http://relaxng.org/ns/structure/1.0"
+
+    datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
+
+    xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0">
+<define name="manifest">
+    <element name="manifest:manifest">
+        <oneOrMore>
+            <ref name="file-entry"/>
+        </oneOrMore>
+    </element>
+</define>
+
+<start>
+    <choice>
+        <ref name="manifest"/>
+    </choice>
+</start>
+<define name="file-entry">
+    <element name="manifest:file-entry">
+        <ref name="file-entry-attlist"/>
+        <optional>
+            <ref name="encryption-data"/>
+        </optional>
+    </element>
+</define>
+<define name="file-entry-attlist" combine="interleave">
+    <attribute name="manifest:full-path">
+        <data type="string"/>
+    </attribute>
+</define>
+<define name="file-entry-attlist" combine="interleave">
+    <optional>
+        <attribute name="manifest:size">
+            <data type="nonNegativeInteger"/>
+        </attribute>
+    </optional>
+</define>
+<define name="file-entry-attlist" combine="interleave">
+    <attribute name="manifest:media-type">
+        <data type="string"/>
+    </attribute>
+</define>
+<define name="encryption-data">
+    <element name="manifest:encryption-data">
+        <ref name="encryption-data-attlist"/>
+        <ref name="algorithm"/>
+        <ref name="key-derivation"/>
+    </element>
+</define>
+<define name="encryption-data-attlist" combine="interleave">
+    <attribute name="manifest:checksum-type">
+        <data type="string"/>
+    </attribute>
+</define>
+<define name="encryption-data-attlist" combine="interleave">
+    <attribute name="manifest:checksum">
+        <data type="base64Binary"/>
+    </attribute>
+</define>
+<define name="algorithm">
+    <element name="manifest:algorithm">
+        <ref name="algorithm-attlist"/>
+        <empty/>
+    </element>
+</define>
+<define name="algorithm-attlist" combine="interleave">
+    <attribute name="manifest:algorithm-name">
+        <data type="string"/>
+    </attribute>
+</define>
+<define name="algorithm-attlist" combine="interleave">
+    <attribute name="manifest:initialisation-vector">
+        <data type="base64Binary"/>
+    </attribute>
+</define>
+<define name="key-derivation">
+    <element name="manifest:key-derivation">
+        <ref name="key-derivation-attlist"/>
+        <empty/>
+    </element>
+</define>
+<define name="key-derivation-attlist" combine="interleave">
+    <attribute name="manifest:key-derivation-name">
+        <data type="string"/>
+    </attribute>
+</define>
+<define name="key-derivation-attlist" combine="interleave">
+    <attribute name="manifest:salt">
+        <data type="base64Binary"/>
+    </attribute>
+</define>
+<define name="key-derivation-attlist" combine="interleave">
+    <attribute name="manifest:iteration-count">
+            <data type="nonNegativeInteger"/>
+        </attribute>
+</define>
+</grammar>



Mime
View raw message