You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by aj...@apache.org on 2006/03/26 14:16:43 UTC

svn commit: r388899 - in /webservices/commons/trunk/modules/XmlSchema: ./ site/ test/tests/ xdocs/

Author: ajith
Date: Sun Mar 26 04:16:42 2006
New Revision: 388899

URL: http://svn.apache.org/viewcvs?rev=388899&view=rev
Log:
1. Added RELEASE-NOTE.txt,LICENSE.txt and README.txt to the root
2. Added the schematutorial.html and a proper navigation.xml (maven 1 style)
3. Fixed a few problems in the maven2 build
4. Added goals to generate the binary and source builds

Added:
    webservices/commons/trunk/modules/XmlSchema/LICENSE.txt
    webservices/commons/trunk/modules/XmlSchema/README.txt
    webservices/commons/trunk/modules/XmlSchema/RELEASE-NOTE.txt
    webservices/commons/trunk/modules/XmlSchema/xdocs/
    webservices/commons/trunk/modules/XmlSchema/xdocs/navigation.xml
    webservices/commons/trunk/modules/XmlSchema/xdocs/schematutorial.html
Modified:
    webservices/commons/trunk/modules/XmlSchema/maven.xml
    webservices/commons/trunk/modules/XmlSchema/pom.xml
    webservices/commons/trunk/modules/XmlSchema/project.properties
    webservices/commons/trunk/modules/XmlSchema/project.xml
    webservices/commons/trunk/modules/XmlSchema/site/site.xml
    webservices/commons/trunk/modules/XmlSchema/test/tests/TestSimpleRestriction.java

Added: webservices/commons/trunk/modules/XmlSchema/LICENSE.txt
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/XmlSchema/LICENSE.txt?rev=388899&view=auto
==============================================================================
--- webservices/commons/trunk/modules/XmlSchema/LICENSE.txt (added)
+++ webservices/commons/trunk/modules/XmlSchema/LICENSE.txt Sun Mar 26 04:16:42 2006
@@ -0,0 +1,203 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed 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.
+

Added: webservices/commons/trunk/modules/XmlSchema/README.txt
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/XmlSchema/README.txt?rev=388899&view=auto
==============================================================================
--- webservices/commons/trunk/modules/XmlSchema/README.txt (added)
+++ webservices/commons/trunk/modules/XmlSchema/README.txt Sun Mar 26 04:16:42 2006
@@ -0,0 +1,26 @@
+======================================================
+Apache XMLSchema 1.0 build  (March 23rd, 2006)
+
+http://ws.apache.org/commons/XmlSchema/
+------------------------------------------------------
+
+___________________
+Documentation
+===================
+ 
+Documentation can be found in the 'docs' distribution of this release and in the main site.
+
+___________________
+Support
+===================
+ 
+Any problem with this release can be reported to ws-commons mailing list
+. If you are sending an email to the mailing
+list make sure to add the [XMLSchema] prefix to the subject.
+
+Mailing list subscription:
+    commons-dev-subscribe@ws.apache.org
+
+Thank you for using XMLSchema
+
+The XMLSchema Team.

Added: webservices/commons/trunk/modules/XmlSchema/RELEASE-NOTE.txt
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/XmlSchema/RELEASE-NOTE.txt?rev=388899&view=auto
==============================================================================
--- webservices/commons/trunk/modules/XmlSchema/RELEASE-NOTE.txt (added)
+++ webservices/commons/trunk/modules/XmlSchema/RELEASE-NOTE.txt Sun Mar 26 04:16:42 2006
@@ -0,0 +1,15 @@
+ ====================================
+       XMLSchema 1.00 Release Note
+ ====================================
+
+This is XMLSchema 1.00 release of the Apache WS-Commons.
+
+XMLSchema is a lightweight schema object model that can be used to manipulate and
+generate XML schema representations. It has very few external dependancies and can
+be easily integrated into an existing project.
+
+You are welcome to kick the tires and get XMLSchema on the move. If you like to help us shape XMLSchema any contribution in the form of coding, testing, submitting improvements to the documentation, and reporting bugs are always welcome.
+
+Thanks for your interest in XMLSchema!
+
+-The XMLSchema Development Team

Modified: webservices/commons/trunk/modules/XmlSchema/maven.xml
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/XmlSchema/maven.xml?rev=388899&r1=388898&r2=388899&view=diff
==============================================================================
--- webservices/commons/trunk/modules/XmlSchema/maven.xml (original)
+++ webservices/commons/trunk/modules/XmlSchema/maven.xml Sun Mar 26 04:16:42 2006
@@ -1,26 +1,109 @@
 <?xml version="1.0" encoding="UTF-8"?>
-
 <!-- $Revision: 1.21 $ $Date: 2004-10-27 20:54:09 +0600 (Wed, 27 Oct 2004) $ -->
