You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by jk...@apache.org on 2007/08/23 13:01:35 UTC

svn commit: r568932 [27/36] - in /incubator/woden/trunk/java/src/org/apache/woden: ./ ant/ internal/ internal/resolver/ internal/schema/ internal/util/ internal/util/dom/ internal/util/om/ internal/wsdl20/ internal/wsdl20/extensions/ internal/wsdl20/ex...

Propchange: incubator/woden/trunk/java/src/org/apache/woden/resolver/XMLSchema.xsd
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/woden/trunk/java/src/org/apache/woden/resolver/datatypes.dtd
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/resolver/datatypes.dtd?rev=568932&r1=568931&r2=568932&view=diff
==============================================================================
--- incubator/woden/trunk/java/src/org/apache/woden/resolver/datatypes.dtd (original)
+++ incubator/woden/trunk/java/src/org/apache/woden/resolver/datatypes.dtd Thu Aug 23 04:01:23 2007
@@ -1,203 +1,203 @@
-<!--
-        DTD for XML Schemas: Part 2: Datatypes
-        $Id: datatypes.dtd,v 1.23 2001/03/16 17:36:30 ht Exp $
-        Note this DTD is NOT normative, or even definitive. - - the
-        prose copy in the datatypes REC is the definitive version
-        (which shouldn't differ from this one except for this comment
-        and entity expansions, but just in case)
-  -->
-
-<!--
-        This DTD cannot be used on its own, it is intended
-        only for incorporation in XMLSchema.dtd, q.v.
-  -->
-
-<!-- Define all the element names, with optional prefix -->
-<!ENTITY % simpleType "%p;simpleType">
-<!ENTITY % restriction "%p;restriction">
-<!ENTITY % list "%p;list">
-<!ENTITY % union "%p;union">
-<!ENTITY % maxExclusive "%p;maxExclusive">
-<!ENTITY % minExclusive "%p;minExclusive">
-<!ENTITY % maxInclusive "%p;maxInclusive">
-<!ENTITY % minInclusive "%p;minInclusive">
-<!ENTITY % totalDigits "%p;totalDigits">
-<!ENTITY % fractionDigits "%p;fractionDigits">
-<!ENTITY % length "%p;length">
-<!ENTITY % minLength "%p;minLength">
-<!ENTITY % maxLength "%p;maxLength">
-<!ENTITY % enumeration "%p;enumeration">
-<!ENTITY % whiteSpace "%p;whiteSpace">
-<!ENTITY % pattern "%p;pattern">
-
-<!--
-        Customisation entities for the ATTLIST of each element
-        type. Define one of these if your schema takes advantage
-        of the anyAttribute='##other' in the schema for schemas
-  -->
-
-<!ENTITY % simpleTypeAttrs "">
-<!ENTITY % restrictionAttrs "">
-<!ENTITY % listAttrs "">
-<!ENTITY % unionAttrs "">
-<!ENTITY % maxExclusiveAttrs "">
-<!ENTITY % minExclusiveAttrs "">
-<!ENTITY % maxInclusiveAttrs "">
-<!ENTITY % minInclusiveAttrs "">
-<!ENTITY % totalDigitsAttrs "">
-<!ENTITY % fractionDigitsAttrs "">
-<!ENTITY % lengthAttrs "">
-<!ENTITY % minLengthAttrs "">
-<!ENTITY % maxLengthAttrs "">
-<!ENTITY % enumerationAttrs "">
-<!ENTITY % whiteSpaceAttrs "">
-<!ENTITY % patternAttrs "">
-
-<!-- Define some entities for informative use as attribute
-        types -->
-<!ENTITY % URIref "CDATA">
-<!ENTITY % XPathExpr "CDATA">
-<!ENTITY % QName "NMTOKEN">
-<!ENTITY % QNames "NMTOKENS">
-<!ENTITY % NCName "NMTOKEN">
-<!ENTITY % nonNegativeInteger "NMTOKEN">
-<!ENTITY % boolean "(true|false)">
-<!ENTITY % simpleDerivationSet "CDATA">
-<!--
-        #all or space-separated list drawn from derivationChoice
-  -->
-
-<!--
-        Note that the use of 'facet' below is less restrictive
-        than is really intended:  There should in fact be no
-        more than one of each of minInclusive, minExclusive,
-        maxInclusive, maxExclusive, totalDigits, fractionDigits,
-        length, maxLength, minLength within datatype,
-        and the min- and max- variants of Inclusive and Exclusive
-        are mutually exclusive. On the other hand,  pattern and
-        enumeration may repeat.
-  -->
-<!ENTITY % minBound "(%minInclusive; | %minExclusive;)">
-<!ENTITY % maxBound "(%maxInclusive; | %maxExclusive;)">
-<!ENTITY % bounds "%minBound; | %maxBound;">
-<!ENTITY % numeric "%totalDigits; | %fractionDigits;">
-<!ENTITY % ordered "%bounds; | %numeric;">
-<!ENTITY % unordered
-   "%pattern; | %enumeration; | %whiteSpace; | %length; |
-   %maxLength; | %minLength;">
-<!ENTITY % facet "%ordered; | %unordered;">
-<!ENTITY % facetAttr 
-        "value CDATA #REQUIRED
-        id ID #IMPLIED">
-<!ENTITY % fixedAttr "fixed %boolean; #IMPLIED">
-<!ENTITY % facetModel "(%annotation;)?">
-<!ELEMENT %simpleType;
-        ((%annotation;)?, (%restriction; | %list; | %union;))>
-<!ATTLIST %simpleType;
-    name      %NCName; #IMPLIED
-    final     %simpleDerivationSet; #IMPLIED
-    id        ID       #IMPLIED
-    %simpleTypeAttrs;>
-<!-- name is required at top level -->
-<!ELEMENT %restriction; ((%annotation;)?,
-                         (%restriction1; |
-                          ((%simpleType;)?,(%facet;)*)),
-                         (%attrDecls;))>
-<!ATTLIST %restriction;
-    base      %QName;                  #IMPLIED
-    id        ID       #IMPLIED
-    %restrictionAttrs;>
-<!--
-        base and simpleType child are mutually exclusive,
-        one is required.
-
-        restriction is shared between simpleType and
-        simpleContent and complexContent (in XMLSchema.xsd).
-        restriction1 is for the latter cases, when this
-        is restricting a complex type, as is attrDecls.
-  -->
-<!ELEMENT %list; ((%annotation;)?,(%simpleType;)?)>
-<!ATTLIST %list;
-    itemType      %QName;             #IMPLIED
-    id        ID       #IMPLIED
-    %listAttrs;>
-<!--
-        itemType and simpleType child are mutually exclusive,
-        one is required
-  -->
-<!ELEMENT %union; ((%annotation;)?,(%simpleType;)*)>
-<!ATTLIST %union;
-    id            ID       #IMPLIED
-    memberTypes   %QNames;            #IMPLIED
-    %unionAttrs;>
-<!--
-        At least one item in memberTypes or one simpleType
-        child is required
-  -->
-
-<!ELEMENT %maxExclusive; %facetModel;>
-<!ATTLIST %maxExclusive;
-        %facetAttr;
-        %fixedAttr;
-        %maxExclusiveAttrs;>
-<!ELEMENT %minExclusive; %facetModel;>
-<!ATTLIST %minExclusive;
-        %facetAttr;
-        %fixedAttr;
-        %minExclusiveAttrs;>
-
-<!ELEMENT %maxInclusive; %facetModel;>
-<!ATTLIST %maxInclusive;
-        %facetAttr;
-        %fixedAttr;
-        %maxInclusiveAttrs;>
-<!ELEMENT %minInclusive; %facetModel;>
-<!ATTLIST %minInclusive;
-        %facetAttr;
-        %fixedAttr;
-        %minInclusiveAttrs;>
-
-<!ELEMENT %totalDigits; %facetModel;>
-<!ATTLIST %totalDigits;
-        %facetAttr;
-        %fixedAttr;
-        %totalDigitsAttrs;>
-<!ELEMENT %fractionDigits; %facetModel;>
-<!ATTLIST %fractionDigits;
-        %facetAttr;
-        %fixedAttr;
-        %fractionDigitsAttrs;>
-
-<!ELEMENT %length; %facetModel;>
-<!ATTLIST %length;
-        %facetAttr;
-        %fixedAttr;
-        %lengthAttrs;>
-<!ELEMENT %minLength; %facetModel;>
-<!ATTLIST %minLength;
-        %facetAttr;
-        %fixedAttr;
-        %minLengthAttrs;>
-<!ELEMENT %maxLength; %facetModel;>
-<!ATTLIST %maxLength;
-        %facetAttr;
-        %fixedAttr;
-        %maxLengthAttrs;>
-
-<!-- This one can be repeated -->
-<!ELEMENT %enumeration; %facetModel;>
-<!ATTLIST %enumeration;
-        %facetAttr;
-        %enumerationAttrs;>
-
-<!ELEMENT %whiteSpace; %facetModel;>
-<!ATTLIST %whiteSpace;
-        %facetAttr;
-        %fixedAttr;
-        %whiteSpaceAttrs;>
-
-<!-- This one can be repeated -->
-<!ELEMENT %pattern; %facetModel;>
-<!ATTLIST %pattern;
-        %facetAttr;
-        %patternAttrs;>
+<!--
+        DTD for XML Schemas: Part 2: Datatypes
+        $Id: datatypes.dtd,v 1.23 2001/03/16 17:36:30 ht Exp $
+        Note this DTD is NOT normative, or even definitive. - - the
+        prose copy in the datatypes REC is the definitive version
+        (which shouldn't differ from this one except for this comment
+        and entity expansions, but just in case)
+  -->
+
+<!--
+        This DTD cannot be used on its own, it is intended
+        only for incorporation in XMLSchema.dtd, q.v.
+  -->
+
+<!-- Define all the element names, with optional prefix -->
+<!ENTITY % simpleType "%p;simpleType">
+<!ENTITY % restriction "%p;restriction">
+<!ENTITY % list "%p;list">
+<!ENTITY % union "%p;union">
+<!ENTITY % maxExclusive "%p;maxExclusive">
+<!ENTITY % minExclusive "%p;minExclusive">
+<!ENTITY % maxInclusive "%p;maxInclusive">
+<!ENTITY % minInclusive "%p;minInclusive">
+<!ENTITY % totalDigits "%p;totalDigits">
+<!ENTITY % fractionDigits "%p;fractionDigits">
+<!ENTITY % length "%p;length">
+<!ENTITY % minLength "%p;minLength">
+<!ENTITY % maxLength "%p;maxLength">
+<!ENTITY % enumeration "%p;enumeration">
+<!ENTITY % whiteSpace "%p;whiteSpace">
+<!ENTITY % pattern "%p;pattern">
+
+<!--
+        Customisation entities for the ATTLIST of each element
+        type. Define one of these if your schema takes advantage
+        of the anyAttribute='##other' in the schema for schemas
+  -->
+
+<!ENTITY % simpleTypeAttrs "">
+<!ENTITY % restrictionAttrs "">
+<!ENTITY % listAttrs "">
+<!ENTITY % unionAttrs "">
+<!ENTITY % maxExclusiveAttrs "">
+<!ENTITY % minExclusiveAttrs "">
+<!ENTITY % maxInclusiveAttrs "">
+<!ENTITY % minInclusiveAttrs "">
+<!ENTITY % totalDigitsAttrs "">
+<!ENTITY % fractionDigitsAttrs "">
+<!ENTITY % lengthAttrs "">
+<!ENTITY % minLengthAttrs "">
+<!ENTITY % maxLengthAttrs "">
+<!ENTITY % enumerationAttrs "">
+<!ENTITY % whiteSpaceAttrs "">
+<!ENTITY % patternAttrs "">
+
+<!-- Define some entities for informative use as attribute
+        types -->
+<!ENTITY % URIref "CDATA">
+<!ENTITY % XPathExpr "CDATA">
+<!ENTITY % QName "NMTOKEN">
+<!ENTITY % QNames "NMTOKENS">
+<!ENTITY % NCName "NMTOKEN">
+<!ENTITY % nonNegativeInteger "NMTOKEN">
+<!ENTITY % boolean "(true|false)">
+<!ENTITY % simpleDerivationSet "CDATA">
+<!--
+        #all or space-separated list drawn from derivationChoice
+  -->
+
+<!--
+        Note that the use of 'facet' below is less restrictive
+        than is really intended:  There should in fact be no
+        more than one of each of minInclusive, minExclusive,
+        maxInclusive, maxExclusive, totalDigits, fractionDigits,
+        length, maxLength, minLength within datatype,
+        and the min- and max- variants of Inclusive and Exclusive
+        are mutually exclusive. On the other hand,  pattern and
+        enumeration may repeat.
+  -->
+<!ENTITY % minBound "(%minInclusive; | %minExclusive;)">
+<!ENTITY % maxBound "(%maxInclusive; | %maxExclusive;)">
+<!ENTITY % bounds "%minBound; | %maxBound;">
+<!ENTITY % numeric "%totalDigits; | %fractionDigits;">
+<!ENTITY % ordered "%bounds; | %numeric;">
+<!ENTITY % unordered
+   "%pattern; | %enumeration; | %whiteSpace; | %length; |
+   %maxLength; | %minLength;">
+<!ENTITY % facet "%ordered; | %unordered;">
+<!ENTITY % facetAttr 
+        "value CDATA #REQUIRED
+        id ID #IMPLIED">
+<!ENTITY % fixedAttr "fixed %boolean; #IMPLIED">
+<!ENTITY % facetModel "(%annotation;)?">
+<!ELEMENT %simpleType;
+        ((%annotation;)?, (%restriction; | %list; | %union;))>
+<!ATTLIST %simpleType;
+    name      %NCName; #IMPLIED
+    final     %simpleDerivationSet; #IMPLIED
+    id        ID       #IMPLIED
+    %simpleTypeAttrs;>
+<!-- name is required at top level -->
+<!ELEMENT %restriction; ((%annotation;)?,
+                         (%restriction1; |
+                          ((%simpleType;)?,(%facet;)*)),
+                         (%attrDecls;))>
+<!ATTLIST %restriction;
+    base      %QName;                  #IMPLIED
+    id        ID       #IMPLIED
+    %restrictionAttrs;>
+<!--
+        base and simpleType child are mutually exclusive,
+        one is required.
+
+        restriction is shared between simpleType and
+        simpleContent and complexContent (in XMLSchema.xsd).
+        restriction1 is for the latter cases, when this
+        is restricting a complex type, as is attrDecls.
+  -->
+<!ELEMENT %list; ((%annotation;)?,(%simpleType;)?)>
+<!ATTLIST %list;
+    itemType      %QName;             #IMPLIED
+    id        ID       #IMPLIED
+    %listAttrs;>
+<!--
+        itemType and simpleType child are mutually exclusive,
+        one is required
+  -->
+<!ELEMENT %union; ((%annotation;)?,(%simpleType;)*)>
+<!ATTLIST %union;
+    id            ID       #IMPLIED
+    memberTypes   %QNames;            #IMPLIED
+    %unionAttrs;>
+<!--
+        At least one item in memberTypes or one simpleType
+        child is required
+  -->
+
+<!ELEMENT %maxExclusive; %facetModel;>
+<!ATTLIST %maxExclusive;
+        %facetAttr;
+        %fixedAttr;
+        %maxExclusiveAttrs;>
+<!ELEMENT %minExclusive; %facetModel;>
+<!ATTLIST %minExclusive;
+        %facetAttr;
+        %fixedAttr;
+        %minExclusiveAttrs;>
+
+<!ELEMENT %maxInclusive; %facetModel;>
+<!ATTLIST %maxInclusive;
+        %facetAttr;
+        %fixedAttr;
+        %maxInclusiveAttrs;>
+<!ELEMENT %minInclusive; %facetModel;>
+<!ATTLIST %minInclusive;
+        %facetAttr;
+        %fixedAttr;
+        %minInclusiveAttrs;>
+
+<!ELEMENT %totalDigits; %facetModel;>
+<!ATTLIST %totalDigits;
+        %facetAttr;
+        %fixedAttr;
+        %totalDigitsAttrs;>
+<!ELEMENT %fractionDigits; %facetModel;>
+<!ATTLIST %fractionDigits;
+        %facetAttr;
+        %fixedAttr;
+        %fractionDigitsAttrs;>
+
+<!ELEMENT %length; %facetModel;>
+<!ATTLIST %length;
+        %facetAttr;
+        %fixedAttr;
+        %lengthAttrs;>
+<!ELEMENT %minLength; %facetModel;>
+<!ATTLIST %minLength;
+        %facetAttr;
+        %fixedAttr;
+        %minLengthAttrs;>
+<!ELEMENT %maxLength; %facetModel;>
+<!ATTLIST %maxLength;
+        %facetAttr;
+        %fixedAttr;
+        %maxLengthAttrs;>
+
+<!-- This one can be repeated -->
+<!ELEMENT %enumeration; %facetModel;>
+<!ATTLIST %enumeration;
+        %facetAttr;
+        %enumerationAttrs;>
+
+<!ELEMENT %whiteSpace; %facetModel;>
+<!ATTLIST %whiteSpace;
+        %facetAttr;
+        %fixedAttr;
+        %whiteSpaceAttrs;>
+
+<!-- This one can be repeated -->
+<!ELEMENT %pattern; %facetModel;>
+<!ATTLIST %pattern;
+        %facetAttr;
+        %patternAttrs;>

