[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] bug in LibXSLT???


Subject: Re: [xsl] bug in LibXSLT???
From: S Woodside <sbwoodside@xxxxxxxxx>
Date: Fri, 7 Mar 2003 14:53:25 -0500

Not quite but this works:

    <xsl:for-each select="ancestor-or-self::*[@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@xxxxxxxxxxxx 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




Current Thread