On 19/11/2013 20:08, Bert Verhees wrote:
> Hi Alessandro,
>
> I think you propose this?
>
>  /items[at0008,1]/value/value = Mark
>  /items[at0009,2]/value/value = Rutte

Either this or Bert's original (if it's legal Xpath) is correct, 
assuming the data look something like (I just added the outer <cluster> 
bit and header to make it work in a tool):

<?xml version="1.0" encoding="UTF-8"?>
<cluster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
     archetype_node_id="openEHR-EHR-CLUSTER.bert.v1"
     xmlns="http://schemas.openehr.org/v1";>
     <items xsi:type="CLUSTER" archetype_node_id="at0007">
         <items xsi:type="ELEMENT" archetype_node_id="at0008">
             <value xsi:type="DV_TEXT">
                 <value>Jan</value>
             </value>
         </items>
         <items xsi:type="ELEMENT" archetype_node_id="at0008">
             <value xsi:type="DV_TEXT">
                 <value>Peter</value>
             </value>
         </items>
         <items xsi:type="ELEMENT" archetype_node_id="at0009">
             <value xsi:type="DV_TEXT">
                 <value>Balkenende</value>
             </value>
         </items>
     </items>
</cluster>

I'm just messing around in Oxygen with some Xqueries and Xpaths.

- thomas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.openehr.org/pipermail/openehr-technical_lists.openehr.org/attachments/20131119/cb317c8a/attachment-0001.html>

Reply via email to