Propchange: incubator/woden/trunk/java/src/org/apache/woden/resolver/datatypes.dtd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/woden/trunk/java/src/org/apache/woden/resolver/wsdl20-extensions.xsd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/woden/trunk/java/src/org/apache/woden/resolver/wsdl20-http.xsd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/woden/trunk/java/src/org/apache/woden/resolver/wsdl20-instance.xsd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/woden/trunk/java/src/org/apache/woden/resolver/wsdl20-rpc.xsd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/woden/trunk/java/src/org/apache/woden/resolver/wsdl20-soap.xsd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/woden/trunk/java/src/org/apache/woden/resolver/wsdl20.xsd
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/woden/trunk/java/src/org/apache/woden/resolver/xml.xsd
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/resolver/xml.xsd?rev=568932&r1=568931&r2=568932&view=diff
==============================================================================
--- incubator/woden/trunk/java/src/org/apache/woden/resolver/xml.xsd (original)
+++ incubator/woden/trunk/java/src/org/apache/woden/resolver/xml.xsd Thu Aug 23 04:01:23 2007
@@ -1,146 +1,146 @@
-<?xml version='1.0'?>
-<xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en">
-
- <xs:annotation>
-  <xs:documentation>
-   See http://www.w3.org/XML/1998/namespace.html and
-   http://www.w3.org/TR/REC-xml for information about this namespace.
-
-    This schema document describes the XML namespace, in a form
-    suitable for import by other schema documents.  
-
-    Note that local names in this namespace are intended to be defined
-    only by the World Wide Web Consortium or its subgroups.  The
-    following names are currently defined in this namespace and should
-    not be used with conflicting semantics by any Working Group,
-    specification, or document instance:
-
-    base (as an attribute name): denotes an attribute whose value
-         provides a URI to be used as the base for interpreting any
-         relative URIs in the scope of the element on which it
-         appears; its value is inherited.  This name is reserved
-         by virtue of its definition in the XML Base specification.
-
-    id   (as an attribute name): denotes an attribute whose value
-         should be interpreted as if declared to be of type ID.
-         The xml:id specification is not yet a W3C Recommendation,
-         but this attribute is included here to facilitate experimentation
-         with the mechanisms it proposes.  Note that it is _not_ included
-         in the specialAttrs attribute group.
-
-    lang (as an attribute name): denotes an attribute whose value
-         is a language code for the natural language of the content of
-         any element; its value is inherited.  This name is reserved
-         by virtue of its definition in the XML specification.
-  
-    space (as an attribute name): denotes an attribute whose
-         value is a keyword indicating what whitespace processing
-         discipline is intended for the content of the element; its
-         value is inherited.  This name is reserved by virtue of its
-         definition in the XML specification.
-
-    Father (in any context at all): denotes Jon Bosak, the chair of 
-         the original XML Working Group.  This name is reserved by 
-         the following decision of the W3C XML Plenary and 
-         XML Coordination groups:
-
-             In appreciation for his vision, leadership and dedication
-             the W3C XML Plenary on this 10th day of February, 2000
-             reserves for Jon Bosak in perpetuity the XML name
-             xml:Father
-  </xs:documentation>
- </xs:annotation>
-
- <xs:annotation>
-  <xs:documentation>This schema defines attributes and an attribute group
-        suitable for use by
-        schemas wishing to allow xml:base, xml:lang, xml:space or xml:id
-        attributes on elements they define.
-
-        To enable this, such a schema must import this schema
-        for the XML namespace, e.g. as follows:
-        &lt;schema . . .>
-         . . .
-         &lt;import namespace="http://www.w3.org/XML/1998/namespace"
-                    schemaLocation="http://www.w3.org/2001/xml.xsd"/>
-
-        Subsequently, qualified reference to any of the attributes
-        or the group defined below will have the desired effect, e.g.
-
-        &lt;type . . .>
-         . . .
-         &lt;attributeGroup ref="xml:specialAttrs"/>
- 
-         will define a type which will schema-validate an instance
-         element with any of those attributes</xs:documentation>
- </xs:annotation>
-
- <xs:annotation>
-  <xs:documentation>In keeping with the XML Schema WG's standard versioning
-   policy, this schema document will persist at
-   http://www.w3.org/2005/08/xml.xsd.
-   At the date of issue it can also be found at
-   http://www.w3.org/2001/xml.xsd.
-   The schema document at that URI may however change in the future,
-   in order to remain compatible with the latest version of XML Schema
-   itself, or with the XML namespace itself.  In other words, if the XML
-   Schema or XML namespaces change, the version of this document at
-   http://www.w3.org/2001/xml.xsd will change
-   accordingly; the version at
-   http://www.w3.org/2005/08/xml.xsd will not change.
-  </xs:documentation>
- </xs:annotation>
-
- <xs:attribute name="lang">
-  <xs:annotation>
-   <xs:documentation>Attempting to install the relevant ISO 2- and 3-letter
-         codes as the enumerated possible values is probably never
-         going to be a realistic possibility.  See
-         RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry
-         at http://www.iana.org/assignments/lang-tag-apps.htm for
-         further information.
-
-         The union allows for the 'un-declaration' of xml:lang with
-         the empty string.</xs:documentation>
-  </xs:annotation>
-  <xs:simpleType>
-   <xs:union memberTypes="xs:language">
-    <xs:simpleType>    
-     <xs:restriction base="xs:string">
-      <xs:enumeration value=""/>
-     </xs:restriction>
-    </xs:simpleType>
-   </xs:union>
-  </xs:simpleType>
- </xs:attribute>
-
- <xs:attribute name="space">
-  <xs:simpleType>
-   <xs:restriction base="xs:NCName">
-    <xs:enumeration value="default"/>
-    <xs:enumeration value="preserve"/>
-   </xs:restriction>
-  </xs:simpleType>
- </xs:attribute>
-
- <xs:attribute name="base" type="xs:anyURI">
-  <xs:annotation>
-   <xs:documentation>See http://www.w3.org/TR/xmlbase/ for
-                     information about this attribute.</xs:documentation>
-  </xs:annotation>
- </xs:attribute>
- 
- <xs:attribute name="id" type="xs:ID">
-  <xs:annotation>
-   <xs:documentation>See http://www.w3.org/TR/xml-id/ for
-                     information about this attribute.</xs:documentation>
-  </xs:annotation>
- </xs:attribute>
-
- <xs:attributeGroup name="specialAttrs">
-  <xs:attribute ref="xml:base"/>
-  <xs:attribute ref="xml:lang"/>
-  <xs:attribute ref="xml:space"/>
- </xs:attributeGroup>
-
-</xs:schema>
+<?xml version='1.0'?>
+<xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en">
+
+ <xs:annotation>
+  <xs:documentation>
+   See http://www.w3.org/XML/1998/namespace.html and
+   http://www.w3.org/TR/REC-xml for information about this namespace.
+
+    This schema document describes the XML namespace, in a form
+    suitable for import by other schema documents.  
+
+    Note that local names in this namespace are intended to be defined
+    only by the World Wide Web Consortium or its subgroups.  The
+    following names are currently defined in this namespace and should
+    not be used with conflicting semantics by any Working Group,
+    specification, or document instance:
+
+    base (as an attribute name): denotes an attribute whose value
+         provides a URI to be used as the base for interpreting any
+         relative URIs in the scope of the element on which it
+         appears; its value is inherited.  This name is reserved
+         by virtue of its definition in the XML Base specification.
+
+    id   (as an attribute name): denotes an attribute whose value
+         should be interpreted as if declared to be of type ID.
+         The xml:id specification is not yet a W3C Recommendation,
+         but this attribute is included here to facilitate experimentation
+         with the mechanisms it proposes.  Note that it is _not_ included
+         in the specialAttrs attribute group.
+
+    lang (as an attribute name): denotes an attribute whose value
+         is a language code for the natural language of the content of
+         any element; its value is inherited.  This name is reserved
+         by virtue of its definition in the XML specification.
+  
+    space (as an attribute name): denotes an attribute whose
+         value is a keyword indicating what whitespace processing
+         discipline is intended for the content of the element; its
+         value is inherited.  This name is reserved by virtue of its
+         definition in the XML specification.
+
+    Father (in any context at all): denotes Jon Bosak, the chair of 
+         the original XML Working Group.  This name is reserved by 
+         the following decision of the W3C XML Plenary and 
+         XML Coordination groups:
+
+             In appreciation for his vision, leadership and dedication
+             the W3C XML Plenary on this 10th day of February, 2000
+             reserves for Jon Bosak in perpetuity the XML name
+             xml:Father
+  </xs:documentation>
+ </xs:annotation>
+
+ <xs:annotation>
+  <xs:documentation>This schema defines attributes and an attribute group
+        suitable for use by
+        schemas wishing to allow xml:base, xml:lang, xml:space or xml:id
+        attributes on elements they define.
+
+        To enable this, such a schema must import this schema
+        for the XML namespace, e.g. as follows:
+        &lt;schema . . .>
+         . . .
+         &lt;import namespace="http://www.w3.org/XML/1998/namespace"
+                    schemaLocation="http://www.w3.org/2001/xml.xsd"/>
+
+        Subsequently, qualified reference to any of the attributes
+        or the group defined below will have the desired effect, e.g.
+
+        &lt;type . . .>
+         . . .
+         &lt;attributeGroup ref="xml:specialAttrs"/>
+ 
+         will define a type which will schema-validate an instance
+         element with any of those attributes</xs:documentation>
+ </xs:annotation>
+
+ <xs:annotation>
+  <xs:documentation>In keeping with the XML Schema WG's standard versioning
+   policy, this schema document will persist at
+   http://www.w3.org/2005/08/xml.xsd.
+   At the date of issue it can also be found at
+   http://www.w3.org/2001/xml.xsd.
+   The schema document at that URI may however change in the future,
+   in order to remain compatible with the latest version of XML Schema
+   itself, or with the XML namespace itself.  In other words, if the XML
+   Schema or XML namespaces change, the version of this document at
+   http://www.w3.org/2001/xml.xsd will change
+   accordingly; the version at
+   http://www.w3.org/2005/08/xml.xsd will not change.
+  </xs:documentation>
+ </xs:annotation>
+
+ <xs:attribute name="lang">
+  <xs:annotation>
+   <xs:documentation>Attempting to install the relevant ISO 2- and 3-letter
+         codes as the enumerated possible values is probably never
+         going to be a realistic possibility.  See
+         RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry
+         at http://www.iana.org/assignments/lang-tag-apps.htm for
+         further information.
+
+         The union allows for the 'un-declaration' of xml:lang with
+         the empty string.</xs:documentation>
+  </xs:annotation>
+  <xs:simpleType>
+   <xs:union memberTypes="xs:language">
+    <xs:simpleType>    
+     <xs:restriction base="xs:string">
+      <xs:enumeration value=""/>
+     </xs:restriction>
+    </xs:simpleType>
+   </xs:union>
+  </xs:simpleType>
+ </xs:attribute>
+
+ <xs:attribute name="space">
+  <xs:simpleType>
+   <xs:restriction base="xs:NCName">
+    <xs:enumeration value="default"/>
+    <xs:enumeration value="preserve"/>
+   </xs:restriction>
+  </xs:simpleType>
+ </xs:attribute>
+
+ <xs:attribute name="base" type="xs:anyURI">
+  <xs:annotation>
+   <xs:documentation>See http://www.w3.org/TR/xmlbase/ for
+                     information about this attribute.</xs:documentation>
+  </xs:annotation>
+ </xs:attribute>
+ 
+ <xs:attribute name="id" type="xs:ID">
+  <xs:annotation>
+   <xs:documentation>See http://www.w3.org/TR/xml-id/ for
+                     information about this attribute.</xs:documentation>
+  </xs:annotation>
+ </xs:attribute>
+
+ <xs:attributeGroup name="specialAttrs">
+  <xs:attribute ref="xml:base"/>
+  <xs:attribute ref="xml:lang"/>
+  <xs:attribute ref="xml:space"/>
+ </xs:attributeGroup>
+
+</xs:schema>

