[ http://issues.apache.org/jira/browse/XERCESJ-1039?page=comments#action_58672 ] Lucian Holland commented on XERCESJ-1039: -----------------------------------------
Sorry - didn't get round to verifying this until now. All works fine now - thanks for the quick turnaround! > Target namespaces containing a space cause spurious errors > ---------------------------------------------------------- > > Key: XERCESJ-1039 > URL: http://issues.apache.org/jira/browse/XERCESJ-1039 > Project: Xerces2-J > Type: Bug > Components: XML Schema Structures > Versions: 2.6.2 > Environment: java 1.4 running on linux > Reporter: Lucian Holland > Assignee: Michael Glavassevich > Priority: Minor > Attachments: acme.xsd > > In a schema which has a space in the target namespace, references to other > components in the schema fail. I believe that this is because the > targetNamespace is escaped by the schema loader, but the corresponding prefix > binding does not get escaped. As a result the parser thinks that the prefix > refers to a different namespace to that of the current schema! The attached > schema demonstrates this. Note that it works if you bind a prefix to a > pre-escaped version of the namespace. Obviously namespaces containing > unescaped spaces are not a great idea, but it would be helpful if Xerces was > consistent in its behaviour and failed in a slightly more explicit fashion on > this. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
