DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21179>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21179

xsd:include does not work

           Summary: xsd:include does not work
           Product: Xerces2-J
           Version: 2.4.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XML Schema Structures
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have the following root schema:
<?xml version="1.0" encoding="UTF-8"?>
<!-- This schema defines runtime security configuration.-->
<xsd:schema 
        targetNamespace="http://oam.exigengroup.mow/sea/policy/policy.xsd"; 
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
        xmlns:sea ="http://oam.exigengroup.mow/sea/policy/policy.xsd";>
<xsd:include 
schemaLocation="http://oam.exigengroup.mow/sea/policy/deployment.xsd"/>
        <!-- Root element for configuration -->
        <xsd:element name="configuration" type="sea:name"/>
</xsd:schema>

and included:
<?xml version="1.0" encoding="UTF-8"?>
<!-- This schema defines deployment configuration for security -->
<xsd:schema 
        targetNamespace="http://oam.exigengroup.mow/sea/policy/policy.xsd"; 
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
        xmlns:sea="http://oam.exigengroup.mow/sea/policy/policy.xsd"; 
        elementFormDefault="qualified" 
        attributeFormDefault="unqualified">
        <!-- not empty string -->
        <xsd:simpleType name="name">
                <xsd:restriction base="xsd:token">
                        <xsd:minLength value="1"/>
                </xsd:restriction>
        </xsd:simpleType>
</xsd:schema>

It seems that <include> is ignored, because i get the following error:

:::::9:53:src-resolve: Cannot resolve the name 'sea:name' to a(n) type 
definition component.
        at org.apache.xerces.util.ErrorHandlerWrapper.createXMLParseException
(Unknown Source)
        at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaError
(Unknown Source)
        at org.apache.xerces.impl.xs.traversers.XSDHandler.getGlobalDecl
(Unknown Source)
        at 
org.apache.xerces.impl.xs.traversers.XSDElementTraverser.traverseNamedElement
(Unknown Source)
        at 
org.apache.xerces.impl.xs.traversers.XSDElementTraverser.traverseGlobal(Unknown 
Source)
        at org.apache.xerces.impl.xs.traversers.XSDHandler.traverseSchemas
(Unknown Source)
        at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown 
Source)
        at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
        at org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar
(Unknown Source)
        at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement
(Unknown Source)
        at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown 
Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement
(Unknown Source)
        at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElem
entHook(Unknown Source)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.
dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at 
com.exigen.security.policy.file.internal.FilePolicyDomainImpl.parseDocument
(FilePolicyDomainImpl.java:111)
        at com.exigen.security.policy.file.internal.FilePolicyDomainImpl.verify
(FilePolicyDomainImpl.java:146)
        at 
com.exigen.security.policy.file.deployment.PolicyRuntimeConfigurationImpl.save
(PolicyRuntimeConfigurationImpl.java:205)
        at 
com.exigen.security.policy.tests.TestPolicyDeployment.testSimpleDeployment
(TestPolicyDeployment.java:91)
        at java.lang.reflect.Method.invoke(Native Method)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:329)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
(RemoteTestRunner.java:218)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
(RemoteTestRunner.java:151)

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

Reply via email to