Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
<tag1>
<tag2></tag2>
</tag1>
If I'm in tag2, how do I access tag1? I tried ../tag1[1] and parent[1]
And also, how would I access the first element from an att with XPATH? For example, this didn't work:
<e-i-c gi="code" occur="all">
...
<att>
<specval attname="code[1]" attloc="#xpath" attval="1"/">
<charsubset>...</charsubset>
</att>
</e-i-c>
Thanks, guys. So I don't to qualify with [1] such as parent::tagA[1], because I just want the one parent node directly above tagB.
Also, how would I access the first occurring eic from the all context via XPATH?
This didn't work:
<e-i-c gi="code" occur="all">
...
<att>
<specval attname="code[1]" attloc="#xpath" attval="1"/">
<charsubset>...</charsubset>
</att>
</e-i-c>
Thanks, Brandon.
So would code[last()] choose the last code element? Or is it ../code[last()]?
Thanks, Liz. I see there are a bunch of free videos I can check out, too!
Hi Suzanne,
I wanted to be able to access the first position (or last) eic without having to code separate first/not first eics because I was having trouble with repeating header titles. I don't think I needed the XPATH after all but I did have a problem with my floats disappearing http://portal.ptcuser.org/p/fo/st/thread=53027
Thanks Suzanne. I added in a last context and now it's working fine. Sheesh!