Not quite but this works:
<xsl:for-each select="ancestor-or-self::*[(_at_)name]">
<xsl:text>/</xsl:text>
<xsl:value-of select="@name"/>
</xsl:for-each>
(there's ancestors without a @name)
thanks.
simon
On Friday, March 7, 2003, at 04:45 AM, Jre(_at_)scanlaser(_dot_)nl wrote:
This is a problem with the line
<xsl:for-each select="ancestor-or-self::*/@name">
If you change this to
<xsl:for-each select="ancestor-or-self::*">
and then change
<xsl:value-of select="."/>
to
<xsl:value-of select="@name"/>
you'll get the ordering you want (and expect!).
Daniel: I've logged this in bugzilla: 107804 (but you probably already
know that by now).
John Escott.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
--
www.simonwoodside.com -- 99% Devil, 1% Angel
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list