Propchange: incubator/woden/trunk/java/src/org/apache/woden/resolver/xml.xsd
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/woden/trunk/java/src/org/apache/woden/schema/ImportedSchema.java
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/schema/ImportedSchema.java?rev=568932&r1=568931&r2=568932&view=diff
==============================================================================
--- incubator/woden/trunk/java/src/org/apache/woden/schema/ImportedSchema.java (original)
+++ incubator/woden/trunk/java/src/org/apache/woden/schema/ImportedSchema.java Thu Aug 23 04:01:23 2007
@@ -1,39 +1,39 @@
-/**
+/**
  * 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.
- */
-package org.apache.woden.schema;
-
-import java.net.URI;
-
-/**
- * This interface represents a schema import element, &lt;xs:import&gt;. It extends the Schema
- * interface, adding support for the <code>schemaLocation</code> attribute.
- * 
- * @author John Kaputin (jkaputin@apache.org)
- */
-public interface ImportedSchema extends Schema {
-    
-    /**
-     * Set the URI representing the <code>schemaLocation</code> attribute of &lt;xs:import&gt;.
-     */
-    public void setSchemaLocation(URI location);
-    
-    /**
-     * @return the URI representing the <code>schemaLocation</code> attribute of &lt;xs:import&gt;.
-     */
-    public URI getSchemaLocation();
-    
-}
+ * 
+ *     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.
+ */
+package org.apache.woden.schema;
+
+import java.net.URI;
+
+/**
+ * This interface represents a schema import element, &lt;xs:import&gt;. It extends the Schema
+ * interface, adding support for the <code>schemaLocation</code> attribute.
+ * 
+ * @author John Kaputin (jkaputin@apache.org)
+ */
+public interface ImportedSchema extends Schema {
+    
+    /**
+     * Set the URI representing the <code>schemaLocation</code> attribute of &lt;xs:import&gt;.
+     */
+    public void setSchemaLocation(URI location);
+    
+    /**
+     * @return the URI representing the <code>schemaLocation</code> attribute of &lt;xs:import&gt;.
+     */
+    public URI getSchemaLocation();
+    
+}

