if ($action = "update")
    then       dis:update($params)
    else if ($action = "delete")
        then dis:delete($params)

I have basically a "controller" in xqy that "loads" specific page to display 
depending on the action.
It is a rather large if-then-else stmt.  Any ideas on  altering this structure. 
Could I put it in a element node()?

This could allow:
let $content := ??? $actions/[EMAIL PROTECTED] = "update]/[EMAIL PROTECTED]

Or replace with typeswitch somehow - not sure since every type is a string?




      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to