|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
XSD importer: problem with unresolvable attribute refs |
« View previous topic :: View next topic » |
Author |
Message
|
msukup |
Posted: Fri Sep 29, 2006 6:28 am Post subject: XSD importer: problem with unresolvable attribute refs |
|
|
Acolyte
Joined: 11 Feb 2002 Posts: 56
|
Hi all,
I am trying to import a complex set of xml schemas into WMB6.0 with the mqsicreatemsgdefs utility. . . I am starting with the "base" schema upon which so many of the other schemas depend. The schema itself is rather simple and comes from the Dublin Core Metadata Initiative, and is the basis of HR-XML standard. Here is copy of the schema:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://purl.org/dc/elements/1.1/"
targetNamespace="http://purl.org/dc/elements/1.1/"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:annotation>
<xs:documentation xml:lang="en">
Simple DC XML Schema, 2002-10-09
by Pete Johnston (p.johnston@ukoln.ac.uk),
Carl Lagoze (lagoze@cs.cornell.edu), Andy Powell (a.powell@ukoln.ac.uk),
Herbert Van de Sompel (hvdsomp@yahoo.com).
This schema defines terms for Simple Dublin Core, i.e. the 15
elements from the http://purl.org/dc/elements/1.1/ namespace, with
no use of encoding schemes or element refinements.
Default content type for all elements is xs:string with xml:lang
attribute available.
Supercedes version of 2002-03-12.
Amended to remove namespace declaration for http://www.w3.org/XML/1998/namespace namespace,
and to reference lang attribute via built-in xml: namespace prefix.
xs:appinfo also removed.
</xs:documentation>
</xs:annotation>
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/03/xml.xsd">
</xs:import>
<xs:element name="title" type="elementType"/>
<xs:element name="creator" type="elementType"/>
<xs:element name="subject" type="elementType"/>
<xs:element name="description" type="elementType"/>
<xs:element name="publisher" type="elementType"/>
<xs:element name="contributor" type="elementType"/>
<xs:element name="date" type="elementType"/>
<xs:element name="type" type="elementType"/>
<xs:element name="format" type="elementType"/>
<xs:element name="identifier" type="elementType"/>
<xs:element name="source" type="elementType"/>
<xs:element name="language" type="elementType"/>
<xs:element name="relation" type="elementType"/>
<xs:element name="coverage" type="elementType"/>
<xs:element name="rights" type="elementType"/>
<xs:group name="elementsGroup">
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="title"/>
<xs:element ref="creator"/>
<xs:element ref="subject"/>
<xs:element ref="description"/>
<xs:element ref="publisher"/>
<xs:element ref="contributor"/>
<xs:element ref="date"/>
<xs:element ref="type"/>
<xs:element ref="format"/>
<xs:element ref="identifier"/>
<xs:element ref="source"/>
<xs:element ref="language"/>
<xs:element ref="relation"/>
<xs:element ref="coverage"/>
<xs:element ref="rights"/>
</xs:choice>
</xs:sequence>
</xs:group>
<xs:complexType name="elementType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="xml:lang" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:schema>
When I import the schema, an error message stating "Attribute reference 'http://www.w3.org/XML/1998/namespace#lang' cannot be resolved"
The toolkit navigates me to the ref="xml:lang" attribute of the attribute element under the complexType element with name "elementType". However, when I reference the W3C Schema documentaiton, ref attribute in attribute element should resolve to an xml namespace (DCName), as it does in the schema (meaning, it is not a problem with the schema, rather than importer).
Does anyone know if this problem is a known problem with the schema importer? Is there any workaround? I would prefer not to doctor the original schema, but if I must, I will. Sorry if this question is answered already somewhere in the universe of google . . . I did a quick search and turned up nada.
Thanks in advance! |
|
Back to top |
|
 |
msukup |
Posted: Fri Sep 29, 2006 7:34 am Post subject: |
|
|
Acolyte
Joined: 11 Feb 2002 Posts: 56
|
Here I am, half and hour later, answering my own question! My bad!@!
On properties hierarchy of message, click on option "Use http://www.w3.org/2001/xml.xsd schema". This removes error.
Sorry. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|