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

Problems encountered in XQuery, Need help!!

  • 1.  Problems encountered in XQuery, Need help!!

    Posted Mon May 28, 2007 03:29 AM
    1. Where can i insert user defined function in this document?
    2. How do i insert the faculty value into a tag?

    {
    for $f in doc(“researchnet.xml”)/university,
    $s in $f/staff/row

    order by $s/name
    return
    
    <Senior-staff-="{$s/faculty/text()}"> (:error, how do i insert the faculty value into a tag?:)
    

    {
    if (contains($s/position, “Professor”))
    then {count($s/position)=1}
    else {count($s/position)=0}
    }

    {$s/name}{$s/position}


    }

    researchnet.xml (4.07 KB)


    #Tamino
    #API-Management
    #webMethods


  • 2.  RE: Problems encountered in XQuery, Need help!!

    Posted Tue May 29, 2007 02:07 PM

    Hi

    as this is obviously not Tamino’s XQuery implementation, you might not find an answer here

    Regards

    Harald


    #Tamino
    #API-Management
    #webMethods