RE: [xsl] Expression expected in variable select statement?

Subject: RE: [xsl] Expression expected in variable select statement?
From: "Kathy Burke" <Kathy_Burke@xxxxxxxxx>
Date: Fri, 26 Sep 2003 12:05:24 -0400
Re: the AVT, I corrected myself in a follow-on post. I've tried various
renditions of the current() function but still no luck...

kb

-----Original Message-----
From: Dimitre Novatchev [mailto:dnovatchev@xxxxxxxxx]
Sent: Friday, September 26, 2003 11:46 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Expression expected in variable select statement?


> Hi, I'm trying to set a row color based on whether or not the /Station
> element of a given "name" attribute has /Board descendents. I'm getting 
> an "expression expected" error where I specify {@name} in the variable
> name="boards" line. Any help greatly appreciated. Thanks, Kathy

> <xsl:template match="Station"> 
> 		
> <xsl:variable name="boards" select="//Station[name=
> {@name}]/Boards/Board" /> 

AVT (Attribute-Value Templates) cannot be used to specify the value of a
"select" attribute.

Read about the current() function, then use it:


       http://www.w3.org/TR/xslt#misc-func





=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



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


Current Thread