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
  • 1.  How to get ino:docname attribute using XQuery?

    Posted Tue May 18, 2004 10:04 PM

    Hi,
    I would like to know how can I get or ask for the attribute
    “ino:docname” (NonXML doctype) using XQuery?

    Thanks,
    Guillermo


    #API-Management
    #webMethods
    #Tamino


  • 2.  RE: How to get ino:docname attribute using XQuery?

    Posted Wed May 19, 2004 05:16 AM

    Hello Guille,

    declare the namespace tf=“http://namespaces.softwareag.com/tamino/TaminoFunction” in your XQuery prolog, then use the function tf:getDocname($doc) to get the docname.
    (The value of $doc should be a document node.)

    I hope that helps,
    Trevor.


    #API-Management
    #webMethods
    #Tamino


  • 3.  RE: How to get ino:docname attribute using XQuery?

    Posted Wed May 19, 2004 02:59 PM

    Hi Trevor,
    Thanks a lot for your help. I could get the ino:docname value using tf:getDocname($a/…).

    My XQuery:
    declare namespace tf=“http://namespaces.softwareag.com/tamino/TaminoFunction
    for $a in input()/NonXmlIndexer1
    return tf:getDocname($a/…)

    If you use tf:getDocname($a) instead of tf:getDocname($a/…) you will get the error:

    INOXQE6301: Runtime type exception

    Regards,
    Guillermo


    #Tamino
    #webMethods
    #API-Management