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 bu...@apache.org on 2003/06/30 11:24:53 UTC

DO NOT REPLY [Bug 21179] New: - xsd:include does not work

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: xerces-j-dev@xml.apache.org
        ReportedBy: studnev@mobilae.ru


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: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org