You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@corinthia.apache.org by ja...@apache.org on 2015/08/14 15:23:28 UTC
[67/84] incubator-corinthia git commit: moved schemas to /experiments
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/8c610197/experiments/schemas/OOXML/transitional/xml.rng
----------------------------------------------------------------------
diff --git a/experiments/schemas/OOXML/transitional/xml.rng b/experiments/schemas/OOXML/transitional/xml.rng
new file mode 100644
index 0000000..d12db9e
--- /dev/null
+++ b/experiments/schemas/OOXML/transitional/xml.rng
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+ <define name="xml_lang">
+ <attribute name="xml:lang">
+ <choice>
+ <data type="language"/>
+ <value type="string"/>
+ </choice>
+ </attribute>
+ </define>
+ <define name="xml_space">
+ <attribute name="xml:space">
+ <choice>
+ <value>default</value>
+ <value>preserve</value>
+ </choice>
+ </attribute>
+ </define>
+ <define name="xml_base">
+ <attribute name="xml:base">
+ <data type="anyURI"/>
+ </attribute>
+ </define>
+ <define name="xml_id">
+ <attribute name="xml:id">
+ <data type="ID"/>
+ </attribute>
+ </define>
+ <define name="xml_specialAttrs">
+ <optional>
+ <ref name="xml_base"/>
+ </optional>
+ <optional>
+ <ref name="xml_lang"/>
+ </optional>
+ <optional>
+ <ref name="xml_space"/>
+ </optional>
+ <optional>
+ <ref name="xml_id"/>
+ </optional>
+ </define>
+</grammar>
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/8c610197/experiments/schemas/createimpl.js
----------------------------------------------------------------------
diff --git a/experiments/schemas/createimpl.js b/experiments/schemas/createimpl.js
new file mode 100755
index 0000000..e3ad79d
--- /dev/null
+++ b/experiments/schemas/createimpl.js
@@ -0,0 +1,340 @@
+#!/usr/local/bin/phantomjs --web-security=no
+
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+var autoGeneratedMsg = "// This file was automatically generated using schemas/generate.sh. "+
+ "Do not edit.";
+
+var fs = require("fs");
+
+// List of namespaces that we actually deal with in the conversion process
+// To minimise size of lookup hash table we only include elements & attributes in
+// the namespaces we need
+var includeNamespaces = {
+ "http://www.w3.org/XML/1998/namespace": true,
+ "http://www.w3.org/1999/xhtml": true,
+ "http://schemas.openxmlformats.org/markup-compatibility/2006": true,
+ "http://schemas.openxmlformats.org/wordprocessingml/2006/main": true,
+ "urn:oasis:names:tc:opendocument:xmlns:office:1.0": true,
+ "urn:oasis:names:tc:opendocument:xmlns:style:1.0": true,
+ "urn:oasis:names:tc:opendocument:xmlns:table:1.0": true,
+ "urn:oasis:names:tc:opendocument:xmlns:text:1.0": true,
+ "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0": true,
+ "http://relaxng.org/ns/structure/1.0": true,
+ "http://schemas.openxmlformats.org/package/2006/relationships": true,
+ "http://schemas.openxmlformats.org/package/2006/content-types": true,
+ "http://purl.org/dc/elements/1.1/": true,
+ "urn:oasis:names:tc:opendocument:xmlns:meta:1.0": true,
+ "http://www.uxproductivity.com/schemaview": true,
+ "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0": true,
+ "http://schemas.openxmlformats.org/officeDocument/2006/math": true,
+ "http://schemas.openxmlformats.org/schemaLibrary/2006/main": true,
+ "http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing": true,
+ "http://schemas.openxmlformats.org/drawingml/2006/main": true,
+ "http://schemas.openxmlformats.org/drawingml/2006/picture": true,
+ "http://schemas.openxmlformats.org/officeDocument/2006/relationships": true,
+ "http://www.uxproductivity.com/uxwrite/conversion": true,
+ "http://www.uxproductivity.com/uxwrite/LaTeX": true,
+ "urn:schemas-microsoft-com:vml": true,
+ "urn:schemas-microsoft-com:office:office": true,
+ "http://www.w3.org/1999/xlink": true,
+ "": true,
+};
+
+var MINIMUM_TAG = 10;
+
+function debug(str)
+{
+ console.log(str);
+}
+
+function pad(str,length)
+{
+ while (str.length < length)
+ str += " ";
+ return str;
+}
+
+function Namespace(xmlPrefix,definePrefix,namespaceURI)
+{
+ this.xmlPrefix = xmlPrefix;
+ this.definePrefix = definePrefix;
+ this.namespaceURI = namespaceURI;
+}
+
+function Tag(define,type,namespaceURI,localName)
+{
+ this.define = define;
+ this.type = type;
+ this.namespaceURI = namespaceURI;
+ this.localName = localName;
+}
+
+var namespaceArray = new Array();
+var namespacesByURI = new Object();
+var tagsByDefine = new Object();
+var tagArray = new Array();
+
+function readNamespaces(filename)
+{
+ var data = fs.read(filename);
+ var lines = data.split("\n");
+ for (var i = 0; i < lines.length; i++) {
+ var line = lines[i];
+ if (line.match(/^\s*$/))
+ continue;
+ var parts = line.split(/,/);
+ if (parts.length != 3)
+ throw new Error("Invalid line: "+line);
+
+ var xmlPrefix = parts[0];
+ var definePrefix = parts[1].replace(/-/g,"_").toUpperCase();
+ var namespaceURI = parts[2];
+
+ if (namespacesByURI[namespaceURI] != null) {
+ debug("Skipping duplicate namespace record for "+namespaceURI);
+ }
+ else {
+ var namespace = new Namespace(xmlPrefix,definePrefix,namespaceURI);
+ namespaceArray.push(namespace);
+ namespacesByURI[namespaceURI] = namespace;
+ }
+ }
+}
+
+function readTags(filename)
+{
+ var data = fs.read(filename);
+ var lines = data.split("\n");
+ for (var i = 0; i < lines.length; i++) {
+ var line = lines[i];
+ if (line.charAt(0) == "#")
+ continue;
+ if (line.match(/^\s*$/))
+ continue;
+ var parts = line.split(/,/);
+ if (parts.length < 3)
+ throw new Error("Invalid line: "+line);
+
+ var type = parts[0];
+ var namespaceURI = parts[1];
+ var localName = parts[2];
+ var namespace = namespacesByURI[namespaceURI];
+// if (namespace == null)
+// throw new Error("No namespace ID for "+namespaceURI);
+ var definePrefix = (namespace != null) ? namespace.definePrefix : "NULL";
+
+ var defineLocalName = localName;
+ if ((parts.length >= 4) && (parts[3].charAt(0) == "!")) {
+ var defineLocalName = parts[3].substring(1);
+ debug("localName = "+localName+", defineLocalName = "+defineLocalName);
+ var define = definePrefix+"_"+defineLocalName.replace(/-/g,"_");
+ }
+ else {
+ var define = definePrefix+"_"+defineLocalName.replace(/-/g,"_").toUpperCase();
+ }
+
+ if (((type == "element") || (type == "attribute")) && includeNamespaces[namespaceURI])
+ tagsByDefine[define] = new Tag(define,type,namespaceURI,localName);
+ }
+}
+
+function buildTagsArray()
+{
+ var defines = Object.getOwnPropertyNames(tagsByDefine).sort();
+ for (var i = 0; i < defines.length; i++) {
+ var define = defines[i];
+ var tag = tagsByDefine[define];
+ tagArray.push(tag);
+ }
+}
+
+
+function printNamespaceHeader(output)
+{
+ output.push(autoGeneratedMsg);
+ output.push("");
+ output.push("#ifndef _DFXMLNamespaces_h");
+ output.push("#define _DFXMLNamespaces_h");
+ output.push("");
+ output.push("enum {");
+ output.push(" NAMESPACE_NULL,");
+ for (var i = 0; i < namespaceArray.length; i++) {
+ var namespace = namespaceArray[i];
+ output.push(" NAMESPACE_"+namespace.definePrefix+",");
+ }
+ output.push(" PREDEFINED_NAMESPACE_COUNT");
+ output.push("};");
+ output.push("");
+ output.push("typedef struct {");
+ output.push(" const char *namespaceURI;");
+ output.push(" const char *prefix;");
+ output.push("} NamespaceDecl;");
+ output.push("");
+ output.push("typedef unsigned int NamespaceID;");
+ output.push("");
+ output.push("#ifndef NAMESPACE_C");
+ output.push("extern const NamespaceDecl PredefinedNamespaces[PREDEFINED_NAMESPACE_COUNT];");
+ output.push("#endif");
+ output.push("");
+ output.push("#endif");
+}
+
+function printNamespaceSource(output)
+{
+ output.push(autoGeneratedMsg);
+ output.push("");
+ output.push("#define NAMESPACE_C");
+ output.push("#include \"DFXMLNamespaces.h\"");
+ output.push("#include <stdio.h>");
+ output.push("");
+ output.push("const NamespaceDecl PredefinedNamespaces[PREDEFINED_NAMESPACE_COUNT] = {");
+ output.push(" { NULL, NULL },");
+ for (var i = 0; i < namespaceArray.length; i++) {
+ var namespace = namespaceArray[i];
+ output.push(" { "+JSON.stringify(namespace.namespaceURI)+
+ ", "+JSON.stringify(namespace.xmlPrefix)+" },");
+ }
+ output.push("};");
+}
+
+function printTagsHeader(output)
+{
+ output.push(autoGeneratedMsg);
+ output.push("");
+ output.push("#ifndef _DFXMLNames_h");
+ output.push("#define _DFXMLNames_h");
+ output.push("");
+ output.push("enum {");
+ output.push(" "+tagArray[0].define+" = "+MINIMUM_TAG+",");
+ for (var i = 1; i < tagArray.length; i++) {
+ var tag = tagArray[i];
+ output.push(" "+tag.define+",");
+ }
+ output.push(" PREDEFINED_TAG_COUNT");
+ output.push("};");
+ output.push("");
+ output.push("typedef struct {");
+ output.push(" unsigned int namespaceID;");
+ output.push(" const char *localName;");
+ output.push("} TagDecl;");
+ output.push("");
+ output.push("typedef unsigned int Tag;");
+ output.push("");
+ output.push("#ifndef TAGS_C");
+ output.push("extern const TagDecl PredefinedTags[PREDEFINED_TAG_COUNT];");
+ output.push("#endif");
+ output.push("");
+ output.push("#endif");
+}
+
+function printTagsSource(output)
+{
+ output.push(autoGeneratedMsg);
+ output.push("");
+ output.push("#define TAGS_C");
+ output.push("#include \"DFXMLNames.h\"");
+ output.push("#include \"DFXMLNamespaces.h\"");
+ output.push("#include <stdio.h>");
+ output.push("");
+ output.push("const TagDecl PredefinedTags[PREDEFINED_TAG_COUNT] = {");
+ for (var i = 0; i < MINIMUM_TAG; i++) {
+ output.push(" { 0, NULL },");
+ }
+ for (var i = 0; i < tagArray.length; i++) {
+ var tag = tagArray[i];
+ var namespace = namespacesByURI[tag.namespaceURI];
+// if (namespace == null)
+// throw new Error("No namespace ID for "+tag.namespaceURI);
+ var definePrefix = (namespace != null) ? namespace.definePrefix : "NULL";
+ output.push(" { NAMESPACE_"+definePrefix+", "+
+ JSON.stringify(tag.localName)+" },");
+ }
+ output.push("};");
+}
+
+function printLookupHeader(output)
+{
+ output.push("typedef struct TagMapping {");
+ output.push(" const char *name;");
+ output.push(" unsigned int tag;");
+ output.push("} TagMapping;");
+ output.push("");
+ output.push("const TagMapping *TagLookup(const char *str, unsigned int len);");
+}
+
+function printLookupGperf(output)
+{
+ output.push("%{");
+ output.push("#include \"DFXMLNames.h\"");
+ output.push("#include \"taglookup.h\"");
+ output.push("#include <string.h>");
+ output.push("%}");
+ output.push("%readonly-tables");
+ output.push("%define lookup-function-name TagLookup");
+ output.push("%struct-type");
+ output.push("struct TagMapping;");
+ output.push("%%");
+ for (var i = 0; i < tagArray.length; i++) {
+ var tag = tagArray[i];
+// var namespace = namespacesByURI[tag.namespaceURI];
+// if (namespace == null)
+// throw new Error("No namespace ID for "+tag.namespaceURI);
+ var combined = tag.localName+" "+tag.namespaceURI;
+ output.push(combined+", "+tag.define);
+ }
+ output.push("%%");
+}
+
+function writeFile(filename,fun)
+{
+ var output = new Array();
+ fun(output);
+ output.push("");
+ fs.write(filename,output.join("\n"),"w");
+ debug("Wrote "+filename);
+}
+
+function main()
+{
+ try {
+ var outputDir = "../DocFormats/names";
+
+ readNamespaces("namespaces.csv");
+
+ var filenames = ["output/collated.csv", "HTML5/html5.csv", "extra.csv"];
+ for (var i = 0; i < filenames.length; i++)
+ readTags(filenames[i]);
+ buildTagsArray();
+
+ writeFile(outputDir+"/DFXMLNamespaces.h",printNamespaceHeader);
+ writeFile(outputDir+"/DFXMLNamespaces.c",printNamespaceSource);
+ writeFile(outputDir+"/DFXMLNames.h",printTagsHeader);
+ writeFile(outputDir+"/DFXMLNames.c",printTagsSource);
+// writeFile(outputDir+"/taglookup.h",printLookupHeader);
+// writeFile(outputDir+"/taglookup.gperf",printLookupGperf);
+
+ phantom.exit(0);
+ }
+ catch (e) {
+ debug("Error: "+e);
+ phantom.exit(1);
+ }
+}
+
+main();
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/8c610197/experiments/schemas/extra.csv
----------------------------------------------------------------------
diff --git a/experiments/schemas/extra.csv b/experiments/schemas/extra.csv
new file mode 100644
index 0000000..ee1fe89
--- /dev/null
+++ b/experiments/schemas/extra.csv
@@ -0,0 +1,167 @@
+attribute,http://schemas.openxmlformats.org/markup-compatibility/2006,Ignorable
+attribute,http://schemas.openxmlformats.org/markup-compatibility/2006,ProcessContent
+attribute,http://schemas.openxmlformats.org/markup-compatibility/2006,MustUnderstand
+element,http://schemas.openxmlformats.org/markup-compatibility/2006,AlternateContent
+element,http://schemas.openxmlformats.org/markup-compatibility/2006,Choice
+element,http://schemas.openxmlformats.org/markup-compatibility/2006,Fallback
+element,http://relaxng.org/ns/structure/1.0,anyName
+element,http://relaxng.org/ns/structure/1.0,attribute
+element,http://relaxng.org/ns/structure/1.0,choice
+element,http://relaxng.org/ns/structure/1.0,data
+element,http://relaxng.org/ns/structure/1.0,define
+element,http://relaxng.org/ns/structure/1.0,div
+element,http://relaxng.org/ns/structure/1.0,element
+element,http://relaxng.org/ns/structure/1.0,empty
+element,http://relaxng.org/ns/structure/1.0,except
+element,http://relaxng.org/ns/structure/1.0,externalRef
+element,http://relaxng.org/ns/structure/1.0,grammar
+element,http://relaxng.org/ns/structure/1.0,group
+element,http://relaxng.org/ns/structure/1.0,include
+element,http://relaxng.org/ns/structure/1.0,interleave
+element,http://relaxng.org/ns/structure/1.0,list
+element,http://relaxng.org/ns/structure/1.0,mixed
+element,http://relaxng.org/ns/structure/1.0,name
+element,http://relaxng.org/ns/structure/1.0,notAllowed
+element,http://relaxng.org/ns/structure/1.0,nsNae
+element,http://relaxng.org/ns/structure/1.0,oneOrMore
+element,http://relaxng.org/ns/structure/1.0,optional
+element,http://relaxng.org/ns/structure/1.0,param
+element,http://relaxng.org/ns/structure/1.0,parentRef
+element,http://relaxng.org/ns/structure/1.0,ref
+element,http://relaxng.org/ns/structure/1.0,start
+element,http://relaxng.org/ns/structure/1.0,text
+element,http://relaxng.org/ns/structure/1.0,value
+element,http://relaxng.org/ns/structure/1.0,zeroOrMore
+attribute,,name
+attribute,,combine
+element,http://schemas.openxmlformats.org/package/2006/relationships,Relationship
+element,http://schemas.openxmlformats.org/package/2006/relationships,Relationships
+attribute,,TargetMode
+attribute,,Target
+attribute,,Type,!Type
+attribute,,Id,!Id
+element,http://schemas.openxmlformats.org/package/2006/content-types,Types
+element,http://schemas.openxmlformats.org/package/2006/content-types,Default
+element,http://schemas.openxmlformats.org/package/2006/content-types,Override
+attribute,,Extension
+attribute,,PartName
+attribute,,ContentType
+element,http://www.uxproductivity.com/schemaview,schemaview
+element,http://www.uxproductivity.com/schemaview,category
+element,http://www.uxproductivity.com/schemaview,ignore
+element,http://www.uxproductivity.com/schemaview,define
+element,http://www.uxproductivity.com/schemaview,element
+element,http://www.uxproductivity.com/schemaview,removed-element
+attribute,,uri
+attribute,,cx
+attribute,,cy
+attribute,,id
+attribute,,distT
+attribute,,distB
+attribute,,distL
+attribute,,distR
+attribute,,l
+attribute,,t
+attribute,,r
+attribute,,b
+attribute,,x
+attribute,,y
+attribute,,prstGeom
+attribute,,noChangeAspect
+attribute,,prst
+attribute,,typeface
+attribute,,style
+attribute,,ProgID
+attribute,http://www.uxproductivity.com/uxwrite/conversion,listnum
+attribute,http://www.uxproductivity.com/uxwrite/conversion,listtype
+attribute,http://www.uxproductivity.com/uxwrite/conversion,ilvl
+attribute,http://www.uxproductivity.com/uxwrite/conversion,listitem
+element,http://schemas.openxmlformats.org/wordprocessingml/2006/main,bookmark
+
+# Macros
+element,http://www.uxproductivity.com/uxwrite/LaTeX,begin
+element,http://www.uxproductivity.com/uxwrite/LaTeX,end
+element,http://www.uxproductivity.com/uxwrite/LaTeX,part
+element,http://www.uxproductivity.com/uxwrite/LaTeX,partstar
+element,http://www.uxproductivity.com/uxwrite/LaTeX,chapter
+element,http://www.uxproductivity.com/uxwrite/LaTeX,chapterstar
+element,http://www.uxproductivity.com/uxwrite/LaTeX,section
+element,http://www.uxproductivity.com/uxwrite/LaTeX,sectionstar
+element,http://www.uxproductivity.com/uxwrite/LaTeX,subsection
+element,http://www.uxproductivity.com/uxwrite/LaTeX,subsectionstar
+element,http://www.uxproductivity.com/uxwrite/LaTeX,subsubsection
+element,http://www.uxproductivity.com/uxwrite/LaTeX,subsubsectionstar
+element,http://www.uxproductivity.com/uxwrite/LaTeX,paragraph
+element,http://www.uxproductivity.com/uxwrite/LaTeX,paragraphstar
+element,http://www.uxproductivity.com/uxwrite/LaTeX,subparagraph
+element,http://www.uxproductivity.com/uxwrite/LaTeX,subparagraphstar
+element,http://www.uxproductivity.com/uxwrite/LaTeX,label
+element,http://www.uxproductivity.com/uxwrite/LaTeX,ref
+element,http://www.uxproductivity.com/uxwrite/LaTeX,prettyref
+element,http://www.uxproductivity.com/uxwrite/LaTeX,nameref
+element,http://www.uxproductivity.com/uxwrite/LaTeX,tableofcontents
+element,http://www.uxproductivity.com/uxwrite/LaTeX,listoffigures
+element,http://www.uxproductivity.com/uxwrite/LaTeX,listoftables
+element,http://www.uxproductivity.com/uxwrite/LaTeX,item
+element,http://www.uxproductivity.com/uxwrite/LaTeX,caption
+
+# Environments
+element,http://www.uxproductivity.com/uxwrite/LaTeX,document
+element,http://www.uxproductivity.com/uxwrite/LaTeX,enumerate
+element,http://www.uxproductivity.com/uxwrite/LaTeX,itemize
+element,http://www.uxproductivity.com/uxwrite/LaTeX,figure
+element,http://www.uxproductivity.com/uxwrite/LaTeX,table
+element,http://www.uxproductivity.com/uxwrite/LaTeX,tabular
+
+# Inline macros
+element,http://www.uxproductivity.com/uxwrite/LaTeX,textbf
+element,http://www.uxproductivity.com/uxwrite/LaTeX,emph
+element,http://www.uxproductivity.com/uxwrite/LaTeX,uline
+
+# Other
+element,http://www.uxproductivity.com/uxwrite/LaTeX,latex
+element,http://www.uxproductivity.com/uxwrite/LaTeX,math
+element,http://www.uxproductivity.com/uxwrite/LaTeX,group
+element,http://www.uxproductivity.com/uxwrite/LaTeX,control
+element,http://www.uxproductivity.com/uxwrite/LaTeX,paragraphsep
+element,http://www.uxproductivity.com/uxwrite/LaTeX,documentclass
+element,http://www.uxproductivity.com/uxwrite/LaTeX,includegraphics
+element,http://www.uxproductivity.com/uxwrite/LaTeX,newcommand
+element,http://www.uxproductivity.com/uxwrite/LaTeX,renewcommand
+
+# Parameters
+attribute,http://www.uxproductivity.com/uxwrite/LaTeX,name
+attribute,http://www.uxproductivity.com/uxwrite/LaTeX,class
+attribute,http://www.uxproductivity.com/uxwrite/LaTeX,options
+
+# OPML
+element,,body
+element,,dateCreated
+element,,dateModified
+element,,docs
+element,,expansionState
+element,,head
+element,,opml
+element,,outline
+element,,ownerEmail
+element,,ownerId
+element,,ownerName
+element,,title
+element,,vertScrollState
+element,,windowBottom
+element,,windowLeft
+element,,windowRight
+element,,windowTop
+attribute,,category
+attribute,,created
+attribute,,description
+attribute,,htmlUrl
+attribute,,isBreakpoint
+attribute,,isComment
+attribute,,language
+attribute,,text
+attribute,,title
+attribute,,type
+attribute,,url
+attribute,,version
+attribute,,xmlUrl
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/8c610197/experiments/schemas/generate.sh
----------------------------------------------------------------------
diff --git a/experiments/schemas/generate.sh b/experiments/schemas/generate.sh
new file mode 100755
index 0000000..c4f82d2
--- /dev/null
+++ b/experiments/schemas/generate.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+rm -rf output
+mkdir output
+./relaxng.js > output/collated.csv
+./createimpl.js
+#gperf -m 5 output/taglookup.gperf > output/taglookup1.c
+#grep -v '^#line' output/taglookup1.c > output/taglookup.c
+#rm -f output/taglookup1.c
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/8c610197/experiments/schemas/namespaces.csv
----------------------------------------------------------------------
diff --git a/experiments/schemas/namespaces.csv b/experiments/schemas/namespaces.csv
new file mode 100644
index 0000000..4317458
--- /dev/null
+++ b/experiments/schemas/namespaces.csv
@@ -0,0 +1,58 @@
+xml,xml,http://www.w3.org/XML/1998/namespace
+dc,dc,http://purl.org/dc/elements/1.1/
+aa,annotations,http://relaxng.org/ns/compatibility/annotations/1.0
+dchrt,dml-chart,http://schemas.openxmlformats.org/drawingml/2006/chart
+cdr,dml-chart-drawing,http://schemas.openxmlformats.org/drawingml/2006/chartDrawing
+ddgrm,dml-diagram,http://schemas.openxmlformats.org/drawingml/2006/diagram
+a,dml-main,http://schemas.openxmlformats.org/drawingml/2006/main
+dpct,dml-picture,http://schemas.openxmlformats.org/drawingml/2006/picture
+xdr,dml-ss,http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing
+wp,dml-wp,http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing
+dlc,dml-lc,http://schemas.openxmlformats.org/drawingml/2006/lockedCanvas
+ds,customxml,http://schemas.openxmlformats.org/officeDocument/2006/customXml
+m,math,http://schemas.openxmlformats.org/officeDocument/2006/math
+r,orel,http://schemas.openxmlformats.org/officeDocument/2006/relationships
+s,shared,http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes
+cts,characteristics,http://schemas.openxmlformats.org/officeDocument/2006/characteristics
+bib,bib,http://schemas.openxmlformats.org/officeDocument/2006/bibliography
+cpr,custompr,http://schemas.openxmlformats.org/officeDocument/2006/custom-properties
+epr,extendedpr,http://schemas.openxmlformats.org/officeDocument/2006/extended-properties
+mc,mc,http://schemas.openxmlformats.org/markup-compatibility/2006
+p,pml,http://schemas.openxmlformats.org/presentationml/2006/main
+sl,sl,http://schemas.openxmlformats.org/schemaLibrary/2006/main
+sml,sml,http://schemas.openxmlformats.org/spreadsheetml/2006/main
+w,word,http://schemas.openxmlformats.org/wordprocessingml/2006/main
+math,mathml,http://www.w3.org/1998/Math/MathML
+xhtml,html,http://www.w3.org/1999/xhtml
+xlink,xlink,http://www.w3.org/1999/xlink
+xforms,xforms,http://www.w3.org/2002/xforms
+grddl,grddl,http://www.w3.org/2003/g/data-view#
+anim,anim,urn:oasis:names:tc:opendocument:xmlns:animation:1.0
+chart,chart,urn:oasis:names:tc:opendocument:xmlns:chart:1.0
+config,config,urn:oasis:names:tc:opendocument:xmlns:config:1.0
+db,db,urn:oasis:names:tc:opendocument:xmlns:database:1.0
+number,number,urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0
+dr3d,dr3d,urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0
+draw,draw,urn:oasis:names:tc:opendocument:xmlns:drawing:1.0
+form,form,urn:oasis:names:tc:opendocument:xmlns:form:1.0
+meta,meta,urn:oasis:names:tc:opendocument:xmlns:meta:1.0
+office,office,urn:oasis:names:tc:opendocument:xmlns:office:1.0
+presentation,presentation,urn:oasis:names:tc:opendocument:xmlns:presentation:1.0
+script,script,urn:oasis:names:tc:opendocument:xmlns:script:1.0
+smil,smil,urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0
+style,style,urn:oasis:names:tc:opendocument:xmlns:style:1.0
+svg,svg,urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0
+table,table,urn:oasis:names:tc:opendocument:xmlns:table:1.0
+text,text,urn:oasis:names:tc:opendocument:xmlns:text:1.0
+fo,fo,urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0
+x,msoffice-excel,urn:schemas-microsoft-com:office:excel
+o,msoffice,urn:schemas-microsoft-com:office:office
+w10,msoffice-word,urn:schemas-microsoft-com:office:word
+v,vml,urn:schemas-microsoft-com:vml
+rng,rng,http://relaxng.org/ns/structure/1.0
+rel,rel,http://schemas.openxmlformats.org/package/2006/relationships
+ct,ct,http://schemas.openxmlformats.org/package/2006/content-types
+sv,sv,http://www.uxproductivity.com/schemaview
+mf,mf,urn:oasis:names:tc:opendocument:xmlns:manifest:1.0
+conv,conv,http://www.uxproductivity.com/uxwrite/conversion
+latex,latex,http://www.uxproductivity.com/uxwrite/LaTeX
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/8c610197/experiments/schemas/relaxng.js
----------------------------------------------------------------------
diff --git a/experiments/schemas/relaxng.js b/experiments/schemas/relaxng.js
new file mode 100755
index 0000000..233a263
--- /dev/null
+++ b/experiments/schemas/relaxng.js
@@ -0,0 +1,254 @@
+#!/usr/local/bin/phantomjs --web-security=no
+
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+/*
+
+Output: CSV file with the following fields:
+
+type (element, attribute, or namespace)
+namespaceURI
+localName
+source file
+
+*/
+
+var RELAXNG_NAMESPACE = "http://relaxng.org/ns/structure/1.0";
+var XML_NAMESPACE = "http://www.w3.org/XML/1998/namespace";
+
+var filenames = [
+ "ODF/OpenDocument-v1.2-os-schema.rng",
+ "ODF/OpenDocument-v1.2-os-manifest-schema.rng",
+ "OOXML/transitional/DrawingML_Chart.rng",
+ "OOXML/transitional/DrawingML_Chart_Drawing.rng",
+ "OOXML/transitional/DrawingML_Diagram_Colors.rng",
+ "OOXML/transitional/DrawingML_Diagram_Data.rng",
+ "OOXML/transitional/DrawingML_Diagram_Layout_Definition.rng",
+ "OOXML/transitional/DrawingML_Diagram_Style.rng",
+ "OOXML/transitional/DrawingML_Table_Styles.rng",
+ "OOXML/transitional/DrawingML_Theme.rng",
+ "OOXML/transitional/DrawingML_Theme_Override.rng",
+ "OOXML/transitional/PresentationML_Comment_Authors.rng",
+ "OOXML/transitional/PresentationML_Comments.rng",
+ "OOXML/transitional/PresentationML_Handout_Master.rng",
+ "OOXML/transitional/PresentationML_Notes_Master.rng",
+ "OOXML/transitional/PresentationML_Notes_Slide.rng",
+ "OOXML/transitional/PresentationML_Presentation.rng",
+ "OOXML/transitional/PresentationML_Presentation_Properties.rng",
+ "OOXML/transitional/PresentationML_Slide.rng",
+ "OOXML/transitional/PresentationML_Slide_Layout.rng",
+ "OOXML/transitional/PresentationML_Slide_Master.rng",
+ "OOXML/transitional/PresentationML_Slide_Synchronization_Data.rng",
+ "OOXML/transitional/PresentationML_User-Defined_Tags.rng",
+ "OOXML/transitional/PresentationML_View_Properties.rng",
+ "OOXML/transitional/Shared_Additional_Characteristics.rng",
+ "OOXML/transitional/Shared_Bibliography.rng",
+ "OOXML/transitional/Shared_Custom_File_Properties.rng",
+ "OOXML/transitional/Shared_Custom_XML_Data_Storage_Properties.rng",
+ "OOXML/transitional/Shared_Extended_File_Properties.rng",
+ "OOXML/transitional/SpreadsheetML_Calculation_Chain.rng",
+ "OOXML/transitional/SpreadsheetML_Chartsheet.rng",
+ "OOXML/transitional/SpreadsheetML_Comments.rng",
+ "OOXML/transitional/SpreadsheetML_Connections.rng",
+ "OOXML/transitional/SpreadsheetML_Custom_XML_Mappings.rng",
+ "OOXML/transitional/SpreadsheetML_Dialogsheet.rng",
+ "OOXML/transitional/SpreadsheetML_Drawing.rng",
+ "OOXML/transitional/SpreadsheetML_External_Workbook_References.rng",
+ "OOXML/transitional/SpreadsheetML_Metadata.rng",
+ "OOXML/transitional/SpreadsheetML_Pivot_Table.rng",
+ "OOXML/transitional/SpreadsheetML_Pivot_Table_Cache_Definition.rng",
+ "OOXML/transitional/SpreadsheetML_Pivot_Table_Cache_Records.rng",
+ "OOXML/transitional/SpreadsheetML_Query_Table.rng",
+ "OOXML/transitional/SpreadsheetML_Shared_String_Table.rng",
+ "OOXML/transitional/SpreadsheetML_Shared_Workbook_Revision_Headers.rng",
+ "OOXML/transitional/SpreadsheetML_Shared_Workbook_Revision_Log.rng",
+ "OOXML/transitional/SpreadsheetML_Shared_Workbook_User_Data.rng",
+ "OOXML/transitional/SpreadsheetML_Single_Cell_Table_Definitions.rng",
+ "OOXML/transitional/SpreadsheetML_Styles.rng",
+ "OOXML/transitional/SpreadsheetML_Table_Definitions.rng",
+ "OOXML/transitional/SpreadsheetML_Volatile_Dependencies.rng",
+ "OOXML/transitional/SpreadsheetML_Workbook.rng",
+ "OOXML/transitional/SpreadsheetML_Worksheet.rng",
+// "OOXML/transitional/VML_Drawing.rng",
+ "OOXML/transitional/WordprocessingML_Comments.rng",
+ "OOXML/transitional/WordprocessingML_Document_Settings.rng",
+ "OOXML/transitional/WordprocessingML_Endnotes.rng",
+ "OOXML/transitional/WordprocessingML_Font_Table.rng",
+ "OOXML/transitional/WordprocessingML_Footer.rng",
+ "OOXML/transitional/WordprocessingML_Footnotes.rng",
+ "OOXML/transitional/WordprocessingML_Glossary_Document.rng",
+ "OOXML/transitional/WordprocessingML_Header.rng",
+ "OOXML/transitional/WordprocessingML_Mail_Merge_Recipient_Data.rng",
+ "OOXML/transitional/WordprocessingML_Main_Document.rng",
+ "OOXML/transitional/WordprocessingML_Numbering_Definitions.rng",
+ "OOXML/transitional/WordprocessingML_Style_Definitions.rng",
+ "OOXML/transitional/WordprocessingML_Web_Settings.rng",
+ "OOXML/transitional/any.rng",
+ "OOXML/transitional/dml-chart.rng",
+ "OOXML/transitional/dml-chartDrawing.rng",
+ "OOXML/transitional/dml-diagram.rng",
+ "OOXML/transitional/dml-lockedCanvas.rng",
+ "OOXML/transitional/dml-main.rng",
+ "OOXML/transitional/dml-picture.rng",
+ "OOXML/transitional/dml-spreadsheetDrawing.rng",
+ "OOXML/transitional/dml-wordprocessingDrawing.rng",
+ "OOXML/transitional/pml.rng",
+ "OOXML/transitional/shared-additionalCharacteristics.rng",
+ "OOXML/transitional/shared-bibliography.rng",
+ "OOXML/transitional/shared-commonSimpleTypes.rng",
+ "OOXML/transitional/shared-customXmlDataProperties.rng",
+ "OOXML/transitional/shared-customXmlSchemaProperties.rng",
+ "OOXML/transitional/shared-documentPropertiesCustom.rng",
+ "OOXML/transitional/shared-documentPropertiesExtended.rng",
+// "OOXML/transitional/shared-documentPropertiesVariantTypes.rng",
+ "OOXML/transitional/shared-math.rng",
+ "OOXML/transitional/shared-relationshipReference.rng",
+ "OOXML/transitional/sml.rng",
+ "OOXML/transitional/vml-main.rng",
+ "OOXML/transitional/vml-officeDrawing.rng",
+// "OOXML/transitional/vml-presentationDrawing.rng",
+// "OOXML/transitional/vml-spreadsheetDrawing.rng",
+// "OOXML/transitional/vml-wordprocessingDrawing.rng",
+ "OOXML/transitional/wml.rng",
+ "OOXML/transitional/xml.rng"];
+
+
+
+
+
+
+
+
+var fs = require("fs");
+var entries = new Array();
+
+function Entry(type,namespaceURI,localName,filename)
+{
+ this.type = type;
+ this.namespaceURI = namespaceURI;
+ this.localName = localName;
+ this.filename = filename;
+}
+
+function debug(str)
+{
+ console.log(str);
+}
+
+function resolvePrefix(node,prefix)
+{
+ if (node == null)
+ return null;
+
+ if (node.attributes != null) {
+ for (var i = 0; i < node.attributes.length; i++) {
+ var attr = node.attributes[i];
+ if ((attr.prefix == "xmlns") && (attr.localName == prefix))
+ return node.getAttribute(attr.nodeName);
+ if ((prefix == null) && (attr.localName == "ns"))
+ return node.getAttribute(attr.nodeName);
+ }
+ }
+
+ return resolvePrefix(node.parentNode,prefix);
+}
+
+function foundEntry(node,type,name,filename)
+{
+ var re = /^(([^:]+):)?([^:]+)/;
+ var result = re.exec(name);
+
+ var prefix = result[2];
+ var localName = result[3];
+
+ var namespaceURI = null;
+ if (prefix == "xml") {
+ namespaceURI = "http://www.w3.org/XML/1998/namespace";
+ }
+ else {
+ namespaceURI = resolvePrefix(node,prefix);
+// if (namespaceURI == null)
+// throw new Error("Can't resolve namespace prefix "+prefix);
+ }
+
+ var entry = new Entry(type,namespaceURI,localName,filename);
+ entries.push(entry);
+}
+
+function recurse(node,filename)
+{
+ if (node.nodeType == Node.ELEMENT_NODE) {
+ if ((node.localName == "element") && node.hasAttribute("name"))
+ foundEntry(node,"element",node.getAttribute("name"),filename);
+ else if ((node.localName == "attribute") && node.hasAttribute("name"))
+ foundEntry(node,"attribute",node.getAttribute("name"),filename);
+ }
+
+ if (node.attributes != null) {
+ for (var i = 0; i < node.attributes.length; i++) {
+ var attr = node.attributes[i];
+ if (attr.prefix == "xmlns") {
+ var prefix = attr.localName;
+ var namespaceURI = node.getAttribute(attr.nodeName);
+ entries.push(new Entry("namespace",namespaceURI,prefix,filename));
+ }
+ }
+ }
+
+
+ for (var child = node.firstChild; child != null; child = child.nextSibling) {
+ recurse(child,filename);
+ }
+}
+
+function processRelaxNG(filename)
+{
+ var data = fs.read(filename);
+ var parser = new DOMParser();
+ var doc = parser.parseFromString(data,"text/xml");
+ if (doc == null)
+ throw new Error("Can't parse "+filename);
+ recurse(doc.documentElement,filename);
+}
+
+function printEntries()
+{
+ for (var i = 0; i < entries.length; i++) {
+ var entry = entries[i];
+ var namespaceURI = (entry.namespaceURI != null) ? entry.namespaceURI : "";
+ var localName = (entry.localName != null) ? entry.localName : "";
+ var filename = (entry.filename != null) ? entry.filename : "";
+ debug(entry.type+","+namespaceURI+","+localName+","+filename);
+ }
+}
+
+function main()
+{
+ try {
+ for (var i = 0; i < filenames.length; i++)
+ processRelaxNG(filenames[i]);
+ printEntries();
+ phantom.exit(0);
+ }
+ catch (e) {
+ debug("Error: "+e);
+ phantom.exit(1);
+ }
+}
+
+main();
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/8c610197/experiments/schemas/schema.css
----------------------------------------------------------------------
diff --git a/experiments/schemas/schema.css b/experiments/schemas/schema.css
new file mode 100644
index 0000000..3f9484c
--- /dev/null
+++ b/experiments/schemas/schema.css
@@ -0,0 +1,98 @@
+/************************************************************
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+************************************************************/
+
+.Title {
+ font-size: 24pt;
+ text-align: center;
+ }
+ .toc1 {
+ margin-bottom: 6pt;
+ margin-left: 0pt;
+ margin-top: 12pt;
+ }
+ .toc2 {
+ margin-bottom: 6pt;
+ margin-left: 24pt;
+ margin-top: 6pt;
+ }
+ .toc3 {
+ margin-bottom: 6pt;
+ margin-left: 48pt;
+ margin-top: 6pt;
+ }
+ body {
+ font-family: sans-serif;
+ margin: 5%;
+ }
+ h1 {
+ border-bottom: 2px solid rgb(192, 192, 192);
+ color: rgb(0, 0, 192);
+ }
+ h2 {
+ color: rgb(0, 0, 192);
+ }
+
+
+a, a:visited {
+ color: #0080f0
+}
+
+pre {
+ background-color: #f0f0f0;
+ border-radius: 10px;
+ padding: 10px;
+ margin: 10px;
+}
+
+.definition {
+ background-color: #f0f0f0;
+ border-radius: 10px;
+ margin: 10px;
+}
+
+.definition-name {
+ background-color: #c0c0c0;
+ border-radius: 10px;
+ padding: 10px;
+}
+
+.definition-content {
+ font-family: monospace;
+ white-space: pre;
+ padding: 10px;
+}
+
+.element-start, .element-end {
+}
+
+.element-start:before {
+ content: "<";
+}
+
+.element-start:after {
+ content: ">";
+}
+
+.element-end:before {
+ content: "</";
+}
+
+.element-end:after {
+ content: ">";
+}
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/8c610197/schemas/.gitignore
----------------------------------------------------------------------
diff --git a/schemas/.gitignore b/schemas/.gitignore
deleted file mode 100644
index ea1472e..0000000
--- a/schemas/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-output/
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/8c610197/schemas/HTML5/html5.csv
----------------------------------------------------------------------
diff --git a/schemas/HTML5/html5.csv b/schemas/HTML5/html5.csv
deleted file mode 100644
index 4c46df9..0000000
--- a/schemas/HTML5/html5.csv
+++ /dev/null
@@ -1,329 +0,0 @@
-element,http://www.w3.org/1999/xhtml,a
-element,http://www.w3.org/1999/xhtml,abbr
-element,http://www.w3.org/1999/xhtml,address
-element,http://www.w3.org/1999/xhtml,area
-element,http://www.w3.org/1999/xhtml,article
-element,http://www.w3.org/1999/xhtml,aside
-element,http://www.w3.org/1999/xhtml,audio
-element,http://www.w3.org/1999/xhtml,b
-element,http://www.w3.org/1999/xhtml,base
-element,http://www.w3.org/1999/xhtml,bdi
-element,http://www.w3.org/1999/xhtml,bdo
-element,http://www.w3.org/1999/xhtml,blockquote
-element,http://www.w3.org/1999/xhtml,body
-element,http://www.w3.org/1999/xhtml,br
-element,http://www.w3.org/1999/xhtml,button
-element,http://www.w3.org/1999/xhtml,canvas
-element,http://www.w3.org/1999/xhtml,caption
-element,http://www.w3.org/1999/xhtml,cite
-element,http://www.w3.org/1999/xhtml,code
-element,http://www.w3.org/1999/xhtml,col
-element,http://www.w3.org/1999/xhtml,colgroup
-element,http://www.w3.org/1999/xhtml,command
-element,http://www.w3.org/1999/xhtml,data
-element,http://www.w3.org/1999/xhtml,datalist
-element,http://www.w3.org/1999/xhtml,dd
-element,http://www.w3.org/1999/xhtml,del
-element,http://www.w3.org/1999/xhtml,details
-element,http://www.w3.org/1999/xhtml,dfn
-element,http://www.w3.org/1999/xhtml,dialog
-element,http://www.w3.org/1999/xhtml,div
-element,http://www.w3.org/1999/xhtml,dl
-element,http://www.w3.org/1999/xhtml,dt
-element,http://www.w3.org/1999/xhtml,em
-element,http://www.w3.org/1999/xhtml,embed
-element,http://www.w3.org/1999/xhtml,fieldset
-element,http://www.w3.org/1999/xhtml,figcaption
-element,http://www.w3.org/1999/xhtml,figure
-element,http://www.w3.org/1999/xhtml,footer
-element,http://www.w3.org/1999/xhtml,form
-element,http://www.w3.org/1999/xhtml,h1
-element,http://www.w3.org/1999/xhtml,h2
-element,http://www.w3.org/1999/xhtml,h3
-element,http://www.w3.org/1999/xhtml,h4
-element,http://www.w3.org/1999/xhtml,h5
-element,http://www.w3.org/1999/xhtml,h6
-element,http://www.w3.org/1999/xhtml,head
-element,http://www.w3.org/1999/xhtml,header
-element,http://www.w3.org/1999/xhtml,hgroup
-element,http://www.w3.org/1999/xhtml,hr
-element,http://www.w3.org/1999/xhtml,html
-element,http://www.w3.org/1999/xhtml,i
-element,http://www.w3.org/1999/xhtml,iframe
-element,http://www.w3.org/1999/xhtml,img
-element,http://www.w3.org/1999/xhtml,input
-element,http://www.w3.org/1999/xhtml,ins
-element,http://www.w3.org/1999/xhtml,kbd
-element,http://www.w3.org/1999/xhtml,keygen
-element,http://www.w3.org/1999/xhtml,label
-element,http://www.w3.org/1999/xhtml,legend
-element,http://www.w3.org/1999/xhtml,li
-element,http://www.w3.org/1999/xhtml,link
-element,http://www.w3.org/1999/xhtml,map
-element,http://www.w3.org/1999/xhtml,mark
-element,http://www.w3.org/1999/xhtml,menu
-element,http://www.w3.org/1999/xhtml,meta
-element,http://www.w3.org/1999/xhtml,meter
-element,http://www.w3.org/1999/xhtml,nav
-element,http://www.w3.org/1999/xhtml,noscript
-element,http://www.w3.org/1999/xhtml,object
-element,http://www.w3.org/1999/xhtml,ol
-element,http://www.w3.org/1999/xhtml,optgroup
-element,http://www.w3.org/1999/xhtml,option
-element,http://www.w3.org/1999/xhtml,output
-element,http://www.w3.org/1999/xhtml,p
-element,http://www.w3.org/1999/xhtml,param
-element,http://www.w3.org/1999/xhtml,pre
-element,http://www.w3.org/1999/xhtml,progress
-element,http://www.w3.org/1999/xhtml,q
-element,http://www.w3.org/1999/xhtml,rp
-element,http://www.w3.org/1999/xhtml,rt
-element,http://www.w3.org/1999/xhtml,ruby
-element,http://www.w3.org/1999/xhtml,s
-element,http://www.w3.org/1999/xhtml,samp
-element,http://www.w3.org/1999/xhtml,script
-element,http://www.w3.org/1999/xhtml,section
-element,http://www.w3.org/1999/xhtml,select
-element,http://www.w3.org/1999/xhtml,small
-element,http://www.w3.org/1999/xhtml,source
-element,http://www.w3.org/1999/xhtml,span
-element,http://www.w3.org/1999/xhtml,strong
-element,http://www.w3.org/1999/xhtml,style
-element,http://www.w3.org/1999/xhtml,sub
-element,http://www.w3.org/1999/xhtml,summary
-element,http://www.w3.org/1999/xhtml,sup
-element,http://www.w3.org/1999/xhtml,table
-element,http://www.w3.org/1999/xhtml,tbody
-element,http://www.w3.org/1999/xhtml,td
-element,http://www.w3.org/1999/xhtml,textarea
-element,http://www.w3.org/1999/xhtml,tfoot
-element,http://www.w3.org/1999/xhtml,th
-element,http://www.w3.org/1999/xhtml,thead
-element,http://www.w3.org/1999/xhtml,time
-element,http://www.w3.org/1999/xhtml,title
-element,http://www.w3.org/1999/xhtml,tr
-element,http://www.w3.org/1999/xhtml,track
-element,http://www.w3.org/1999/xhtml,u
-element,http://www.w3.org/1999/xhtml,ul
-element,http://www.w3.org/1999/xhtml,var
-element,http://www.w3.org/1999/xhtml,video
-element,http://www.w3.org/1999/xhtml,wbr
-attribute,http://www.w3.org/1999/xhtml,accept
-attribute,http://www.w3.org/1999/xhtml,accept-charset
-attribute,http://www.w3.org/1999/xhtml,accesskey
-attribute,http://www.w3.org/1999/xhtml,action
-attribute,http://www.w3.org/1999/xhtml,alt
-attribute,http://www.w3.org/1999/xhtml,async
-attribute,http://www.w3.org/1999/xhtml,autocomplete
-attribute,http://www.w3.org/1999/xhtml,autocomplete
-attribute,http://www.w3.org/1999/xhtml,autofocus
-attribute,http://www.w3.org/1999/xhtml,autoplay
-attribute,http://www.w3.org/1999/xhtml,challenge
-attribute,http://www.w3.org/1999/xhtml,charset
-attribute,http://www.w3.org/1999/xhtml,charset
-attribute,http://www.w3.org/1999/xhtml,checked
-attribute,http://www.w3.org/1999/xhtml,cite
-attribute,http://www.w3.org/1999/xhtml,class
-attribute,http://www.w3.org/1999/xhtml,cols
-attribute,http://www.w3.org/1999/xhtml,colspan
-attribute,http://www.w3.org/1999/xhtml,command
-attribute,http://www.w3.org/1999/xhtml,content
-attribute,http://www.w3.org/1999/xhtml,contenteditable
-attribute,http://www.w3.org/1999/xhtml,contextmenu
-attribute,http://www.w3.org/1999/xhtml,controls
-attribute,http://www.w3.org/1999/xhtml,coords
-attribute,http://www.w3.org/1999/xhtml,crossorigin
-attribute,http://www.w3.org/1999/xhtml,data
-attribute,http://www.w3.org/1999/xhtml,datetime
-attribute,http://www.w3.org/1999/xhtml,datetime
-attribute,http://www.w3.org/1999/xhtml,default
-attribute,http://www.w3.org/1999/xhtml,defer
-attribute,http://www.w3.org/1999/xhtml,dir
-attribute,http://www.w3.org/1999/xhtml,dirname
-attribute,http://www.w3.org/1999/xhtml,disabled
-attribute,http://www.w3.org/1999/xhtml,download
-attribute,http://www.w3.org/1999/xhtml,draggable
-attribute,http://www.w3.org/1999/xhtml,dropzone
-attribute,http://www.w3.org/1999/xhtml,enctype
-attribute,http://www.w3.org/1999/xhtml,for
-attribute,http://www.w3.org/1999/xhtml,for
-attribute,http://www.w3.org/1999/xhtml,form
-attribute,http://www.w3.org/1999/xhtml,formaction
-attribute,http://www.w3.org/1999/xhtml,formenctype
-attribute,http://www.w3.org/1999/xhtml,formmethod
-attribute,http://www.w3.org/1999/xhtml,formnovalidate
-attribute,http://www.w3.org/1999/xhtml,formtarget
-attribute,http://www.w3.org/1999/xhtml,headers
-attribute,http://www.w3.org/1999/xhtml,height
-attribute,http://www.w3.org/1999/xhtml,hidden
-attribute,http://www.w3.org/1999/xhtml,high
-attribute,http://www.w3.org/1999/xhtml,href
-attribute,http://www.w3.org/1999/xhtml,href
-attribute,http://www.w3.org/1999/xhtml,href
-attribute,http://www.w3.org/1999/xhtml,hreflang
-attribute,http://www.w3.org/1999/xhtml,http-equiv
-attribute,http://www.w3.org/1999/xhtml,icon
-attribute,http://www.w3.org/1999/xhtml,id
-attribute,http://www.w3.org/1999/xhtml,inert
-attribute,http://www.w3.org/1999/xhtml,inputmode
-attribute,http://www.w3.org/1999/xhtml,ismap
-attribute,http://www.w3.org/1999/xhtml,itemid
-attribute,http://www.w3.org/1999/xhtml,itemprop
-attribute,http://www.w3.org/1999/xhtml,itemref
-attribute,http://www.w3.org/1999/xhtml,itemscope
-attribute,http://www.w3.org/1999/xhtml,itemtype
-attribute,http://www.w3.org/1999/xhtml,keytype
-attribute,http://www.w3.org/1999/xhtml,kind
-attribute,http://www.w3.org/1999/xhtml,label
-attribute,http://www.w3.org/1999/xhtml,lang
-attribute,http://www.w3.org/1999/xhtml,list
-attribute,http://www.w3.org/1999/xhtml,loop
-attribute,http://www.w3.org/1999/xhtml,low
-attribute,http://www.w3.org/1999/xhtml,manifest
-attribute,http://www.w3.org/1999/xhtml,max
-attribute,http://www.w3.org/1999/xhtml,max
-attribute,http://www.w3.org/1999/xhtml,maxlength
-attribute,http://www.w3.org/1999/xhtml,media
-attribute,http://www.w3.org/1999/xhtml,mediagroup
-attribute,http://www.w3.org/1999/xhtml,method
-attribute,http://www.w3.org/1999/xhtml,min
-attribute,http://www.w3.org/1999/xhtml,min
-attribute,http://www.w3.org/1999/xhtml,multiple
-attribute,http://www.w3.org/1999/xhtml,muted
-attribute,http://www.w3.org/1999/xhtml,name
-attribute,http://www.w3.org/1999/xhtml,name
-attribute,http://www.w3.org/1999/xhtml,name
-attribute,http://www.w3.org/1999/xhtml,name
-attribute,http://www.w3.org/1999/xhtml,name
-attribute,http://www.w3.org/1999/xhtml,name
-attribute,http://www.w3.org/1999/xhtml,novalidate
-attribute,http://www.w3.org/1999/xhtml,open
-attribute,http://www.w3.org/1999/xhtml,open
-attribute,http://www.w3.org/1999/xhtml,optimum
-attribute,http://www.w3.org/1999/xhtml,pattern
-attribute,http://www.w3.org/1999/xhtml,ping
-attribute,http://www.w3.org/1999/xhtml,placeholder
-attribute,http://www.w3.org/1999/xhtml,poster
-attribute,http://www.w3.org/1999/xhtml,preload
-attribute,http://www.w3.org/1999/xhtml,radiogroup
-attribute,http://www.w3.org/1999/xhtml,readonly
-attribute,http://www.w3.org/1999/xhtml,rel
-attribute,http://www.w3.org/1999/xhtml,required
-attribute,http://www.w3.org/1999/xhtml,reversed
-attribute,http://www.w3.org/1999/xhtml,rows
-attribute,http://www.w3.org/1999/xhtml,rowspan
-attribute,http://www.w3.org/1999/xhtml,sandbox
-attribute,http://www.w3.org/1999/xhtml,spellcheck
-attribute,http://www.w3.org/1999/xhtml,scope
-attribute,http://www.w3.org/1999/xhtml,scoped
-attribute,http://www.w3.org/1999/xhtml,seamless
-attribute,http://www.w3.org/1999/xhtml,selected
-attribute,http://www.w3.org/1999/xhtml,shape
-attribute,http://www.w3.org/1999/xhtml,size
-attribute,http://www.w3.org/1999/xhtml,sizes
-attribute,http://www.w3.org/1999/xhtml,span
-attribute,http://www.w3.org/1999/xhtml,src
-attribute,http://www.w3.org/1999/xhtml,srcdoc
-attribute,http://www.w3.org/1999/xhtml,srclang
-attribute,http://www.w3.org/1999/xhtml,start
-attribute,http://www.w3.org/1999/xhtml,step
-attribute,http://www.w3.org/1999/xhtml,style
-attribute,http://www.w3.org/1999/xhtml,tabindex
-attribute,http://www.w3.org/1999/xhtml,target
-attribute,http://www.w3.org/1999/xhtml,target
-attribute,http://www.w3.org/1999/xhtml,target
-attribute,http://www.w3.org/1999/xhtml,title
-attribute,http://www.w3.org/1999/xhtml,title
-attribute,http://www.w3.org/1999/xhtml,title
-attribute,http://www.w3.org/1999/xhtml,title
-attribute,http://www.w3.org/1999/xhtml,title
-attribute,http://www.w3.org/1999/xhtml,translate
-attribute,http://www.w3.org/1999/xhtml,type
-attribute,http://www.w3.org/1999/xhtml,type
-attribute,http://www.w3.org/1999/xhtml,type
-attribute,http://www.w3.org/1999/xhtml,type
-attribute,http://www.w3.org/1999/xhtml,type
-attribute,http://www.w3.org/1999/xhtml,type
-attribute,http://www.w3.org/1999/xhtml,typemustmatch
-attribute,http://www.w3.org/1999/xhtml,usemap
-attribute,http://www.w3.org/1999/xhtml,value
-attribute,http://www.w3.org/1999/xhtml,value
-attribute,http://www.w3.org/1999/xhtml,value
-attribute,http://www.w3.org/1999/xhtml,value
-attribute,http://www.w3.org/1999/xhtml,value
-attribute,http://www.w3.org/1999/xhtml,value
-attribute,http://www.w3.org/1999/xhtml,width
-attribute,http://www.w3.org/1999/xhtml,wrap
-attribute,http://www.w3.org/1999/xhtml,onabort
-attribute,http://www.w3.org/1999/xhtml,onafterprint
-attribute,http://www.w3.org/1999/xhtml,onbeforeprint
-attribute,http://www.w3.org/1999/xhtml,onbeforeunload
-attribute,http://www.w3.org/1999/xhtml,onblur
-attribute,http://www.w3.org/1999/xhtml,onblur
-attribute,http://www.w3.org/1999/xhtml,oncancel
-attribute,http://www.w3.org/1999/xhtml,oncanplay
-attribute,http://www.w3.org/1999/xhtml,oncanplaythrough
-attribute,http://www.w3.org/1999/xhtml,onchange
-attribute,http://www.w3.org/1999/xhtml,onclick
-attribute,http://www.w3.org/1999/xhtml,onclose
-attribute,http://www.w3.org/1999/xhtml,oncontextmenu
-attribute,http://www.w3.org/1999/xhtml,oncuechange
-attribute,http://www.w3.org/1999/xhtml,ondblclick
-attribute,http://www.w3.org/1999/xhtml,ondrag
-attribute,http://www.w3.org/1999/xhtml,ondragend
-attribute,http://www.w3.org/1999/xhtml,ondragenter
-attribute,http://www.w3.org/1999/xhtml,ondragleave
-attribute,http://www.w3.org/1999/xhtml,ondragover
-attribute,http://www.w3.org/1999/xhtml,ondragstart
-attribute,http://www.w3.org/1999/xhtml,ondrop
-attribute,http://www.w3.org/1999/xhtml,ondurationchange
-attribute,http://www.w3.org/1999/xhtml,onemptied
-attribute,http://www.w3.org/1999/xhtml,onended
-attribute,http://www.w3.org/1999/xhtml,onerror
-attribute,http://www.w3.org/1999/xhtml,onerror
-attribute,http://www.w3.org/1999/xhtml,onfocus
-attribute,http://www.w3.org/1999/xhtml,onfocus
-attribute,http://www.w3.org/1999/xhtml,onhashchange
-attribute,http://www.w3.org/1999/xhtml,oninput
-attribute,http://www.w3.org/1999/xhtml,oninvalid
-attribute,http://www.w3.org/1999/xhtml,onkeydown
-attribute,http://www.w3.org/1999/xhtml,onkeypress
-attribute,http://www.w3.org/1999/xhtml,onkeyup
-attribute,http://www.w3.org/1999/xhtml,onload
-attribute,http://www.w3.org/1999/xhtml,onload
-attribute,http://www.w3.org/1999/xhtml,onloadeddata
-attribute,http://www.w3.org/1999/xhtml,onloadedmetadata
-attribute,http://www.w3.org/1999/xhtml,onloadstart
-attribute,http://www.w3.org/1999/xhtml,onmessage
-attribute,http://www.w3.org/1999/xhtml,onmousedown
-attribute,http://www.w3.org/1999/xhtml,onmousemove
-attribute,http://www.w3.org/1999/xhtml,onmouseout
-attribute,http://www.w3.org/1999/xhtml,onmouseover
-attribute,http://www.w3.org/1999/xhtml,onmouseup
-attribute,http://www.w3.org/1999/xhtml,onmousewheel
-attribute,http://www.w3.org/1999/xhtml,onoffline
-attribute,http://www.w3.org/1999/xhtml,ononline
-attribute,http://www.w3.org/1999/xhtml,onpagehide
-attribute,http://www.w3.org/1999/xhtml,onpageshow
-attribute,http://www.w3.org/1999/xhtml,onpause
-attribute,http://www.w3.org/1999/xhtml,onplay
-attribute,http://www.w3.org/1999/xhtml,onplaying
-attribute,http://www.w3.org/1999/xhtml,onpopstate
-attribute,http://www.w3.org/1999/xhtml,onprogress
-attribute,http://www.w3.org/1999/xhtml,onratechange
-attribute,http://www.w3.org/1999/xhtml,onreset
-attribute,http://www.w3.org/1999/xhtml,onresize
-attribute,http://www.w3.org/1999/xhtml,onscroll
-attribute,http://www.w3.org/1999/xhtml,onscroll
-attribute,http://www.w3.org/1999/xhtml,onseeked
-attribute,http://www.w3.org/1999/xhtml,onseeking
-attribute,http://www.w3.org/1999/xhtml,onselect
-attribute,http://www.w3.org/1999/xhtml,onshow
-attribute,http://www.w3.org/1999/xhtml,onstalled
-attribute,http://www.w3.org/1999/xhtml,onstorage
-attribute,http://www.w3.org/1999/xhtml,onsubmit
-attribute,http://www.w3.org/1999/xhtml,onsuspend
-attribute,http://www.w3.org/1999/xhtml,ontimeupdate
-attribute,http://www.w3.org/1999/xhtml,onunload
-attribute,http://www.w3.org/1999/xhtml,onvolumechange
-attribute,http://www.w3.org/1999/xhtml,onwaiting
http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/8c610197/schemas/ODF/README.txt
----------------------------------------------------------------------
diff --git a/schemas/ODF/README.txt b/schemas/ODF/README.txt
deleted file mode 100644
index 80af9fe..0000000
--- a/schemas/ODF/README.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-ODF v1.2 Relax NG schema
-
-Obtain files from:
-http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-manifest-schema.rng
-http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-schema.rng
-