-
-<project default="jar"
-    xmlns:j="jelly:core"
-    xmlns:u="jelly:util"
-    xmlns:maven="jelly:maven"
-    xmlns:util="jelly:util"
-    xmlns:deploy="deploy"
-    xmlns:ant="jelly:ant">
-
-    <preGoal name="test:compile">
-        <j:if test="${context.getVariable('maven.test.skip') != 'true'}">
-		<u:file var="file" name="${maven.build.dir}/xmlschema2002-01-16"/>
-	        <j:if test="${!file.exists()}">
-	        	<echo>Downloading 6MB XML Schema test suite. This make take a few minutes...</echo>
-				<ant:get dest="${maven.build.dir}/xsts-2002-01-16.tar.gz" 
-					src="http://www.w3.org/XML/2004/xml-schema-test-suite/xmlschema2002-01-16/xsts-2002-01-16.tar.gz"/>
-		    	
+<project default="jar" xmlns:j="jelly:core" xmlns:u="jelly:util" xmlns:maven="jelly:maven" xmlns:util="jelly:util" xmlns:deploy="deploy" xmlns:ant="jelly:ant">
+	<j:set var="javadoc.dir" value="target/apidocs"/>
+	<j:set var="site.javadoc.dir" value="target/docs/apidocs"/>
+	<!-- A seperate goal to run the complete test suite -->
+	<goal name="all-tests">
+		<j:if test="${context.getVariable('maven.test.skip') != 'true'}">
+			<u:file var="file" name="${maven.build.dir}/xmlschema2002-01-16"/>
+			<j:if test="${!file.exists()}">
+				<echo>Downloading 6MB XML Schema test suite. This make take a few minutes...</echo>
+				<ant:get dest="${maven.build.dir}/xsts-2002-01-16.tar.gz" src="http://www.w3.org/XML/2004/xml-schema-test-suite/xmlschema2002-01-16/xsts-2002-01-16.tar.gz"/>
 				<ant:gunzip src="${maven.build.dir}/xsts-2002-01-16.tar.gz"/>
 				<ant:untar src="${maven.build.dir}/xsts-2002-01-16.tar" dest="${maven.build.dir}"/>
-	        </j:if>
-        </j:if>
-    </preGoal>
+			</j:if>
+			<!-- Run the tests!-->
+		</j:if>
+	</goal>
+	<!-- create javadocs as a post goal to the site and copy them to the 
+           target/docs folder -->
+	<postGoal name="site">
+		<attainGoal name="javadocs"/>
+		<ant:copy toDir="${site.javadoc.dir}">
+			<ant:fileset dir="${javadoc.dir}"/>
+		</ant:copy>
+	</postGoal>
+	<!-- goal to make the javadocs -->
+	<goal name="javadocs">
+		<ant:echo>+----------------------------------------------</ant:echo>
+		<ant:echo>| Generating Java docs </ant:echo>
+		<ant:echo>+----------------------------------------------</ant:echo>
+		<mkdir dir="${javadoc.dir}"/>
+		<ant:javadoc packagenames="org.apache.ws.commons.*" defaultexcludes="yes" destdir="${javadoc.dir}" author="true" breakiterator="true" version="true" use="true" windowtitle="XMLSchema API">
+			<ant:arg line="-J-Dhttp.proxy.port=${maven.proxy.port} -J-Dhttp.proxy.host=${maven.proxy.host}"/>
+			<ant:sourcepath>
+				<ant:pathelement location="src"/>
+			</ant:sourcepath>
+		</ant:javadoc>
+	</goal>
+	<!-- create the binary distribution -->
+	<goal name="dist-bin" prereqs="jar,javadocs">
+		<ant:echo>+----------------------------------------------</ant:echo>
+		<ant:echo>| Creating: XMLSchema Binary Distribution</ant:echo>
+		<ant:echo>+----------------------------------------------</ant:echo>
+		<property name="dist" value="target/dist/temp"/>
+		<mkdir dir="${dist}"/>
+		<mkdir dir="${dist}/apidocs"/>
+		<mkdir dir="${dist}/build"/>
+		<mkdir dir="${dist}/docs"/>
+		<mkdir dir="${dist}/lib"/>
+		<!--copy dependent jars-->
+		<deploy:copy-deps todir="${dist}/lib"/>
+		<ant:delete file="${dist}/lib/xmlunit-${xmlunit.version}.jar"/>
+		<!--copy api docs-->
+		<ant:copy toDir="${dist}/apidocs">
+			<ant:fileset dir="${javadoc.dir}"/>
+		</ant:copy>
+		<!--add the jar-->
+		<ant:copy toDir="${dist}/build">
+			<ant:fileset file="target/XmlSchema-${schema.version}.jar"/>
+		</ant:copy>
+		<!--add  other documents in Xdocs-->
+		<ant:copy toDir="${dist}/docs">
+			<ant:fileset dir="xdocs">
+				<ant:exclude name="**/.svn/**"/>
+			</ant:fileset>
+		</ant:copy>
+		<!--copy release notes, etc-->
+		<ant:copy toDir="${dist}">
+			<ant:fileset file="RELEASE-NOTE.txt"/>
+			<ant:fileset file="README.txt"/>
+			<ant:fileset file="LICENSE.txt"/>
+		</ant:copy>
+		<!--create the zip-->
+		<ant:zip file="target/dist/XmlSchema-${schema.version}-bin.zip">
+			<ant:fileset dir="${dist}/"/>
+		</ant:zip>
+		<ant:delete dir="${dist}"/>
+	</goal>
+	<!-- code to create the source distribution -->
+	<goal name="dist-src">
+		<ant:echo>+----------------------------------------------</ant:echo>
+		<ant:echo>| Creating: XMLSchema Source Distribution</ant:echo>
+		<ant:echo>+----------------------------------------------</ant:echo>
+		<ant:property name="dist" value="target/dist/temp"/>
+		<ant:copy toDir="${dist}">
+			<ant:fileset dir=".">
+				<ant:exclude name="**/.svn/**"/>
+				<ant:include name="**/src/**"/>
+				<ant:include name="**/test/**"/>
+			</ant:fileset>
+		</ant:copy>
+		<!-- Copy the master maven files src distro -->
+		<ant:copy toDir="${dist}">
+			<ant:fileset file="maven.xml"/>
+			<ant:fileset file="project.xml"/>
+			<ant:fileset file="project.properties"/>
+			<ant:fileset file="RELEASE-NOTE.txt"/>
+			<ant:fileset file="LICENSE.txt"/>
+		</ant:copy>
+		<!-- Zip up -->
+		<ant:zip file="target/dist/XmlSchema-${schema.version}-src.zip">
+			<ant:fileset dir="${dist}/"/>
+		</ant:zip>
+		<ant:delete dir="${dist}"/>
+	</goal>
+	<!-- dummy goal to create both the bin and source distributions -->
+	<goal name="release" prereqs="dist-bin,dist-src"/>
 </project>

