Subject:Nothing returned when namespace used Author:Nick Radov Date:12 Apr 2007 10:01 PM
I just started using Stylus Studio 2007 and am having some trouble using it to create an XQuery statement. I have attached the sample XML file I am trying to query. And here is the XQuery statement, in which I just want the text value of one element.
/ORU_R01/MSH/MSH.12/VID.1/text()
That query doesn't return anything. However, if I remove the xmlns attributes from the root element of the XML document then the query does work and returns "2.2".
I suspect I just don't have the syntax right for querying with namespaces. Can anyone suggest how I can fix it? Is there a way to get Stylus Studio to generate the correct XQuery?
Subject:Nothing returned when namespace used Author:Nick Radov Date:13 Apr 2007 12:48 PM
Thanks, I figured it was something like that. Is there any way to make Stylus Studio automatically generate that syntax? I generated the original query just by clicking on the element I wanted in the GUI.