Subject: Re: Whats Wrong with: <xsl:value-of select="//exec[@stepid=$temp_step]/dds/dd[logical/@id=$temp_id]" />
From: Mike Ferrando <mikeferrando@xxxxxxxxx>
Date: Thu, 11 Nov 2004 07:00:37 -0800 (PST)
|
Friends,
To expand on David's post, I find it easier and less liable to error
to express the variable this way when I want a string:
XLST 1.0
<xsl:variable name="temp_id">SORTOUT</xsl:variable>
Mike Ferrando
Library Technician
Music Division
Library of Congress
Washington, DC
202-707-4454
--- David Carlisle <davidc@xxxxxxxxx> wrote:
>
> > logical/@id='SORTOUT'
>
> that compares id attributes with the string 'SORTOUT'
>
> <xsl:variable name="temp_id" select="SORTOUT" />
> That sets temp_id to be the string value of the SORTOUT element
> child of
> the current node, you probably meant
> <xsl:variable name="temp_id" select="'SORTOUT'" />
>
> David
>
>
________________________________________________________________________
> This e-mail has been scanned for all viruses by Star. The
> service is powered by MessageLabs. For more information on a
> proactive
> anti-virus service working around the clock, around the globe,
> visit:
> http://www.star.net.uk
>
________________________________________________________________________
>
>
__________________________________
Do you Yahoo!?
Check out the new Yahoo! Front Page.
www.yahoo.com
|