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.  xquery namespace

    Posted Tue August 23, 2005 12:44 PM

    Hi there!
    How i can setup the default namespace for an xquery I tried to use:

    declare default element namespace http://...

    but it doesn’t work


    #Tamino
    #webMethods
    #API-Management


  • 2.  RE: xquery namespace

    Posted Tue August 23, 2005 01:15 PM

    Hi,

    the namespace URL has to be enclosed in quotes.
    Otherwise ok.

    Regards,
    Juliane.


    #API-Management
    #Tamino
    #webMethods


  • 3.  RE: xquery namespace

    Posted Tue August 23, 2005 01:30 PM

    Here is my query:

    declare default element namespace "http://www.iec.ch/61850/2003/SCL"
    for $a in input()/*
    where $a
    return $a

    This is the message:

    Tamino access failure (6352, INOXQE6352, XQuery parsing error, Syntax Error at line 1, column 9: <![CDATA[default element namespace "http://www.iec.ch/61850/2003/SCL"]]> found "default" when expecting any of: "or", "and", "div", "mod", " *", "intersect", "union", "except", "/", "//", "=", "!=", "<=", ">=", "eq", "ne", "gt", "ge", "lt", "le", "< ", ">", "-", "+", "=>", "|", "(", "[", ",", "sort", "stable")

    #webMethods
    #Tamino
    #API-Management


  • 4.  RE: xquery namespace

    Posted Tue August 23, 2005 02:36 PM

    Ah, sorry.
    With Tamino 4.2 there are no default namespace prefixes. These will
    be included with the next version.
    For now use explicit namespace bindings as:

    declare namespace x = “http://www.iec.ch/61850/2003/SCL

    Regards,
    Juliane.


    #API-Management
    #Tamino
    #webMethods