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

[52/84] incubator-corinthia git commit: moved schemas to /experiments

http://git-wip-us.apache.org/repos/asf/incubator-corinthia/blob/8c610197/schemas/OOXML/transitional/xml.rng
----------------------------------------------------------------------
diff --git a/schemas/OOXML/transitional/xml.rng b/schemas/OOXML/transitional/xml.rng
deleted file mode 100644
index d12db9e..0000000
--- a/schemas/OOXML/transitional/xml.rng
+++ /dev/null
@@ -1,43 +0,0 @@
-<?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/schemas/createimpl.js
----------------------------------------------------------------------
diff --git a/schemas/createimpl.js b/schemas/createimpl.js
deleted file mode 100755
index e3ad79d..0000000
--- a/schemas/createimpl.js
+++ /dev/null
@@ -1,340 +0,0 @@
-#!/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/schemas/extra.csv
----------------------------------------------------------------------
diff --git a/schemas/extra.csv b/schemas/extra.csv
deleted file mode 100644
index ee1fe89..0000000
--- a/schemas/extra.csv
+++ /dev/null
@@ -1,167 +0,0 @@
-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/schemas/generate.sh
----------------------------------------------------------------------
diff --git a/schemas/generate.sh b/schemas/generate.sh
deleted file mode 100755
index c4f82d2..0000000
--- a/schemas/generate.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/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/schemas/namespaces.csv
----------------------------------------------------------------------
diff --git a/schemas/namespaces.csv b/schemas/namespaces.csv
deleted file mode 100644
index 4317458..0000000
--- a/schemas/namespaces.csv
+++ /dev/null
@@ -1,58 +0,0 @@
-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/schemas/relaxng.js
----------------------------------------------------------------------
diff --git a/schemas/relaxng.js b/schemas/relaxng.js
deleted file mode 100755
index 233a263..0000000
--- a/schemas/relaxng.js
+++ /dev/null
@@ -1,254 +0,0 @@
-#!/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/schemas/schema.css
----------------------------------------------------------------------
diff --git a/schemas/schema.css b/schemas/schema.css
deleted file mode 100644
index 3f9484c..0000000
--- a/schemas/schema.css
+++ /dev/null
@@ -1,98 +0,0 @@
-/************************************************************
-   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: ">";
-}