Modified: webservices/commons/trunk/modules/XmlSchema/pom.xml
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/XmlSchema/pom.xml?rev=388899&r1=388898&r2=388899&view=diff
==============================================================================
--- webservices/commons/trunk/modules/XmlSchema/pom.xml (original)
+++ webservices/commons/trunk/modules/XmlSchema/pom.xml Sun Mar 26 04:16:42 2006
@@ -1,290 +1,291 @@
-<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.ws.commons</groupId>
-  <artifactId>XmlSchema</artifactId>
-  <name>XmlSchema</name>
-  <version>SNAPSHOT</version>
-  <description>XmlSchema API</description>
-  <url>http://ws.apache.org/commons/XmlSchema</url>
-  <issueManagement>
-    <url>http://issues.apache.org/jira/browse/WSCOMMONS</url>
-  </issueManagement>
-  <ciManagement>
-    <system>Continuum</system>
-    <url>unknown</url>
-    <notifiers>
-      <notifier>
-        <configuration>
-          <address>commons-dev@ws.apache.org</address>
-        </configuration>
-      </notifier>
-    </notifiers>
-  </ciManagement>
-  <inceptionYear>2004</inceptionYear>
-  <developers>
-    <developer>
-      <id>dims</id>
-      <name>Davanum Srinivas</name>
-      <email>dims AT wso2.com</email>
-      <organization>WSO2</organization>
-    </developer>
-    <developer>
-      <id>sanjiva</id>
-      <name>Sanjiva Weerawarana</name>
-      <email>sanjiva AT wso2.com</email>
-      <organization>WSO2</organization>
-    </developer>
-    <developer>
-      <id>gdaniels</id>
-      <name>Glen Daniels</name>
-      <email>gdaniels AT apache.org</email>
-      <organization>Sonic Software</organization>
-    </developer>
-    <developer>
-      <id>alek</id>
-      <name>Aleksander Slominski</name>
-      <email>aslom AT cs.indiana.edu</email>
-      <organization>Indiana University Extreme! Computing Lab</organization>
-    </developer>
-    <developer>
-      <id>hemapani</id>
-      <name>Srinath Perera</name>
-      <email>hemapani AT apache.org</email>
-      <url>http://www.apache.org/~hemapani</url>
-      <organization>Lanka Software Foundation</organization>
-    </developer>
-    <developer>
-      <id>chinthaka</id>
-      <name>Eran Chinthaka</name>
-      <email>chinthaka AT wso2.com</email>
-      <url>http://www.apache.org/~chinthaka</url>
-      <organization>WSO2</organization>
-    </developer>
-    <developer>
-      <id>dasarath</id>
-      <name>Dasarath Weerathunga</name>
-      <email>dasarath AT opensource.lk</email>
-      <organization>Lanka Software Foundation</organization>
-    </developer>
-    <developer>
-      <id>jaliya</id>
-      <name>Jaliya Ekanayake</name>
-      <email>jaliya AT opensource.lk</email>
-      <url>http://www.apache.org/~jaliya</url>
-      <organization>Virtusa / Lanka Software Foundation</organization>
-    </developer>
-    <developer>
-      <id>chathura</id>
-      <name>Chathura Herath</name>
-      <email>chathura AT opensource.lk</email>
-      <url>www.apache.org/~chathura</url>
-      <organization>LSF/MIT</organization>
-    </developer>
-    <developer>
-      <id>deepal</id>
-      <name>Deepal Jayasinghe</name>
-      <email>deepal AT wso2.com</email>
-      <url>http://www.apache.org/~deepal</url>
-      <organization>WSO2</organization>
-    </developer>
-    <developer>
-      <id>ajith</id>
-      <name>Ajith Ranabahu</name>
-      <email>ajith AT wso2.com</email>
-      <url>http://www.apache.org/~ajith</url>
-      <organization>WSO2</organization>
-    </developer>
-    <developer>
-      <id>venkat</id>
-      <name>Venkat Reddy</name>
-      <email>vreddyp AT gmail.com</email>
-      <organization>Computer Associates</organization>
-    </developer>
-    <developer>
-      <id>ashu</id>
-      <name>Ashutosh Shahi</name>
-      <email>Ashutosh.Shahi AT ca.com</email>
-      <organization>Computer Associates</organization>
-    </developer>
-    <developer>
-      <id>jaya</id>
-      <name>Jayachandra Sekhara Rao Sunkara</name>
-      <email>jayachandra AT gmail.com</email>
-      <organization>Computer Associates</organization>
-    </developer>
-    <developer>
-      <id>thilina</id>
-      <name>Thilina Gunarathne</name>
-      <email>thilina AT opensource.lk</email>
-      <organization>Lanka Software Foundation</organization>
-    </developer>
-    <developer>
-      <id>ruchith</id>
-      <name>Ruchith Fernando</name>
-      <email>ruchith AT wso2.com</email>
-      <organization>WSO2</organization>
-    </developer>
-    <developer>
-      <id>saminda</id>
-      <name>Saminda Abeyruwan</name>
-      <email>saminda AT wso2.com</email>
-      <organization>WSO2</organization>
-    </developer>
-    <developer>
-      <id>chamil</id>
-      <name>Chamil Thanthrimudalige</name>
-      <email>chamil AT wso2.com</email>
-      <organization>WSO2</organization>
-    </developer>
-    <developer>
-      <id>dandiep</id>
-      <name>Dan Diephouse</name>
-      <email>dandiep AT apache.org</email>
-      <organization>Envoi Solutions</organization>
-    </developer>
-  </developers>
-  <scm>
-    <connection>scm:svn:http://svn.apache.org/repos/asf/webservices/commons/modules/XmlSchema</connection>
-    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/webservices/commons/modules/XmlSchema</developerConnection>
-    <url>http://svn.apache.org/viewcvs.cgi/webservices/commons/modules/XmlSchema</url>
-  </scm>
-  <organization>
-    <name>Apache Software Foundation</name>
-    <url>http://www.apache.org/</url>
-  </organization>
-  <build>
-    <sourceDirectory>src</sourceDirectory>
-    <testSourceDirectory>test</testSourceDirectory>
-    <resources>
-      <resource>
-        <directory>src</directory>
-        <includes>
-          <include>**/*.xml</include>
-        </includes>
-        <excludes>
-          <exclude>**/package.html</exclude>
-        </excludes>
-      </resource>
-    </resources>
-    <testResources>
-      <testResource>
-        <directory>test-resources</directory>
-        <includes>
-          <include>**/*.xml</include>
-          <include>**/*.xsd</include>
-        </includes>
-      </testResource>
-    </testResources>
-    <plugins>
-      <plugin>
-        <artifactId>maven-antrun-plugin</artifactId>
-        <executions>
-          <execution>
-            <phase>generate-test-resources</phase>
-            <goals>
-              <goal>run</goal>
-            </goals>
-            <configuration>
-              <tasks>
-                <ant inheritRefs="true" antfile="${basedir}/build.xml">
-                  <property value="${basedir}/target" name="build.dir"></property>
-                  <target name="prepareNistTest"></target>
-                </ant>
-              </tasks>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
-        <artifactId>maven-site-plugin</artifactId>
-        <configuration>
-          <siteDirectory>${basedir}/site</siteDirectory>
-        </configuration>
-      </plugin>
-      <plugin>
-        <artifactId>maven-one-plugin</artifactId>
-        <executions>
-          <execution>
-            <goals>
-              <goal>install-maven-one-repository</goal>
-              <goal>deploy-maven-one-repository</goal>
-            </goals>
-          </execution>
-        </executions>
-        <configuration>
-          <remoteRepositoryId>apache</remoteRepositoryId>
-          <remoteRepositoryUrl>scp://people.apache.org/www/www.apache.org/dist/java-repository</remoteRepositoryUrl>
-        </configuration>
-      </plugin>
-      <plugin>
-        <artifactId>maven-release-plugin</artifactId>
-        <configuration>
-          <tagBase>https://svn.apache.org/repos/asf/webservices/commons/tags</tagBase>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
-  <pluginRepositories>
-    <pluginRepository>
-      <id>snapshot</id>
-      <name>Snapshot repository</name>
-      <url>http://snapshots.maven.codehaus.org/maven2/</url>
-    </pluginRepository>
-  </pluginRepositories>
-  <dependencies>
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <version>3.8.1</version>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>xmlunit</groupId>
-      <artifactId>xmlunit</artifactId>
-      <version>1.0</version>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>stax</groupId>
-      <artifactId>stax-api</artifactId>
-      <version>1.0</version>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
-  <reporting>
-    <plugins>
-      <plugin>
-        <artifactId>maven-javadoc-plugin</artifactId>
-      </plugin>
-      <plugin>
-        <artifactId>maven-project-info-reports-plugin</artifactId>
-      </plugin>
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>jdepend-maven-plugin</artifactId>
-        <version>2.0-beta-1-SNAPSHOT</version>
-      </plugin>
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>jxr-maven-plugin</artifactId>
-        <version>2.0-beta-2-SNAPSHOT</version>
-      </plugin>
-    </plugins>
-  </reporting>
-  <distributionManagement>
-    <repository>
-      <id>apache-repo</id>
-      <name>Maven Central Repository</name>
-      <url>scpexe://people.apache.org/www/www.apache.org/dist/maven-repository</url>
-    </repository>
-    <snapshotRepository>
-      <id>apache-snapshots</id>
-      <name>Apache Development Repository</name>
-      <url>scpexe://minotaur.apache.org/www/cvs.apache.org/maven-snapshot-repository</url>
-    </snapshotRepository>
-    <site>
-      <id>website</id>
-      <url>scpexe://people.apache.org/www/ws.apache.org/commons/XmlSchema</url>
-    </site>
-  </distributionManagement>
-</project>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+	<groupId>org.apache.ws.commons</groupId>
+	<artifactId>XmlSchema</artifactId>
+	<name>XmlSchema</name>
+	<version>SNAPSHOT</version>
+	<description>XmlSchema API</description>
+	<url>http://ws.apache.org/commons/XmlSchema</url>
+	<issueManagement>
+		<url>http://issues.apache.org/jira/browse/WSCOMMONS</url>
+	</issueManagement>
+	<ciManagement>
+		<system>Continuum</system>
+		<url>unknown</url>
+		<notifiers>
+			<notifier>
+				<configuration>
+					<address>commons-dev@ws.apache.org</address>
+				</configuration>
+			</notifier>
+		</notifiers>
+	</ciManagement>
+	<inceptionYear>2004</inceptionYear>
+	<developers>
+		<developer>
+			<id>dims</id>
+			<name>Davanum Srinivas</name>
+			<email>dims AT wso2.com</email>
+			<organization>WSO2</organization>
+		</developer>
+		<developer>
+			<id>sanjiva</id>
+			<name>Sanjiva Weerawarana</name>
+			<email>sanjiva AT wso2.com</email>
+			<organization>WSO2</organization>
+		</developer>
+		<developer>
+			<id>gdaniels</id>
+			<name>Glen Daniels</name>
+			<email>gdaniels AT apache.org</email>
+			<organization>Sonic Software</organization>
+		</developer>
+		<developer>
+			<id>alek</id>
+			<name>Aleksander Slominski</name>
+			<email>aslom AT cs.indiana.edu</email>
+			<organization>Indiana University Extreme! Computing Lab</organization>
+		</developer>
+		<developer>
+			<id>hemapani</id>
+			<name>Srinath Perera</name>
+			<email>hemapani AT apache.org</email>
+			<url>http://www.apache.org/~hemapani</url>
+			<organization>Lanka Software Foundation</organization>
+		</developer>
+		<developer>
+			<id>chinthaka</id>
+			<name>Eran Chinthaka</name>
+			<email>chinthaka AT wso2.com</email>
+			<url>http://www.apache.org/~chinthaka</url>
+			<organization>WSO2</organization>
+		</developer>
+		<developer>
+			<id>dasarath</id>
+			<name>Dasarath Weerathunga</name>
+			<email>dasarath AT opensource.lk</email>
+			<organization>Lanka Software Foundation</organization>
+		</developer>
+		<developer>
+			<id>jaliya</id>
+			<name>Jaliya Ekanayake</name>
+			<email>jaliya AT opensource.lk</email>
+			<url>http://www.apache.org/~jaliya</url>
+			<organization>Virtusa / Lanka Software Foundation</organization>
+		</developer>
+		<developer>
+			<id>chathura</id>
+			<name>Chathura Herath</name>
+			<email>chathura AT opensource.lk</email>
+			<url>www.apache.org/~chathura</url>
+			<organization>LSF/MIT</organization>
+		</developer>
+		<developer>
+			<id>deepal</id>
+			<name>Deepal Jayasinghe</name>
+			<email>deepal AT wso2.com</email>
+			<url>http://www.apache.org/~deepal</url>
+			<organization>WSO2</organization>
+		</developer>
+		<developer>
+			<id>ajith</id>
+			<name>Ajith Ranabahu</name>
+			<email>ajith AT wso2.com</email>
+			<url>http://www.apache.org/~ajith</url>
+			<organization>WSO2</organization>
+		</developer>
+		<developer>
+			<id>venkat</id>
+			<name>Venkat Reddy</name>
+			<email>vreddyp AT gmail.com</email>
+			<organization>Computer Associates</organization>
+		</developer>
+		<developer>
+			<id>ashu</id>
+			<name>Ashutosh Shahi</name>
+			<email>Ashutosh.Shahi AT ca.com</email>
+			<organization>Computer Associates</organization>
+		</developer>
+		<developer>
+			<id>jaya</id>
+			<name>Jayachandra Sekhara Rao Sunkara</name>
+			<email>jayachandra AT gmail.com</email>
+			<organization>Computer Associates</organization>
+		</developer>
+		<developer>
+			<id>thilina</id>
+			<name>Thilina Gunarathne</name>
+			<email>thilina AT opensource.lk</email>
+			<organization>Lanka Software Foundation</organization>
+		</developer>
+		<developer>
+			<id>ruchith</id>
+			<name>Ruchith Fernando</name>
+			<email>ruchith AT wso2.com</email>
+			<organization>WSO2</organization>
+		</developer>
+		<developer>
+			<id>saminda</id>
+			<name>Saminda Abeyruwan</name>
+			<email>saminda AT wso2.com</email>
+			<organization>WSO2</organization>
+		</developer>
+		<developer>
+			<id>chamil</id>
+			<name>Chamil Thanthrimudalige</name>
+			<email>chamil AT wso2.com</email>
+			<organization>WSO2</organization>
+		</developer>
+		<developer>
+			<id>dandiep</id>
+			<name>Dan Diephouse</name>
+			<email>dandiep AT apache.org</email>
+			<organization>Envoi Solutions</organization>
+		</developer>
+	</developers>
+	<scm>
+		<connection>scm:svn:http://svn.apache.org/repos/asf/webservices/commons/modules/XmlSchema</connection>
+		<developerConnection>scm:svn:https://svn.apache.org/repos/asf/webservices/commons/modules/XmlSchema</developerConnection>
+		<url>http://svn.apache.org/viewcvs.cgi/webservices/commons/modules/XmlSchema</url>
+	</scm>
+	<organization>
+		<name>Apache Software Foundation</name>
+		<url>http://www.apache.org/</url>
+	</organization>
+	<build>
+		<sourceDirectory>src</sourceDirectory>
+		<testSourceDirectory>test</testSourceDirectory>
+		<resources>
+			<resource>
+				<directory>src</directory>
+				<includes>
+					<include>**/*.xml</include>
+				</includes>
+				<excludes>
+					<exclude>**/package.html</exclude>
+				</excludes>
+			</resource>
+		</resources>
+		<testResources>
+			<testResource>
+				<directory>test-resources</directory>
+				<includes>
+					<include>**/*.xml</include>
+					<include>**/*.xsd</include>
+				</includes>
+			</testResource>
+		</testResources>
+		<plugins>
+			<plugin>
+				<artifactId>maven-antrun-plugin</artifactId>
+				<executions>
+					<execution>
+						<phase>generate-test-resources</phase>
+						<goals>
+							<goal>run</goal>
+						</goals>
+						<configuration>
+							<tasks>
+								<ant inheritRefs="true" antfile="${basedir}/build.xml">
+									<property value="${basedir}/target" name="build.dir"/>
+									<target name="prepareNistTest"/>
+								</ant>
+							</tasks>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
+			<plugin>
+				<artifactId>maven-site-plugin</artifactId>
+				<configuration>
+					<siteDirectory>${basedir}/site</siteDirectory>
+				</configuration>
+			</plugin>
+			<plugin>
+				<artifactId>maven-one-plugin</artifactId>
+				<executions>
+					<execution>
+						<goals>
+							<goal>install-maven-one-repository</goal>
+							<goal>deploy-maven-one-repository</goal>
+						</goals>
+					</execution>
+				</executions>
+				<configuration>
+					<remoteRepositoryId>apache</remoteRepositoryId>
+					<remoteRepositoryUrl>scp://people.apache.org/www/www.apache.org/dist/java-repository</remoteRepositoryUrl>
+				</configuration>
+			</plugin>
+			<plugin>
+				<artifactId>maven-release-plugin</artifactId>
+				<configuration>
+					<tagBase>https://svn.apache.org/repos/asf/webservices/commons/tags</tagBase>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+	<pluginRepositories>
+		<pluginRepository>
+			<id>snapshot</id>
+			<name>Snapshot repository</name>
+			<url>http://snapshots.maven.codehaus.org/maven2/</url>
+		</pluginRepository>
+	</pluginRepositories>
+	<dependencies>
+		<dependency>
+			<groupId>junit</groupId>
+			<artifactId>junit</artifactId>
+			<version>3.8.1</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>xmlunit</groupId>
+			<artifactId>xmlunit</artifactId>
+			<version>1.0</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>stax</groupId>
+			<artifactId>stax-api</artifactId>
+			<version>1.0</version>
+			<scope>compile</scope>
+		</dependency>
+	</dependencies>
+	<reporting>
+		<plugins>
+			<plugin>
+				<artifactId>maven-javadoc-plugin</artifactId>
+			</plugin>
+			<plugin>
+				<artifactId>maven-project-info-reports-plugin</artifactId>
+			</plugin>
+			<plugin>
+				<groupId>org.codehaus.mojo</groupId>
+				<artifactId>jdepend-maven-plugin</artifactId>
+				<version>2.0-beta-1-SNAPSHOT</version>
+			</plugin>
+			<plugin>
+				<groupId>org.codehaus.mojo</groupId>
+				<artifactId>jxr-maven-plugin</artifactId>
+				<version>2.0-beta-2-SNAPSHOT</version>
+			</plugin>
+		</plugins>
+	</reporting>
+	<distributionManagement>
+		<repository>
+			<id>apache-repo</id>
+			<name>Maven Central Repository</name>
+			<url>scpexe://people.apache.org/www/www.apache.org/dist/maven-repository</url>
+		</repository>
+		<snapshotRepository>
+			<id>apache-snapshots</id>
+			<name>Apache Development Repository</name>
+			<url>scpexe://minotaur.apache.org/www/cvs.apache.org/maven-snapshot-repository</url>
+		</snapshotRepository>
+		<site>
+			<id>website</id>
+			<url>scpexe://people.apache.org/www/ws.apache.org/commons/XmlSchema</url>
+		</site>
+	</distributionManagement>
+</project>

