[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xsl:sort ... jeff comes before Jeff?

Subject: Re: xsl:sort ... jeff comes before Jeff?
From: Daniel Veillard <daniel@xxxxxxxxxxxx>
Date: Wed, 16 Oct 2002 19:14:19 +0200
xsl variable redefining
On Wed, Oct 16, 2002 at 12:19:31PM -0400, Roger L. Costello wrote:
> <xsl:variable name="names" select="/FitnessCenter/Member[1]/Name"/>
> <xsl:for-each select="/FitnessCenter/Member[position() &gt; 1]">
>              <xsl:variable name="names" select="concat($names, '/')"/>
>               <xsl:variable name="names" select="concat($names, Name)"/>
>  </xsl:for-each>
> <xsl:value-of select="$names"/>
> 
> xalan and xt have no problems with it.
> 
> saxon generates two error messages - saying that name has been redclared.
> 
> Who's right?  /Roger

  Saxon is, that's explicitely forbidden.
xsltproc also raises a runtime error about it.

paphio:~ -> xsltproc tst.xsl tst.xsl 
runtime error: file tst.xsl line 6 element variable
xsl:variable : redefining names
no result for tst.xsl
paphio:~ -> 

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@xxxxxxxxxx  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.