Op donderdag 21 november 2013 schreef Thomas Beale ( thomas.beale at oceaninformatics.com):
> On 20/11/2013 11:28, Diego Bosc? wrote: > >> It is right in XPath, maybe is less intuitive, but I would say these >> are even less intuitive and still work >> /cluster[@archetype_id='openEHR-EHR-CLUSTER.bert.v1']/ >> items/value[3]/value=Balkenende >> /cluster[@archetype_id='openEHR-EHR-CLUSTER.bert.v1']/ >> items[3]/value/value=Balkenende >> > > Diego, > do you mean you tested this? Could you provide the XML source content you > did this on? There is only one way to read this. In the first line in items is a list-array with at least three cells. In the second line is an array of items-cells in cluster. Line one is illegal in the OpenEhr RM, but of couse one can write an RM in which it is possible, so, as ADL it is legal. > > I think we should decide why is this for: >> >> Is this for ADL paths? then use ADL path syntax. >> Is this for XML query? then use XPath >> > > well what we want I believe, is for the ADL paths to be easily mappable > (i.e. simple algorithm) to convert to the correct Xpaths. I'm not yet > convinced we have the answers right here. Happy to be corrected though. A programmer does not look for easy mapping, in fact, how more difficult the mapping, there will be opportunity to make money. But seriously, easy mapping, difficult mapping, who cares, there needs to be written code, one day, or one week, it will last for ever. So easy mappable in syntax or difficult, it is just code and not very interesting. But the mapping must be possible. Don't try to map ADL-archetypes to XML Schema, that is not possible. That is not easy or difficult, but impossible. But from ADL paths/queries to xPath is very well possible, and only a bit difficult. IMHO there is no reason to change ADL path to kinda xPath. Bert > > - thomas > > > _______________________________________________ > openEHR-technical mailing list > openEHR-technical at lists.openehr.org > http://lists.openehr.org/mailman/listinfo/openehr- > technical_lists.openehr.org > -- *This e-mail message is intended exclusively for the addressee(s). Please inform us immediately if you are not the addressee.* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.openehr.org/pipermail/openehr-technical_lists.openehr.org/attachments/20131122/580fd99b/attachment.html>

