Philipp Lenssen
Usenet Archive
- Joined
- Aug 14, 2000
- Messages
- 285
- Reaction score
- 0
I have some chapters a document goes through, so at the end of each document I want to output "Continue with XYZ", where XYZ is the next-sibling of the current one I select. However I don't know how to write the XPath to express this. I tried variants of this with ASP/MSXML:
sPhase = "foo"
set xNext = xPhasesDoc.documentElement.selectSingleNode( "following-sibling:
hase[@type = '" & sPhase & "']")
Where the XML is like
<?xml ...?>
<content>
<phase type="foo">Foo</phase>
<phase type="bar">Bar</phase>
</content>
sPhase = "foo"
set xNext = xPhasesDoc.documentElement.selectSingleNode( "following-sibling:
Where the XML is like
<?xml ...?>
<content>
<phase type="foo">Foo</phase>
<phase type="bar">Bar</phase>
</content>