Hello,

Here are patches to add support to query the 'form' attribute of element
and attribute declarations.
I'm not sure if these fields should get a getter function, and if yes in
which interface, but if you tell me how you like it I'll do it and
resubmit.
-- 
# Stef Epardaud, # Teachers have potentially more power than military,
# Java Defeater  #   the former can teach us how to not need the latter.
#     Earth      # Lunatech Research,
#  Solar System  #   soon we'll quit researching and start finding...
Index: src/org/apache/xerces/impl/xs/traversers/XSDAttributeTraverser.java
===================================================================
RCS file: 
/home/cvspublic/xml-xerces/java/src/org/apache/xerces/impl/xs/traversers/XSDAttributeTraverser.java,v
retrieving revision 1.21
diff -r1.21 XSDAttributeTraverser.java
261a262,265
>         // get 'form'
>         if(formAtt != null)
>           attribute.fFormQualified = (short)formAtt.intValue();
> 
Index: src/org/apache/xerces/impl/xs/traversers/XSDElementTraverser.java
===================================================================
RCS file: 
/home/cvspublic/xml-xerces/java/src/org/apache/xerces/impl/xs/traversers/XSDElementTraverser.java,v
retrieving revision 1.22
diff -r1.22 XSDElementTraverser.java
288a289,292
>         // get 'form'
>         if(formAtt != null)
>           element.fFormQualified = (short)formAtt.intValue();
> 
Index: src/org/apache/xerces/impl/xs/XSAttributeDecl.java
===================================================================
RCS file: 
/home/cvspublic/xml-xerces/java/src/org/apache/xerces/impl/xs/XSAttributeDecl.java,v
retrieving revision 1.12
diff -r1.12 XSAttributeDecl.java
80a81,83
>   // form qualified: SchemaSymbols.FORM_QUALIFIED, 
>   // SchemaSymbols.FORM_UNQUALIFIED, or -1 if not specified
>   public short fFormQualified = -1;
Index: src/org/apache/xerces/impl/xs/XSElementDecl.java
===================================================================
RCS file: 
/home/cvspublic/xml-xerces/java/src/org/apache/xerces/impl/xs/XSElementDecl.java,v
retrieving revision 1.11
diff -r1.11 XSElementDecl.java
87a88,90
>   // form qualified: SchemaSymbols.FORM_QUALIFIED, 
>   // SchemaSymbols.FORM_UNQUALIFIED, or -1 if not specified
>   public short fFormQualified = -1;

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to