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

The use of {curly brackets}

  • 1.  The use of {curly brackets}

    Posted Mon August 18, 2003 11:36 PM

    The fact that {} used by xQuery to mark an evaluated expressions within return clause creates a problem when the xml text contain curly brackets.
    The following example:

    update
    replace input()/book/title
    with The use of {curly brackets}

    should currently be written as
    update
    replace input()/book/title
    with The use of {‘{’}curly brackets{‘}’}

    this enforces the xQuery programmer to use string operations search and replace etc.

    there is therefore a need to better distinguish between xml data and xquery expressions (or a need for curly brackets equivalent entities).


    #Tamino
    #webMethods
    #API-Management


  • 2.  RE: The use of {curly brackets}

    Posted Tue August 19, 2003 01:37 PM

    The XQuery specification allows the brackets to be doubled to escape them:

    Here is a left curly {{ and a right curly }}

    Clearly, any delimiter character is going to give problems like this. The only other option would have been to use XML start and end tags in a special namespace - which is of course what XSLT does.

    Michael Kay


    #webMethods
    #API-Management
    #Tamino