Modified: webservices/commons/trunk/modules/XmlSchema/project.properties
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/XmlSchema/project.properties?rev=388899&r1=388898&r2=388899&view=diff
==============================================================================
--- webservices/commons/trunk/modules/XmlSchema/project.properties (original)
+++ webservices/commons/trunk/modules/XmlSchema/project.properties Sun Mar 26 04:16:42 2006
@@ -19,8 +19,7 @@
 # -------------------------------------------------------------------
 #                Project Information
 # -------------------------------------------------------------------
-axiom.version=1.0-SNAPSHOT
-
+schema.version=SNAPSHOT
 # -------------------------------------------------------------------
 #                Dependency Repositories
 # -------------------------------------------------------------------
@@ -49,7 +48,7 @@
 # -------------------------------------------------------------------
 #                Versions of dependencies
 # -------------------------------------------------------------------
-schema.version=SNAPSHOT
+
 commons.logging.version=1.0.4
 geronimo.spec.activation.version=1.0.2-rc4
 geronimo.spec.javamail.version=1.3.1-rc5
@@ -72,7 +71,7 @@
 maven.xdoc.date=left
 maven.xdoc.version=${pom.currentVersion}
 maven.xdoc.includeProjectDocumentation=no
-maven.html2xdoc.enabled=false
+maven.html2xdoc.enabled=true
 maven.html2xdoc.dir=./xdocs
 maven.pdf.navigationFile=navigation-pdf.xml
 maven.allreports.disable=true

