|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








