-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Dear all
When trying to process the following schema (that imports the xmldsig one):
<?xml version="1.0" encoding="utf-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" ~ targetNamespace="http://power.inescn.pt/2002/06/agent#" ~ version="$Revision: 1.10 $" ~ xmlns:agent="http://power.inescn.pt/2002/06/agent#" ~ xmlns:ds="http://www.w3.org/2000/09/xmldsig#" ~ elementFormDefault="qualified">
<import namespace="http://www.w3.org/2000/09/xmldsig#" ~ schemaLocation="http://www.w3.org/2000/09/xmldsig# ~ xmldsig-core-schema.xsd"/>
<element name="Message" type="agent:MessageType"/> ~ <complexType name="MessageType"> ~ <sequence> ~ <element minOccurs="0" maxOccurs="unbounded" ref="ds:Signature"/> (Snip)
I get the following stack trace:
'html' has not been declared in the XML Schema namespace.
~ line: 4
at
org.exolab.castor.xml.schema.reader.Sax2ComponentReader.startElement(Sax2ComponentReader.java:256)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(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.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at
org.exolab.castor.xml.schema.reader.ImportUnmarshaller.<init>(ImportUnmarshaller.java:178)
at
org.exolab.castor.xml.schema.reader.SchemaUnmarshaller.startElement(SchemaUnmarshaller.java:423)
at
org.exolab.castor.xml.schema.reader.Sax2ComponentReader.startElement(Sax2ComponentReader.java:253)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(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.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at
org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:372)
at
org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:425)
at org.exolab.castor.builder.SourceGenerator.main(SourceGenerator.java:760)I have a castor.properties file with "org.exolab.castor.parser.namespaces = true" to overcome a previously reported bug.
I'm using Xerces 2.6.0.
Any ideas? - -- INESC Porto - Power Systems Unit - http://power.inescn.pt
We are governed not by armies and police but by ideas.
-- Mona Caird, 1892
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.orgiD8DBQFADtRbplvT4bMzQewRAlkrAKCQVrVjsfZF+qXJWgKs2MHP1IsIMACgh7Ba m9lm9WB8h7IxkD2z+WbqWf4= =EVWd -----END PGP SIGNATURE-----
