Bind Externals via RUN Command

Wednesday, 12 June 2013 · 2 messages
JH
James Hughes12 Jun 2013 10:05 #
Hello, I'm wondering if it is at all possible to an external variable to a query when it is being executed via the RUN command? e.g. RUN /queries/country.xq Which has (condensed for brevity)
    declare variable $country_code external;
    //iati-activity/recipient-country[@code='{ $country_code }']/
Is this possible when calling from a client? James
FE
Fabrice Etanchaud12 Jun 2013 10:51 #
Hello James, Did you try the BINDINGS option ? http://docs.basex.org/wiki/Options#BINDINGS Regards, Fabrice
Quoted text · James Hughes · 12 lines
De : basex-talk-bounces at mailman.uni-konstanz.de [mailto:basex-talk-bounces at mailman.uni-konstanz.de] De la part de James Hughes Envoyé : mercredi 12 juin 2013 10:06 À : basex-talk at mailman.uni-konstanz.de Objet : [basex-talk] Bind Externals via RUN Command Hello, I'm wondering if it is at all possible to an external variable to a query when it is being executed via the RUN command? e.g. RUN /queries/country.xq Which has (condensed for brevity) declare variable $country_code external; //iati-activity/recipient-country[@code='{ $country_code }']/ Is this possible when calling from a client? James

⚡Generated with XQuery