Modified: webservices/commons/trunk/modules/XmlSchema/project.xml
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/XmlSchema/project.xml?rev=388899&r1=388898&r2=388899&view=diff
==============================================================================
--- webservices/commons/trunk/modules/XmlSchema/project.xml (original)
+++ webservices/commons/trunk/modules/XmlSchema/project.xml Sun Mar 26 04:16:42 2006
@@ -34,8 +34,12 @@
 	<inceptionYear>2004</inceptionYear>
 	<package>org.apache.commons</package>
 	<logo>http://www.apache.org/images/asf-logo.gif</logo>
-	<description>API to manipulate XmlSchema.</description>
-	<shortDescription>API to manipulate XmlSchema.</shortDescription>
+	<description>Commons XMLSchema is a light weight schema object model that can be used to manipualte or
+          generate a schema. It has a clean, easy to use API and can easily be integrated into an existing project
+          since it has almost no dependancies on third party libraries.</description>
+	<shortDescription>
+          Schema library to manipulate a schema
+	</shortDescription>
 	<!-- the project home page -->
 	<url>http://ws.apache.org/commons/XmlSchema</url>
 	<issueTrackingUrl>http://issues.apache.org/jira/browse/WSCOMMONS</issueTrackingUrl>
@@ -75,7 +79,7 @@
 			<name>Srinath Perera</name>
 			<id>hemapani</id>
 			<email>hemapani AT apache.org</email>
