A
Andy Dingley
Imagine the XHTML "definition list" structure
<dl>
<dt>A</dt>
<dd>a</dd>
<dt>B</dt>
<dd>b1</dd>
<dd>b2</dd>
<dt>C</dt>
<dt>D</dt>
[ ...]
</dl>
Given the element containing "A" as the context node, how can I retrieve
the elements for "a", similarly "B" for "b1,b2" etc. ?
Using ./preceding-sibling::* [1] [self::dd]
I can retrieve the elements for "A" ("a") and "C" (an empty set)
However I can't see any way to get "b1" & "b2", just the first "b1"
Thanks for any advice
<dl>
<dt>A</dt>
<dd>a</dd>
<dt>B</dt>
<dd>b1</dd>
<dd>b2</dd>
<dt>C</dt>
<dt>D</dt>
[ ...]
</dl>
Given the element containing "A" as the context node, how can I retrieve
the elements for "a", similarly "B" for "b1,b2" etc. ?
Using ./preceding-sibling::* [1] [self::dd]
I can retrieve the elements for "A" ("a") and "C" (an empty set)
However I can't see any way to get "b1" & "b2", just the first "b1"
Thanks for any advice