Xpath doesn't show my documents

I’ve stored an XML document into Tamino with a specific namespace. If I query for the document with only it’s doctype it is not found. If I do the same with an * as doctype it is found.

The schema is open content and pretty simple:
<?xml version = "1.0" encoding = "UTF-8"?>
<xs:schema targetNamespace = “http://www.imsglobal.org/xsd/imscp_v1p1” elementFormDefault = “qualified” xmlns = “http://www.imsglobal.org/xsd/imscp_v1p1” xmlns:imsmd = “http://www.imsglobal.org/xsd/imsmd_v1p2” xmlns:tsd = “http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition” xmlns:xs = “XML Schema”>
xs:annotation
xs:appinfo
<tsd:schemaInfo name = “manifest”>
<tsd:collection name = “vapro”></tsd:collection>
<tsd:doctype name = “manifest”>
tsd:logical
tsd:contentopen</tsd:content>
</tsd:logical>
</tsd:doctype>
tsd:adminInfo
tsd:created2004-02-23T16:07:00.406+01:00</tsd:created>
tsd:modified2004-02-23T16:07:00.406+01:00</tsd:modified>
tsd:versionTSD4</tsd:version>
tsd:server4.1.4.1</tsd:server>
</tsd:adminInfo>
</tsd:schemaInfo>
</xs:appinfo>
</xs:annotation>
<xs:element name = “manifest”>
xs:annotation
xs:documentationAll manifests will use this Schema for storage</xs:documentation>
xs:appinfo
tsd:elementInfo
tsd:logical
tsd:trigger
<tsd:onInsert type = “action”>TFTIntegratorVapro.onInsert</tsd:onInsert>
<tsd:onDelete type = “action”>TFTIntegratorVapro.onDelete</tsd:onDelete>
<tsd:onUpdate type = “action”>TFTIntegratorVapro.onUpdate</tsd:onUpdate>
</tsd:trigger>
</tsd:logical>
</tsd:elementInfo>
</xs:appinfo>
</xs:annotation>
<xs:complexType mixed = “true”>
<xs:attribute name = “identifier” type = “xs:ID” use = “required”>
xs:annotation
xs:appinfo
tsd:attributeInfo
tsd:physical
tsd:native
tsd:index
tsd:standard</tsd:standard>
</tsd:index>
</tsd:native>
</tsd:physical>
</tsd:attributeInfo>
</xs:appinfo>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>


the XML document is not too complex either:



cursus nieuw 38





The query: xql=*[@identifier=“Coursevap0001135”] returns the manifest above.

The query xql=manifest returns
XQL Request processed, no object returned

I’m puzzled and don’t know why the documents are not found.

Hello Marcel,

I think that the problem is that your document “belongs” to a namespace, but the X-Query is for an unqualified doctype.

If you modify the schema so that the namespace “http://www.imsglobal.org/xsd/imscp_v1p1” (the target namespace) is
bound to the prefix “imscp”, then query for the qualified doctype name (e.g. /imscp:manifest) it will work.

The modified schema start node might look like this:

   <xs:schema targetNamespace = "http://www.imsglobal.org/xsd/imscp_v1p1" 
              elementFormDefault = "qualified" 
              xmlns:imscp = "http://www.imsglobal.org/xsd/imscp_v1p1" 
              xmlns:imsmd = "http://www.imsglobal.org/xsd/imsmd_v1p2" 
              xmlns:tsd = "http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition" 
              xmlns:xs = "http://www.w3.org/2001/XMLSchema">


(The only change is the introduction of the “imscp” prefix on the third line [as it appears above].)

I hope that helps,
Trevor.