-			<organization>Lanka Software Foundation</organization>
+			<organization>Indiana University</organization>
 			<url>http://www.apache.org/~hemapani</url>
 		</developer>
 		<developer>
@@ -95,14 +99,14 @@
 			<name>Jaliya Ekanayake</name>
 			<id>jaliya</id>
 			<email>jaliya AT opensource.lk</email>
-			<organization>Virtusa / Lanka Software Foundation</organization>
+			<organization>Indiana University</organization>
 			<url>http://www.apache.org/~jaliya</url>
 		</developer>
 		<developer>
 			<name>Chathura Herath</name>
 			<id>chathura</id>
 			<email>chathura AT opensource.lk</email>
-			<organization>LSF/MIT</organization>
+			<organization>Indiana University</organization>
 			<url>www.apache.org/~chathura</url>
 		</developer>
 		<developer>
@@ -161,7 +165,12 @@
 			<email>chamil AT wso2.com</email>
 			<organization>WSO2</organization>
 		</developer>
-
+         <developer>
+			<id>dandiep</id>
+			<name>Dan Diephouse</name>
+			<email>dandiep AT apache.org</email>
+			<organization>Envoi Solutions</organization>
+		</developer>
 	</developers>
 	
     <dependencies>
@@ -184,12 +193,13 @@
     </dependencies>
     
     <build>