Propchange: incubator/woden/trunk/java/src/org/apache/woden/schema/ImportedSchema.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/woden/trunk/java/src/org/apache/woden/schema/InlinedSchema.java
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/schema/InlinedSchema.java?rev=568932&r1=568931&r2=568932&view=diff
==============================================================================
--- incubator/woden/trunk/java/src/org/apache/woden/schema/InlinedSchema.java (original)
+++ incubator/woden/trunk/java/src/org/apache/woden/schema/InlinedSchema.java Thu Aug 23 04:01:23 2007
@@ -1,37 +1,37 @@
-/**
+/**
  * 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.
- */
-package org.apache.woden.schema;
-
-
-/**
- * This interface represents an inlined schema element, &lt;xs:schema&gt;. It extends the Schema
- * interface, adding support for the <code>id</code> attribute.
- * 
- * @author John Kaputin (jkaputin@apache.org)
- */
-public interface InlinedSchema extends Schema {
-    
-    /**
-     * Set the String representing the <code>id</code> attribute of &lt;xs:schema&gt;.
-     */
-    public void setId(String id);
-    
-    /**
-     * @return a String representing the <code>id</code> attribute of &lt;xs:schema&gt;.
-     */
-    public String getId();
-}
+ * 
+ *     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.
+ */
+package org.apache.woden.schema;
+
+
+/**
+ * This interface represents an inlined schema element, &lt;xs:schema&gt;. It extends the Schema
+ * interface, adding support for the <code>id</code> attribute.
+ * 
+ * @author John Kaputin (jkaputin@apache.org)
+ */
+public interface InlinedSchema extends Schema {
+    
+    /**
+     * Set the String representing the <code>id</code> attribute of &lt;xs:schema&gt;.
+     */
+    public void setId(String id);
+    
+    /**
+     * @return a String representing the <code>id</code> attribute of &lt;xs:schema&gt;.
+     */
+    public String getId();
+}

