Hi all,

Thank you very much for your response.

First I want to respond to this one. Because there is also an XML issue.
It is not that I want to be unfriendly, but, this also needs to be 
discusses.

I assume, the OpenEHR-XSD's are inspiration for this OpenEHR XML.
I write, inspiration, because it is not possible to use the XSD's for 
definition of XML-instances.
I filed a call yesterday on JIRA for that:
http://www.openehr.org/issues/browse/SPECPR-93

But now I see another problem.
If the "element" thing (see JIRA) was repaired in the XSD's, then still, 
in my opinion, it would not be possible to come to following XML-fragment.
This is also a point that needs to be discussed.

IMHO, it would look like this:

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

> I'm just messing around in Oxygen with some XSD's.

Me to ;)

But for the rest, I like the XML-approach of defining paths, although, I 
am not sure about the XPath-style, because I think that XPath is a 
query-language.
That is one of the reasons why I started this discussion.

I happen to be in a renovation of some kernel-internals, and I want the 
path's used to have some kind of legitimacy. That is why I ask you to 
help me thinking about it.

Thanks,
Bert



On 11/19/2013 10:23 PM, Thomas Beale wrote:
> 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
>
>
>
> _______________________________________________
> openEHR-technical mailing list
> openEHR-technical at lists.openehr.org
> http://lists.openehr.org/mailman/listinfo/openehr-technical_lists.openehr.org

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

Reply via email to