webMethods

webMethods

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

Checking Type in Tamino Query

  • 1.  Checking Type in Tamino Query

    Posted Tue September 07, 2004 02:49 AM

    Hello,
    I am a new Tamino user. I wonder whether we can perform checking type in Tamino. For example, in the update Xquery or X-Query, I want to check if a node is an ID or not before I update it. Can anyone help me? Thanks in advance.


    #webMethods
    #API-Management
    #Tamino


  • 2.  RE: Checking Type in Tamino Query

    Posted Tue September 14, 2004 11:12 AM

    Hi,

    Unfortunately neither in Tamino XQuery nor in X-Query it is possible to check if a node has the type xs:ID. But given an according schema you can guarantee that an expression gives you instances of certain type. All you have to do is to avoid language constructs that destroy the type safety like // or wild-card name tests in path expressions.

    Best regards,

    Thorsten Fiebig


    #API-Management
    #Tamino
    #webMethods