This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Evaluating text from within an attribute tag
- From: "Joerg Heinicke" <joerg dot heinicke at gmx dot de>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 19 Mar 2002 20:53:23 +0100
- Subject: Re: [xsl] Evaluating text from within an attribute tag
- References: <20020319192911.11499.qmail@web12708.mail.yahoo.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Of course not. Between <xsl:attribute> and </xsl:attribute> there is only
text. The {} will not be interpreted, because it's only text too. Attribute
Value Templates are only possible in attributes (as we had it the last time:
d="M {$x_offset} {$y_offset} ..."). What you have to do, is either again
d="..." or <xsl:value-of select="$x_offset"/> and <xsl:value-of
select="$y_offset"/> in <xsl:attribute>.
Regards,
Joerg
> This looks similar to a question I asked earlier, but
> is infact different. I have a template that I call and
> pass in parameters and when I run the template they
> aren't getting evaluated, i.e:
>
> <xsl:template name="fill_path">
> <xsl:param name="x_offset" select="0" />
> <xsl:param name="y_offset" select="0" />
> <xsl:param name="fill_percentage" select="0" />
> <xsl:param name="fill_limit" select="0" />
>
> <xsl:attribute name="d">M {$x_offset} {$y_offset}
> v 73 a 2 2 0 1 1 -4 0 v -73 Z</xsl:attribute>
>
> </xsl:template>
>
> The output of this is "...{$x_offset} {$y_offset}..."
>
> Thanks for any help,
>
> Bryan
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list