Done. Thanks for your patch.

Sandy Gao
Software Developer, IBM Canada
(1-416) 448-3255
[EMAIL PROTECTED]



                                                                                       
                            
                    "Mikko                                                             
                            
                    Honkala"             To:     <[EMAIL PROTECTED]>         
                            
                    <[EMAIL PROTECTED]       cc:                                           
                            
                    ut.fi>               Subject:     JDK 1.1 support                  
                            
                                                                                       
                            
                    06/08/2001                                                         
                            
                    10:03 AM                                                           
                            
                    Please respond                                                     
                            
                    to                                                                 
                            
                    xerces-j-dev                                                       
                            
                                                                                       
                            
                                                                                       
                            



Hi,

First of all: Great schema support guys!

But: I was under the expression, that Xerces should run under jdk 1.1.
Therefore I was suprised to find that schema validation of Xerces 1.4.0
does
not seem to work under jdk 1.1.

Looking deeper, I found that a few classes were using jdk 1.2 methods,
here's possible patches. I still could not run Xerces with schema under jdk
1.1...

Can a committer tell whether Xerces should work under 1.1 and if so, try
these patches and validation under 1.1. Thanks!

Diffs:

Index: GeneralAttrCheck.java
===================================================================
RCS file:
/home/cvspublic/xml-xerces/java/src/org/apache/xerces/validators/schema/Gene

ralAttrCheck.java,v
retrieving revision 1.7
diff -r1.7 GeneralAttrCheck.java
1278c1278,1287
<         this.attrArray = attrList.values().toArray();
---
>         //this.attrArray = attrList.values().toArray();
>
>                    int count=attrList.size();
>                    Enumeration enum=attrList.elements();
>
>                    this.attrArray=new Object[count];
>                    for (int i=0;i<count;i++)
>                    {
>                              this.attrArray[i]=enum.nextElement();
>                    }


Index: SchemaGrammar.java
===================================================================
RCS file:
/home/cvspublic/xml-xerces/java/src/org/apache/xerces/validators/schema/Sche

maGrammar.java,v
retrieving revision 1.28
diff -r1.28 SchemaGrammar.java
369c369
<         return super.getElementContentModel(elementDeclIndex,
comparator);;
---
>         return super.getElementContentModel(elementDeclIndex,
comparator);

Index: XPath.java
===================================================================
RCS file:
/home/cvspublic/xml-xerces/java/src/org/apache/xerces/validators/schema/iden

tity/XPath.java,v
retrieving revision 1.9
diff -r1.9 XPath.java
220c220
<
locationPathsVector.add(new LocationPath(steps));
---
>
locationPathsVector.addElement(new LocationPath(steps));
222c222
<                                                   stepsVector.clear();
---
>
stepsVector.removeAllElements();
440c440
<                    locationPathsVector.add(new LocationPath(steps));
---
>                    locationPathsVector.addElement(new
LocationPath(steps));


- Mikko Honkala - http://www.x-smiles.org/



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





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

Reply via email to