[Xerces Wiki] Update of "xmlschema11SaxonicaTests" by Mukul Gandhi

2011-07-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Xerces Wiki" for change 
notification.

The "xmlschema11SaxonicaTests" page has been changed by Mukul Gandhi:
http://wiki.apache.org/xerces/xmlschema11SaxonicaTests?action=diff&rev1=9&rev2=10

Comment:
updating test suite results

  ||<:>84.|| || || ||<:>cta0025.v01||<: #CCFF99>valid||<: #CCFF99>valid||
  || || ||<:>cta0026|| || || || ||
  ||<:>85.|| || ||<:>cta0026|| ||<: #CCFF99>valid||<: #CCFF99>valid||
- ||<:>86.|| || || ||<:>cta0026.v01||<: #FFCC99>valid||<: #FFCC99>invalid||
+ ||<:>86.|| || || ||<:>cta0026.v01||<: #CCFF99>valid||<: #CCFF99>valid||
  || || ||<:>cta0027|| || || || ||
  ||<:>87.|| || ||<:>cta0027|| ||<: #CCFF99>valid||<: #CCFF99>valid||
  ||<:>88.|| || || ||<:>cta0027.v01||<: #FFCC99>valid||<: #FFCC99>invalid||

-
To unsubscribe, e-mail: commits-unsubscr...@xerces.apache.org
For additional commands, e-mail: commits-h...@xerces.apache.org



[Xerces Wiki] Update of "xmlschema11TestSuiteReports" by Mukul Gandhi

2011-07-04 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Xerces Wiki" for change 
notification.

The "xmlschema11TestSuiteReports" page has been changed by Mukul Gandhi:
http://wiki.apache.org/xerces/xmlschema11TestSuiteReports?action=diff&rev1=9&rev2=10

Comment:
updating test suite results

  '''__XERCES XML Schema 1.1 test-suite results__'''
  
- Xerces SVN Revision: 1136825
+ Xerces SVN Revision: 1142631
  
  (1) __Xerces running IBM XML Schema 1.1 Tests__
  
@@ -19, +19 @@

  
  ''Summary'':
  ||Total Tests ||Tests passed ||Success % ||
- ||1329 ||1247 
||93.83 ||
+ ||1329 ||1248 
||93.91 ||
  
  
  
@@ -28, +28 @@

  
  '''Overall Test Suite run status:'''
  ||Total Tests ||Tests passed ||Success % ||
- ||2295 ||2196 
||95.68 ||
+ ||2295 ||2197 
||95.73 ||
  
  
  

-
To unsubscribe, e-mail: commits-unsubscr...@xerces.apache.org
For additional commands, e-mail: commits-h...@xerces.apache.org



svn commit: r1142631 - /xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDTypeAlternativeTraverser.java

2011-07-04 Thread mukulg
Author: mukulg
Date: Mon Jul  4 11:40:41 2011
New Revision: 1142631

URL: http://svn.apache.org/viewvc?rev=1142631&view=rev
Log:
doing a small fix to schema 1.1 type alternative implementation. if 
xpathDefaultNamespace is not present on xs:alternative, the implementation was 
not taking it's value from the ancestor xs:schema node (if it was present 
there). this commit solves this problem.

Modified:

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

Modified: 
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDTypeAlternativeTraverser.java
URL: 
http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDTypeAlternativeTraverser.java?rev=1142631&r1=1142630&r2=1142631&view=diff
==
--- 
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDTypeAlternativeTraverser.java
 (original)
+++ 
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/traversers/XSDTypeAlternativeTraverser.java
 Mon Jul  4 11:40:41 2011
@@ -83,7 +83,7 @@ class XSDTypeAlternativeTraverser extend
 Object[] attrValues = fAttrChecker.checkAttributes(altElement, false, 
schemaDoc);
 QName typeAtt = (QName) attrValues[XSAttributeChecker.ATTIDX_TYPE];
 String testStr = (String) attrValues[XSAttributeChecker.ATTIDX_XPATH];
-String xpathNS = (String) 
attrValues[XSAttributeChecker.ATTIDX_XPATHDEFAULTNS];
+String xpathDefaultNS = (String) 
attrValues[XSAttributeChecker.ATTIDX_XPATHDEFAULTNS];
 
 // get 'annotation'
 Element childNode = DOMUtil.getFirstChildElement(altElement);
@@ -183,7 +183,7 @@ class XSDTypeAlternativeTraverser extend
 reportSchemaError("s4s-elt-must-match.1", new Object[]{"type 
alternative", "(annotation?, (simpleType | complexType)?)", 
DOMUtil.getLocalName(childNode)}, childNode);
 }
 
-// create type alternative
+// create type alternative component
 XSTypeAlternativeImpl typeAlternative = new 
XSTypeAlternativeImpl(element.fName, alternativeType, annotations);
 
 // now look for other optional attributes like test and 
xpathDefaultNamespace
@@ -214,9 +214,12 @@ class XSDTypeAlternativeTraverser extend
 // REVISIT : is using Document.getDocumentURI() correct to retrieve 
base URI in every case, for type alternatives? 
 typeAlternative.setBaseURI(fXsdHandler.getDocumentURI());
 
-if (xpathNS != null) {
+if (xpathDefaultNS == null) {
+xpathDefaultNS = schemaDoc.fXpathDefaultNamespace;   
+}
+if (xpathDefaultNS != null) {
 //set the xpathDefaultNamespace attribute value
-typeAlternative.setXPathDefauleNamespace(xpathNS);
+typeAlternative.setXPathDefauleNamespace(xpathDefaultNS);
 }
 
 grammar.addTypeAlternative(element, typeAlternative);



-
To unsubscribe, e-mail: commits-unsubscr...@xerces.apache.org
For additional commands, e-mail: commits-h...@xerces.apache.org