Can't make XQuery do anything
Posted: Thu Oct 03, 2013 1:50 am
[Windows 7 / Oxygen Editor v15]
I have a very simple Xquery:
for $x in doc("../openHR_test_set_001/039dec8d-7b2b-485d-be37-ff5e29645e71.xml")/openHealthRecord
return $x/id
The start of the data looks as follows:
<?xml version="1.0"?>
<openHealthRecord xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" schemaVersion="1.3.0" xmlns="http://www.e-mis.com/emisopen">
<id>028d34e2-250d-4c5e-aa35-10d0eb8b257b</id>
<creationTime>2010-05-09T00:00:00+01:00</creationTime>
I have set up a transformation scenario to run this query; it validates and runs, but the parser (Saxon-PE XQuery 9.5.0.2) says: Your query returned an empty sequence.
The doc() function is working and if I run it in debug mode it finds the xml source doc.
I assume I am just not configuring something somewhere, but I have run out of things to try...
thanks for any help.
- thomas beale
I have a very simple Xquery:
for $x in doc("../openHR_test_set_001/039dec8d-7b2b-485d-be37-ff5e29645e71.xml")/openHealthRecord
return $x/id
The start of the data looks as follows:
<?xml version="1.0"?>
<openHealthRecord xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" schemaVersion="1.3.0" xmlns="http://www.e-mis.com/emisopen">
<id>028d34e2-250d-4c5e-aa35-10d0eb8b257b</id>
<creationTime>2010-05-09T00:00:00+01:00</creationTime>
I have set up a transformation scenario to run this query; it validates and runs, but the parser (Saxon-PE XQuery 9.5.0.2) says: Your query returned an empty sequence.
The doc() function is working and if I run it in debug mode it finds the xml source doc.
I assume I am just not configuring something somewhere, but I have run out of things to try...
thanks for any help.
- thomas beale