Author: mrglavas
Date: Sat Nov 22 09:35:03 2008
New Revision: 719879

URL: http://svn.apache.org/viewvc?rev=719879&view=rev
Log:
Fixing a bug. The Location must be set on the StAXLocationWrapper
before calling startDocument() otherwise the document URI on the
Schema DOM will not be set.

Modified:
    
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/StAXSchemaParser.java

Modified: 
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/StAXSchemaParser.java
URL: 
http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/StAXSchemaParser.java?rev=719879&r1=719878&r2=719879&view=diff
==============================================================================
--- 
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/StAXSchemaParser.java
 (original)
+++ 
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/StAXSchemaParser.java
 Sat Nov 22 09:35:03 2008
@@ -107,6 +107,7 @@
                 eventType != XMLStreamConstants.START_ELEMENT) {
                 throw new XMLStreamException();
             }
+            fLocationWrapper.setLocation(currentEvent.getLocation());
             fSchemaDOMParser.startDocument(fLocationWrapper, null, 
fNamespaceContext, null);
             loop: while (input.hasNext()) {
                 currentEvent = input.nextEvent();
@@ -183,6 +184,7 @@
                 eventType != XMLStreamConstants.START_ELEMENT) {
                 throw new XMLStreamException();
             }
+            fLocationWrapper.setLocation(input.getLocation());
             fSchemaDOMParser.startDocument(fLocationWrapper, null, 
fNamespaceContext, null);
             boolean first = true;
             loop: while (input.hasNext()) {



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

Reply via email to