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

Subject: Re: [xsl] Expression expected in variable select statement?
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Fri, 26 Sep 2003 08:45:41 -0700 (PDT)
> 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


Current Thread