[xsl] MSXML ancestor-or-self

Subject: [xsl] MSXML ancestor-or-self
From: Richard Mitchell <Richard.Mitchell@xxxxxxxxxxxxx>
Date: Wed, 7 Mar 2001 15:12:20 -0000
Well it seems I've hit a small snag what I want
is to get a list of variables in a scope so the
closest is taken and passed on. The XML looks
something like.

<P name="hello" value="blue"/>
	<P name="goodbye" value="red"/>
	<P name="hello" value="green"/>

And my current context is C. With my output looking something like


So far I've got
	<xsl:for-each select="ancestor-or-self::*/p[ what on earth can I put
here ]">
		;_<xsl:value-of select="@name"/>=<xsl:value-of
But I've got stuck in the way that MSXML3 seems to be serving up the axis in
document order not reverse document order like it says on P717 or Michael
excellent book.

Any and all help would be appreciated.

Richard Mitchell
Software Developer

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread