You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Warner Warren (JIRA)" <xe...@xml.apache.org> on 2012/12/28 18:18:13 UTC

[jira] [Created] (XERCESJ-1600) I am having a problem using assertions in the Java version Xerces 2.11.0 with DOM3.

Warner Warren created XERCESJ-1600:
--------------------------------------

             Summary: I am having a problem using assertions in  the Java version  Xerces 2.11.0 with DOM3. 
                 Key: XERCESJ-1600
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1600
             Project: Xerces2-J
          Issue Type: Bug
          Components: DOM (Level 3 Load & Save)
    Affects Versions: 2.11.0
         Environment: Windows 7 64-bit platform
            Reporter: Warner Warren
             Fix For: 2.11.0


I am having a problem using the Java version of Xerces 2.11.0 with DOM3. I have linked the following jar files:

org.eclipse.wst.xml.xpath2.processor_1.1.0.jar
resolver.jar
serializer.jar
 xercesImpl.jar
 xercesSamples.jar
 xml-apis.jar
cupv10k-runtime.jar
icu4j.jar

My invocation of DOM level 3, using the registry, is shown below:

System.setProperty(DOMImplementationRegistry.PROPERTY,
              "org.apache.xerces.dom.DOMXSImplementationSourceImpl");
DOMImplementationRegistry registry = DOMImplementationRegistry.newInstance();
            //Creating a DOMImplementation object
 DOMImplementation domImpl = registry.getDOMImplementation("LS 3.0");
 DOMImplementationLS implLS = (DOMImplementationLS) domImpl;
            //
            //Create an LSParser object
 parser = implLS.createLSParser(DOMImplementationLS.MODE_SYNCHRONOUS,         "http://www.w3.org/2001/XMLSchema");    

When this program executes, I get the following error message:
DDS_AnalyzerPayloadError  - [Error_DAP_DSP]--s4s-elt-invalid-content.1: The content of 'itemType' is invalid.  Element 'assert' is invalid, misplaced, or occurs too often.

It appears that I am not getting the schema 1.1 functionality.  
However, Version.getVersion() yields Xerces-J 2.11.0-xml-schema-1.1-beta
If I remove the assertions, everything is fine. Do I need to configure something else? I cannot attach the source code, xml or schemas because they contain sensitive information. 


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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