-        <nagEmailAddress></nagEmailAddress>
+        <nagEmailAddress>commons-dev@ws.apache.org</nagEmailAddress>
         <sourceDirectory>src</sourceDirectory>
         <unitTestSourceDirectory>test</unitTestSourceDirectory>
 
         <unitTest>
             <excludes>
+                <exclude>**/NISTSchemaTest.java</exclude>
             </excludes>
             <includes>
                 <include>**/*Test*.java</include>

Modified: webservices/commons/trunk/modules/XmlSchema/site/site.xml
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/XmlSchema/site/site.xml?rev=388899&r1=388898&r2=388899&view=diff
==============================================================================
--- webservices/commons/trunk/modules/XmlSchema/site/site.xml (original)
+++ webservices/commons/trunk/modules/XmlSchema/site/site.xml Sun Mar 26 04:16:42 2006
@@ -1,22 +1,23 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <project name="Maven">
-  <bannerLeft>
-    <name>XmlSchema</name>
-    <src>http://www.apache.org/images/asf-logo.gif</src>
-    <href>http://ws.apache.org/commons/XmlSchema</href>
-  </bannerLeft>
-
-  <body>
-    <links>
-      <item name="Apache" href="http://www.apache.org/" />
-      <item name="WS Commons" href="http://ws.apache.org/commons"/>
-    </links>
-
-    <menu name="XmlSchema API">
-      <item name="Home" href="index.html"/>
-    </menu>
-
+	<bannerLeft>
+		<name>XmlSchema</name>
+		<src>http://www.apache.org/images/asf-logo.gif</src>
+		<href>http://ws.apache.org/commons/XmlSchema</href>
+	</bannerLeft>
+	<body>
+		<links>
+			<item name="Apache" href="http://www.apache.org/"/>
+			<item name="WS Commons" href="http://ws.apache.org/commons"/>
+		</links>
+		<menu name="XML Schema">
+			<item name="Home" href="index.html"/>
+			<item name="Download" href="download.html"/>
+			<item name="Release Notes" href="release-notes.html"/>
+			<item name="General Information" href="about.html"/>
+		</menu>
+   
    ${reports}
 
   </body>
-</project>
\ No newline at end of file
+</project>

Modified: webservices/commons/trunk/modules/XmlSchema/test/tests/TestSimpleRestriction.java
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/XmlSchema/test/tests/TestSimpleRestriction.java?rev=388899&r1=388898&r2=388899&view=diff
==============================================================================
--- webservices/commons/trunk/modules/XmlSchema/test/tests/TestSimpleRestriction.java (original)
+++ webservices/commons/trunk/modules/XmlSchema/test/tests/TestSimpleRestriction.java Sun Mar 26 04:16:42 2006
@@ -5,6 +5,7 @@
 import org.apache.ws.commons.schema.XmlSchemaType;
 import org.apache.ws.commons.schema.XmlSchemaComplexType;
 import org.apache.ws.commons.schema.XmlSchemaSequence;
+import org.apache.ws.commons.schema.XmlSchema;
 
 import javax.xml.namespace.QName;
 import javax.xml.transform.stream.StreamSource;
@@ -36,7 +37,7 @@
 
         InputStream is = new FileInputStream("test-resources/SimpleContentRestriction.xsd");
         XmlSchemaCollection schema = new XmlSchemaCollection();
-        schema.read(new StreamSource(is), null);
+        XmlSchema s = schema.read(new StreamSource(is), null);
 
         XmlSchemaType simpleType = schema.getTypeByQName(TYPE_QNAME);
         assertNotNull(simpleType);
@@ -46,6 +47,8 @@
 
         XmlSchemaType type = elem.getSchemaType();
         assertNotNull(type);
+
+     
 
     }
 }

Added: webservices/commons/trunk/modules/XmlSchema/xdocs/navigation.xml
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/XmlSchema/xdocs/navigation.xml?rev=388899&view=auto
==============================================================================
--- webservices/commons/trunk/modules/XmlSchema/xdocs/navigation.xml (added)
+++ webservices/commons/trunk/modules/XmlSchema/xdocs/navigation.xml Sun Mar 26 04:16:42 2006
@@ -0,0 +1,21 @@
+<project name="AXIOM">
+	<title>Web Services Commons : AXIOM Implemenation</title>
+	<body>
+		<menu name="AXIOM">
+			<item name="Home" href="index.html"/>
+			<item nane="Downloads">
+				<item name="Releases" href="download.cgi"/>
+				<item name="Source Code" href="http://svn.apache.org/repos/asf/webservices/commons/modules/axiom"/>
+			</item>
+			<item name="Documentation">
+				<item name="Schema Tutorial" href="schematutorial.html"/>
+				<item name="Javadocs" href="/apidocs/index.html"/>
+			</item>
+			<item name="Project Information">
+				<item name="Mailing Lists" href="/mail-lists.html"/>
+				<item name="Project Team" href="/team-list.html"/>
+			</item>
+		</menu>
+	</body>
+	
+</project>

Added: webservices/commons/trunk/modules/XmlSchema/xdocs/schematutorial.html
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/modules/XmlSchema/xdocs/schematutorial.html?rev=388899&view=auto
==============================================================================
--- webservices/commons/trunk/modules/XmlSchema/xdocs/schematutorial.html (added)
+++ webservices/commons/trunk/modules/XmlSchema/xdocs/schematutorial.html Sun Mar 26 04:16:42 2006
@@ -0,0 +1,92 @@
+<html>
+<head>
+  <meta http-equiv="content-type" content="">
+  <meta content="">
+  <title>Schema Tutorial</title>
+</head>
+
+<body>
+<h1>XML Schema Tutorial</h1>
+
+<h2>Introduction</h2>
+
+<p>Commons XML Schema model is a general purpose schema model that can be
+used when a Java objct tree representation of an Xml scheama is required.
+This short tutorial explains how the commons XML Schema can be utilized.</p>
+
+<h2>Structure and Dependancies</h2>
+
+<p>The core commons XML Schema classes have <strong>no</strong> third party
+dependancies. However it depends on the XMLUnit and JUnit libraries for unit
+testing and the maven build uses the StAX API libraries to access the
+javax.xml.namespace.QName class (which is not part of the JDK). Also the
+serialization mechanism uses the DOM serialization mechanism hence the JDK
+has to be 1.4 and upwards.</p>
+
+<p>The structure of the commons XMLSchema model is quite straightforward. It
+has a strict specification bound hierarchy of classes that represents each
+and every schema component. It is not based on a Interface-implementaion
+model which allows extensions and different implementations. However the
+schema specification is quite stable and complete hence a change is unlikely
+which makes the commons XmlSchema sufficient for almost all needs of schema
+handling.</p>
+
+<h2>Reading a Schema</h2>
+
+<p>The reader for the XML Schema model is called the ScheamCollection
+(org.apache.ws.commons.schema.XmlSchemaCollection). it has a static
+<em>read</em> method that returns a XmlSchema object which represents the
+whole schema. The XmlSchema instance returned can be used to access types and
+elements of the relevant schema by their qualified name.</p>
+
+<p>The read method has a parameter to pass in a validating event handler. The
+validating event handler can be used to pass in the custom validating
+procedures. However this particular handler has no effect on the reading of
+the schema yet and it is not a feature in this release of Commons XML Schema.
+The follwing code fragment shows how a file can be read through the
+SchemaCollection.</p>
+<pre> 
+InputStream is = new FileInputStream(fileName);
+XmlSchemaCollection schemaCol = new XmlSchemaCollection();
+XmlSchema schema = schemaCol.read(new StreamSource(is), null);</pre>
+
+<p>Note that null is passed for the validating handler since it has not
+effect yet.</p>
+
+<h2>Navigating the Schema Model</h2>
+
+<p>Navigation of the model once the XmlSchema model is obtained is also quite
+straight forward. All top level elements and types are available through the
+schema object as either</p>
+<pre>org.apache.ws.commons.schema.XmlSchemaObjectTable</pre>
+instances or can be accessed directly if it can have a QName reference. For
+example if the qualified name of an element is known then getElementByName
+method can be used to extract the XmlSchemaElement object directly from the
+schema object. The follwing code sample shows how such direct methods can be
+used to extract schema objects
+
+<p></p>
+<pre>   XmlSchemaType schemaType = schema.getTypeByQName(TYPE_QNAME);
+   XmlSchemaElement elem = schema.getElementByQName(ELEMENT_QNAME);</pre>
+
+<p>Note that the TYPE_QNAME and ELEMENT_QNAME represents QName objects.</p>
+
+<h2>Printing the Schema Model</h2>
+
+<p>Printing of the model once the XmlSchema model has been modified or
+constructed in-memory, is also quite straightforward. Schema object has a
+write method that can use an output stream</p>
+
+<p>The follwing code fragment shows how to write the schema into the System
+output stream.</p>
+<pre>schema.write(System.out);</pre>
+
+<!--<h2>Advanced Topics</h2>-->
+
+<h2>Conclusion</h2>
+
+<p>Commons XmlScheam is quite a versatile piece of code that can be used to
+manipulate and generate XML Schemas. It has a minimum of dependancies and can
+be used inside another project with ease.</p>
+</body>
+</html>