Propchange: incubator/woden/trunk/java/src/org/apache/woden/schema/InlinedSchema.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/woden/trunk/java/src/org/apache/woden/schema/Schema.java
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/schema/Schema.java?rev=568932&r1=568931&r2=568932&view=diff
==============================================================================
--- incubator/woden/trunk/java/src/org/apache/woden/schema/Schema.java (original)
+++ incubator/woden/trunk/java/src/org/apache/woden/schema/Schema.java Thu Aug 23 04:01:23 2007
@@ -1,101 +1,101 @@
-/**
+/**
  * 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.
- */
-package org.apache.woden.schema;
-
-
-import java.net.URI;
-
-import org.apache.woden.XMLElement;
-import org.apache.ws.commons.schema.XmlSchema;
-
-/**
- * This interface provides an abstract representation of an XML Schema referenced 
- * within the &lt;wsdl:types&gt; element. For example, via &lt;xs:schema&gt; or 
- * &lt;xs:import&gt;.
- * It provides the namespace used as the target namespace of an inlined schema
- * or as the imported namespace of a schema import. 
- * It provides a reference to the actual schema definition, represented by
- * <code>org.apache.ws.commons.schema.XmlSchema</code>.
- * For applications that use other representations for XML Schema content,
- * it also provides a reference to the <code>org.apache.woden.XMLElement</code>
- * object that wraps the underlying &lt;xs:schema&gt; or &lt;xs:import&gt; 
- * element.
- * It also indicates whether the schema is 'referenceable' by the surrounding
- * WSDL document, as defined by the schema referenceability rules in the 
- * WSDL 2.0 spec.
- * <p>
- * 
- * NOTE: non-XML type systems like DTD are not handled by this interface. They must be
- * handled by WSDL 2.0 extension mechanisms.
- * <br />
- * TODO Need to determine if this interface is suitable for use with other xml-based 
- * schema types like Relax NG or if some type of schema extension mechanism is required. 
- * 
- * @author John Kaputin (jkaputin@apache.org)
- */
-public interface Schema {
-    
-    /**
-     * Returns a URI representing the <code>targetNamespace</code> attribute of a 
-     * &lt;xs:schema&gt; element or the <code>namespace</code> attribute of a 
-     * &lt;xs:import&gt; element.
-     * 
-     * @return a URI representing the schema's namespace
-     */
-    public URI getNamespace();
-    
-    /**
-     * Set the <code>targetNamespace</code> attribute of a &lt;xs:schema&gt; element
-     * or the <code>namespace</code> attribute of a &lt;xs:import&gt; element.
-     * @param namespace
-     */
-    public void setNamespace(URI namespace);
-    
-    /**
-     * Returns an <code>XmlSchema</code> representing the schema definition inlined by
-     * a &lt;xs:schema&gt; element or imported by a &lt;xs:import&gt; element.
-     * 
-     * @return the <code>XmlSchema</code> representing schema definition.
-     */
-    public XmlSchema getSchemaDefinition();
-    
-    /**
-     * Sets the schema definition for an inlined schema or schema import to the specified
-     * <code>XmlSchema</code>.
-     *  
-     * @param schemaDef the <code>XmlSchema</code> representing this schema
-     */
-    public void setSchemaDefinition(XmlSchema schemaDef);
-    
-    /**
-     * Returns the XMLElement representing the <code>xs:schema</code> or <code>xs:import</code>
-     * element within the <code>wsdl:types</code> element. This provides an 'wrapper' to the 
-     * underlying XML Schema infoset for applications that need schema processing alternatives to
-     * Apache WS Commons XmlSchema.
-     * 
-     * @return the XMLElement that wraps the underlying schema or schema import element
-     */
-    public XMLElement getXMLElement();
-    
-    /**
-     * Sets the XMLElement representing the underlying <code>xs:schema</code> or <code>xs:import</code>
-     * element.
-     * 
-     * @param xsdElement the XMLElement
-     */
-    public void setXMLElement(XMLElement xsdElement);
-}
+ * 
+ *     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.
+ */
+package org.apache.woden.schema;
+
+
+import java.net.URI;
+
+import org.apache.woden.XMLElement;
+import org.apache.ws.commons.schema.XmlSchema;
+
+/**
+ * This interface provides an abstract representation of an XML Schema referenced 
+ * within the &lt;wsdl:types&gt; element. For example, via &lt;xs:schema&gt; or 
+ * &lt;xs:import&gt;.
+ * It provides the namespace used as the target namespace of an inlined schema
+ * or as the imported namespace of a schema import. 
+ * It provides a reference to the actual schema definition, represented by
+ * <code>org.apache.ws.commons.schema.XmlSchema</code>.
+ * For applications that use other representations for XML Schema content,
+ * it also provides a reference to the <code>org.apache.woden.XMLElement</code>
+ * object that wraps the underlying &lt;xs:schema&gt; or &lt;xs:import&gt; 
+ * element.
+ * It also indicates whether the schema is 'referenceable' by the surrounding
+ * WSDL document, as defined by the schema referenceability rules in the 
+ * WSDL 2.0 spec.
+ * <p>
+ * 
+ * NOTE: non-XML type systems like DTD are not handled by this interface. They must be
+ * handled by WSDL 2.0 extension mechanisms.
+ * <br />
+ * TODO Need to determine if this interface is suitable for use with other xml-based 
+ * schema types like Relax NG or if some type of schema extension mechanism is required. 
+ * 
+ * @author John Kaputin (jkaputin@apache.org)
+ */
+public interface Schema {
+    
+    /**
+     * Returns a URI representing the <code>targetNamespace</code> attribute of a 
+     * &lt;xs:schema&gt; element or the <code>namespace</code> attribute of a 
+     * &lt;xs:import&gt; element.
+     * 
+     * @return a URI representing the schema's namespace
+     */
+    public URI getNamespace();
+    
+    /**
+     * Set the <code>targetNamespace</code> attribute of a &lt;xs:schema&gt; element
+     * or the <code>namespace</code> attribute of a &lt;xs:import&gt; element.
+     * @param namespace
+     */
+    public void setNamespace(URI namespace);
+    
+    /**
+     * Returns an <code>XmlSchema</code> representing the schema definition inlined by
+     * a &lt;xs:schema&gt; element or imported by a &lt;xs:import&gt; element.
+     * 
+     * @return the <code>XmlSchema</code> representing schema definition.
+     */
+    public XmlSchema getSchemaDefinition();
+    
+    /**
+     * Sets the schema definition for an inlined schema or schema import to the specified
+     * <code>XmlSchema</code>.
+     *  
+     * @param schemaDef the <code>XmlSchema</code> representing this schema
+     */
+    public void setSchemaDefinition(XmlSchema schemaDef);
+    
+    /**
+     * Returns the XMLElement representing the <code>xs:schema</code> or <code>xs:import</code>
+     * element within the <code>wsdl:types</code> element. This provides an 'wrapper' to the 
+     * underlying XML Schema infoset for applications that need schema processing alternatives to
+     * Apache WS Commons XmlSchema.
+     * 
+     * @return the XMLElement that wraps the underlying schema or schema import element
+     */
+    public XMLElement getXMLElement();
+    
+    /**
+     * Sets the XMLElement representing the underlying <code>xs:schema</code> or <code>xs:import</code>
+     * element.
+     * 
+     * @param xsdElement the XMLElement
+     */
+    public void setXMLElement(XMLElement xsdElement);
+}

