XSL to check the indexes in Tamino Collection

posted 28 May 04 13:47
I did a XSL to check the indexes in a Tamino collection.
I have a problem to show the full XPath of the element or attribute indexed.

The XSL process the output of following XQuery (collection=ino:collection):

declare namespace xs="http://www.w3.org/2001/XMLSchema"
declare namespace tsd="http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition"
for $d in input()/xs:schema
where $d/xs:annotation/xs:appinfo/tsd:schemaInfo/tsd:collection/@name eq 'your_collection’
return $d

The problems are in the templates:
line 64
<xsl:template match=“xs:element/xs:annotation/xs:appinfo/tsd:elementInfo/tsdhysical/tsd:native/tsd:index” >
line 87
<xsl:template match=“xs:attribute/xs:annotation/xs:appinfo/tsd:attributeInfo/tsdhysical/tsd:native/tsd:index” >

Do you have any suggestion?

indices.xsl (4.44 KB)


I think that the “xq:result” name test in the path expression in line 37 might cause the trouble:

<xsl:for-each select="//xq:result/xs:schema">

Depending how you get your query result you have to work on an “xq:result” element or a “result” element
For example the interactive interface delivers an “xq:result” element, but the XQuery tool gives you a “result” element without any namespace prefix.
So your problem might be solved by removing the “xq” namespace prefix.

Best Regards,