[xquery-talk] How can we runtime pass element name to xquery

Florent Georges lists at fgeorges.org
Mon Apr 18 15:17:29 PDT 2011


Kunal Chauhan wrote:

  Hi,

> $doc := doc(...)
> $element_name := $doc//...   I got element name as a string 
> $element_tag := $doc//$element_name

  That depends on how you represent the name in the content.  How
do you represent the namespace part?  Using Clark notation?
Using a literal QName (with the prefix bound in the context)?
Using two different elements for the namespace URI and the local
name?  Something else?

  Regards,

-- 
Florent Georges
http://fgeorges.org/





More information about the talk mailing list