Propchange: incubator/woden/trunk/java/src/org/apache/woden/schema/Schema.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/woden/trunk/java/src/org/apache/woden/types/NCName.java
URL: http://svn.apache.org/viewvc/incubator/woden/trunk/java/src/org/apache/woden/types/NCName.java?rev=568932&r1=568931&r2=568932&view=diff
==============================================================================
--- incubator/woden/trunk/java/src/org/apache/woden/types/NCName.java (original)
+++ incubator/woden/trunk/java/src/org/apache/woden/types/NCName.java Thu Aug 23 04:01:23 2007
@@ -1,107 +1,107 @@
-/**
+/**
  * 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.
- */
-package org.apache.woden.types;
-
-/**
- * This class represents the data type NCName use for XML non-colonized names.
- * It is based on the class of the same name in Apache Axis.
- * 
- * @author jkaputin@apache.org
- */
-public class NCName 
-{
-    
-    static public boolean isValid(String stValue)
-    {
-        int scan;
-        boolean bValid = true;
-
-        for (scan=0; scan < stValue.length(); scan++) {
-            if (scan == 0)
-              bValid = XMLChar.isNCNameStart(stValue.charAt(scan));
-            else
-              bValid = XMLChar.isNCName(stValue.charAt(scan));
-            if (bValid == false)
-              break;
-        }
-        return bValid;
-    }
-    
-    private String fValue = null;
-    
-    public NCName() 
-    {
-        super();
-    }
-    
-    /**
-     * 
-     * @param value String representing an NCName
-     * @throws IllegalArgumentException if value is not a valid NCName
-     */
-    public NCName(String value)
-    {
-        setValue(value);
-    }
-    
-    /**
-     * 
-     * @param value String representing an NCName
-     * @throws IllegalArgumentException if value is not a valid NCName
-     */
-    public void setValue(String value)
-    {
-        if(!NCName.isValid(value))
-        {
-            //TODO use ErrorReporter.getFormattedMessage() here instead of hardcoded message.
-            //Need to implement a suitable accessor for ErrorReporter first (e.g. factory or singleton).
-            throw new IllegalArgumentException("The string \"" +
-                                               value +
-                                               "\" does not represent a valid NCName.");
-        }
-        fValue = value;
-    }
-    
-    public String toString()
-    {
-        return fValue;
-    }
-    
-    public boolean equals(Object that) {
-        // If the two object ids are the same then comparing with itself
-        if (this==that) return true;
-        
-        // if 'that' isn't an instance of NCName then not equal.
-        // implicitly tests for 'that' being null
-        if (!(that instanceof NCName)) return false;
-        
-        NCName thatN = (NCName)that;
-        
-        // NCName's value can be null so if both fValues are null they are equal
-        if (this.fValue == null && thatN.fValue == null) return true;
-        
-        // if either the fValues are null then the other one isn't so return false
-        if (this.fValue == null || thatN.fValue == null) return false;
-
-        // Now that neither fValues are null, compare them
-        if (this.fValue.equals(thatN.fValue)) return true;
-        
-        return false;
-        
-    }
-
-}
+ * 
+ *     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.
+ */
+package org.apache.woden.types;
+
+/**
+ * This class represents the data type NCName use for XML non-colonized names.
+ * It is based on the class of the same name in Apache Axis.
+ * 
+ * @author jkaputin@apache.org
+ */
+public class NCName 
+{
+    
+    static public boolean isValid(String stValue)
+    {
+        int scan;
+        boolean bValid = true;
+
+        for (scan=0; scan < stValue.length(); scan++) {
+            if (scan == 0)
+              bValid = XMLChar.isNCNameStart(stValue.charAt(scan));
+            else
+              bValid = XMLChar.isNCName(stValue.charAt(scan));
+            if (bValid == false)
+              break;
+        }
+        return bValid;
+    }
+    
+    private String fValue = null;
+    
+    public NCName() 
+    {
+        super();
+    }
+    
+    /**
+     * 
+     * @param value String representing an NCName
+     * @throws IllegalArgumentException if value is not a valid NCName
+     */
+    public NCName(String value)
+    {
+        setValue(value);
+    }
+    
+    /**
+     * 
+     * @param value String representing an NCName
+     * @throws IllegalArgumentException if value is not a valid NCName
+     */
+    public void setValue(String value)
+    {
+        if(!NCName.isValid(value))
+        {
+            //TODO use ErrorReporter.getFormattedMessage() here instead of hardcoded message.
+            //Need to implement a suitable accessor for ErrorReporter first (e.g. factory or singleton).
+            throw new IllegalArgumentException("The string \"" +
+                                               value +
+                                               "\" does not represent a valid NCName.");
+        }
+        fValue = value;
+    }
+    
+    public String toString()
+    {
+        return fValue;
+    }
+    
+    public boolean equals(Object that) {
+        // If the two object ids are the same then comparing with itself
+        if (this==that) return true;
+        
+        // if 'that' isn't an instance of NCName then not equal.
+        // implicitly tests for 'that' being null
+        if (!(that instanceof NCName)) return false;
+        
+        NCName thatN = (NCName)that;
+        
+        // NCName's value can be null so if both fValues are null they are equal
+        if (this.fValue == null && thatN.fValue == null) return true;
+        
+        // if either the fValues are null then the other one isn't so return false
+        if (this.fValue == null || thatN.fValue == null) return false;
+
+        // Now that neither fValues are null, compare them
+        if (this.fValue.equals(thatN.fValue)) return true;
+        
+        return false;
+        
+    }
+
+}

Propchange: incubator/woden/trunk/java/src/org/apache/woden/types/NCName.java
------------------------------------------------------------------------------
    svn:eol-style = native



---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org