|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Relative XPATH for XSLT |
« View previous topic :: View next topic » |
Author |
Message
|
ghoshly |
Posted: Tue Apr 21, 2015 12:01 pm Post subject: Relative XPATH for XSLT |
|
|
Partisan
Joined: 10 Jan 2008 Posts: 333
|
Hi,
My question is more towards XSLT and XPATH; specifically v1.0
Can we have relative XPATH variable in XSLT just like we do have reference variable in ESQL, so that we do not need to mention/parse from the root of a XML tree?
Thanks in advance. |
|
Back to top |
|
 |
kimbert |
Posted: Wed Apr 22, 2015 1:53 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
XPath is a published W3C standard. Use Google. _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too. |
|
Back to top |
|
 |
ghoshly |
Posted: Wed Apr 22, 2015 4:32 pm Post subject: |
|
|
Partisan
Joined: 10 Jan 2008 Posts: 333
|
Thanks Kimbert. Definitely my query should have been more to the point.
So far I have seen relative paths to be used in case of loops in XPATH. So I was not sure about the usage of relative XPATHs in all cases and any performance benefit out of it. I'll try to learn more through google. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Apr 23, 2015 5:01 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
For any tree based structure, I would expect that relative paths would limit the amount of node traversal required.
That is, if you are at A/B/C/D/E, and you want to iterate over the children of D... using a relative path from C will be shorter than having to navigate to every element starting at A. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|