just wondering - is there an xpath function that will return a path? I looked for something like this and don't understand why it doesn't seem to exist. It would greatly simply an application of mine if I could just store the path to a specified node to an instance. Something like returnPath(node) as xs:string ? If not, is there a specific reason it can't be implemented?
-- Francis
|
Administrator
|
Hi Francis,
There is a Saxon extension that does what you're describing here: saxon:path(). See: http://www.saxonica.com/documentation/extensions/functions/path.html Since Orbeon Forms uses Saxon to run XPath expressions in XForms, you can use it wherever you can write an XPath expression in XForms. You should be aware though that this has limitations: it works well in simple cases, but an XPath expression is not like a pointer; for instance, if your document changes, depending on the cases it might point to a different node. Alex On Sat, Jul 17, 2010 at 7:57 PM, FParsons <[hidden email]> wrote: > > just wondering - is there an xpath function that will return a path? I looked > for something like this and don't understand why it doesn't seem to exist. > It would greatly simply an application of mine if I could just store the > path to a specified node to an instance. Something like returnPath(node) as > xs:string ? If not, is there a specific reason it can't be implemented? > > > > ----- > -- Francis > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/getting-node-path-tp2292821p2292821.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
I am out of the office until 26th July *********************************************************************************************** This email, including any attachment, is confidential and may be legally privileged. If you are not the intended recipient or if you have received this email in error, please inform the sender immediately by reply and delete all copies from your system. Do not retain, copy, disclose, distribute or otherwise use any of its contents.
Whilst we have taken reasonable precautions to ensure that this email has been swept for computer viruses, we cannot guarantee that this email does not contain such material and we therefore advise you to carry out your own virus checks. We do not accept liability for any damage or losses sustained as a result of such material.
Please note that incoming and outgoing email communications passing through our IT systems may be monitored and/or intercepted by us solely to determine whether the content is business related and compliant with company standards. *********************************************************************************************** The Stationery Office Limited is registered in England No. 3049649 at 10 Eastbourne Terrace, London, W2 6LG
|
In reply to this post by Alessandro Vernet
Alex- That's exactly what I was looking for, thanks very much!
I don't think there will be a problem with the document changing. I'd just be using this for an RTE dialog where the string would be used with the evaluate() function to update the node that "called" it. (The dialog is modal, so I don't think the user could change the document in the time that this string exists). This eliminates a lot of somewhat clumsy code I was using to "reconstruct" the path.
-- Francis
|
I am out of the office until 26th July *********************************************************************************************** This email, including any attachment, is confidential and may be legally privileged. If you are not the intended recipient or if you have received this email in error, please inform the sender immediately by reply and delete all copies from your system. Do not retain, copy, disclose, distribute or otherwise use any of its contents.
Whilst we have taken reasonable precautions to ensure that this email has been swept for computer viruses, we cannot guarantee that this email does not contain such material and we therefore advise you to carry out your own virus checks. We do not accept liability for any damage or losses sustained as a result of such material.
Please note that incoming and outgoing email communications passing through our IT systems may be monitored and/or intercepted by us solely to determine whether the content is business related and compliant with company standards. *********************************************************************************************** The Stationery Office Limited is registered in England No. 3049649 at 10 Eastbourne Terrace, London, W2 6LG
|
Administrator
|
In reply to this post by FParsons
Francis,
OK, perfect then! Alex On Wed, Jul 21, 2010 at 5:55 AM, FParsons <[hidden email]> wrote: > > Alex- That's exactly what I was looking for, thanks very much! > > I don't think there will be a problem with the document changing. I'd just > be using this for an RTE dialog where the string would be used with the > evaluate() function to update the node that "called" it. (The dialog is > modal, so I don't think the user could change the document in the time that > this string exists). > > This eliminates a lot of somewhat clumsy code I was using to "reconstruct" > the path. > > ----- > -- Francis > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/getting-node-path-tp2292821p2297065.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
I am out of the office until 26th July *********************************************************************************************** This email, including any attachment, is confidential and may be legally privileged. If you are not the intended recipient or if you have received this email in error, please inform the sender immediately by reply and delete all copies from your system. Do not retain, copy, disclose, distribute or otherwise use any of its contents.
Whilst we have taken reasonable precautions to ensure that this email has been swept for computer viruses, we cannot guarantee that this email does not contain such material and we therefore advise you to carry out your own virus checks. We do not accept liability for any damage or losses sustained as a result of such material.
Please note that incoming and outgoing email communications passing through our IT systems may be monitored and/or intercepted by us solely to determine whether the content is business related and compliant with company standards. *********************************************************************************************** The Stationery Office Limited is registered in England No. 3049649 at 10 Eastbourne Terrace, London, W2 6LG
|
Administrator
|
Paul,
Don't worry about it; it happened to all of us, at one time or another :). Your messages didn't make it to the mailing list, but were shown on Nabble, which apparently doesn't know how to filter on that type of messages. Alex On Sat, Jul 24, 2010 at 11:50 AM, Paul Appleby <[hidden email]> wrote: > > Really sorry about the out of office message folks (I've turned it off now) - > although I'm a bit surprised they made it through? > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/getting-node-path-tp2292821p2301206.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |