xsl-list
[Top] [All Lists]

Re: Expression expected in variable select statement?

2003-09-26 08:45:41
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 {(_at_)name} in the variable
name="boards" line. Any help greatly appreciated. Thanks, Kathy

<xsl:template match="Station"> 
              
<xsl:variable name="boards" select="//Station[name=
{(_at_)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