IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

XSL to check the indexes in Tamino Collection

  • 1.  XSL to check the indexes in Tamino Collection

    Posted Mon May 31, 2004 05:26 PM

    posted 28 May 04 13:47
    Hi,
    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=“XML Schema
    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?

    Thanks,
    Guillermo
    indices.xsl (4.44 KB)


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: XSL to check the indexes in Tamino Collection

    Posted Wed July 07, 2004 06:52 PM

    Hi,

    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,

    Thorsten


    #API-Management
    #Tamino
    #webMethods