[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [odata] Topic: Schema - place and language (changed from minutes comment)
On 09/12/2012 05:37 AM, Stefan Drees
wrote:
Hi Ralf, +1 In my experience a TC may have multiple specs (e.g. core, extensions, etc.)
I prefer /xsd over /schema/xsd and /schemas. ... I had made a proposal a while back to consider treating the TC artifacts in source control (svn) in a manner similar to a multi-module software project that uses maven to automate the various aspects of managing spec artifacts (e.g. build, package, test, release, deploy etc.). If we were to use maven for building and managing our spec artifacts then the structure of the svn tree would be based on established maven practices for a multi-module project. Here is an example of what that could look like relative to /trunk: ./pom.xml (the top level build configuration file that builds all sub-modules such as odata-core, checkABNF etc.) ./README.txt (describe structure and how to build) ./specs/odata-core (core spec) ./specs/odata-core/src ./specs/odata-core/src/main ./specs/odata-core/src/main/resources ./specs/odata-core/src/main/resources/wsdl (wsdl files) ./specs/odata-core/src/main/resources/xml (xml files) ./specs/odata-core/src/main/resources/doc (documents such as .doc, .odt but not generated types like .pdf) ./specs/odata-core/src/main/resources/xsd (xsd files) ./specs/odata-core/src/main/resources/xsl (xsl files) ./specs/odata-core/src/main/assembly ./specs/odata-core/src/main/assembly/assembly.xml (file that describes how to assemble a zip file conforming to OASIS web site structure) ./specs/odata-core/pom.xml (build configuration file for odata-core module) ./catalog.xml (any entries for xml catalog reslver) ./specs/odata-core-bindings/catalog.xml ./tools/checkABNF (using convention to use lower-camel-case for package/directory names) ./tools/checkABNF/pom.xml (build configuration file for checkABNF module) ./tools/checkABNF/src ./tools/checkABNF/src/main (subtree for sources) ./tools/checkABNF/src/main/java ./tools/checkABNF/src/main/resources ./tools/checkABNF/src/test (subtree for automated tests) ./tools/checkABNF/src/test/java ./tools/checkABNF/src/test/resources ./proposals/ ./minutes NOTES:
Relax NG is an alternative to XSD but I thought Schematron is for a different purpose. Where XSD enforces syntactic rules on XML, Schematron is for enforcing more higher level business rules. I advice sticking with XSD as it has much better tool support and overall traction.
I am curious what are the barriers to a normative schema for CSDL? Could they be overcome by using XSD + Schematron? Thanks. -- Regards, Farrukh Najmi Web: http://www.wellfleetsoftware.com |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]