This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Concat ( Again )
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Concat ( Again )
- From: Robert Koberg <rob at koberg dot com>
- Date: Mon, 26 Feb 2001 06:58:18 -0800
- References: <3A9A1B9E.DF05BFDD@sunaimed.univ-rennes1.fr>
- Reply-To: xsl-list at lists dot mulberrytech dot com
The problem is your are using strings. So it should be (note the single
quotes wrapping the string):
<xsl:variable name="Named"><xsl:value-of
select="'Picture/Name'"/></xsl:variable>
<xsl:variable name="Located"><xsl:value-of
select="'Picture/Location'"/></xsl:variable>
You would not need the single quotes if the string comes in as a variable of
course:
<xsl:variable name="Named"><xsl:value-of
select="$picture.name"/></xsl:variable>
<xsl:variable name="Located"><xsl:value-of
select="$picture.location"/></xsl:variable>
----- Original Message -----
From: "Samuzeau Pascal" <samuzeau@sunaimed.med.univ-rennes1.fr>
To: "XML" <xsl-list@lists.mulberrytech.com>
Sent: Monday, February 26, 2001 1:02 AM
Subject: [xsl] Concat ( Again )
> Hi,
>
> I receive some answers and I have tried, but I get the same problem :
>
> I have change the writtent as :
>
> I have the XML :
>
> <Picture>
> <Name>PictureName</Name>
> <Location>PictureLocation></Location>
> </Picture>
>
> And the XSL :
>
> ( I have to use of Name and Location for some reasons into my template )
>
> <xsl:variable name="Named"><xsl:value-of select="Picture/Name"
> /></xsl:variable>
> <xsl:variable name="Located"><xsl:value-of select="Picture/Location"
> /></xsl:variable>
>
> <xsl:variable name="URL" select="concat($Located,$Named)"
> /></xsl:variable>
>
> < A HREF="{$URL}" > ........
>
> But this doesn't work, I get HREF="concat($Located,$Named)">
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list