Hi!
Yes, we run an XForms page and this page operates on documents (instances in a XForms model) wherein different nodes reference other nodes based on ids.
Though that’s not the answer I hoped for ;-) it clarifies why it does not work!
We can handle that by other XPath 2.0 expressions but these are way more complicated than the id()-option.
Thanks for the information!
Of course: Resources are limited – I perfectly understand that. Just didn’t know the XPath processor is not scheme aware…
Are there any plans to implement the id()-function?
Regards
JT
From: [hidden email] [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: Thursday, March 03, 2011 9:04 AM
To: [hidden email]
Subject: [ops-users] Re: RE: Using XSD-IDREFS/-ID typed elements to identify relevant elements
Since you mention that a schema is in use, I assume the XPath you are talking about runs in an XForms page, is that right?
If so, are you looking for the id() function as defined in XForms 1.1?
If so, it's not implemented in the XForms engine, as documented here:
XPath 2 has an id() function as well:
Since we don't implement our own version of id() in the XForms engine, I assume the default implementation of id() in the XPath engine is kicking in. Since the XPath engine is not schema-aware, it won't know about ids you define in your schema.
Now as to why some features are not implemented in Orbeon Forms… Steve Jobs famously said recently [1] that Apple has "limited resources" and therefore has to focus on the right stuff. Needless to say Orbeon also has limited resources ;) Everything pretty much flows from that.
-Erik
[1] http://news.cnet.com/8301-13860_3-20006526-56.html
On Tue, Mar 1, 2011 at 2:57 AM, Stumpf, Jens Thorsten <[hidden email]> wrote:
Sorry,
But I have to push that.
In the end it boils down to a simple question:
Does *any* version of Orbeon support XPath operations on generic xml:id or XSD-specified id with the id()-function in instances or not?
If not: Why?
If yes: What's wrong about the XPath below?
Regards,
JT
Free forum by Nabble | Edit this page |