Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
Hello all,
I would like to get a full valid context location path (with NS local-name etc) from the current node/oid/cursor pos in Editor 6.1 and the only obvious option i have seen so far is 'context_string'.
As this outputs a kind of psuedo location path not valid in its raw form to re-use, i was wondereding if there might be other quick options i have overlooked that anyone can suggest without going around the block and back!?
<doc><a:chap><b:sec><b:other>text</b:other><c:para>text1</c:para><c:para>text2|
context_string gives: "doc(a:chap(b:sec(b:other()c:para()c:para("
(i can post process with some regEx this but be nice not to!)
need to have something valid like "//doc/node()[local-name()='chap']/node()[local-name()='sec']/node()[local-name()='para'][2]"
(similar to get-context xpath function in APP)
Many thanks!
Chris