This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: adding variables
- From: "cutlass" <cutlass at secure0 dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 12 Mar 2002 21:34:49 -0000
- Subject: Re: [xsl] adding variables
- References: <20020312210551.16588.qmail@web12701.mail.yahoo.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
well u could use
<path>
<xsl:attribute name="d">
do u work in here, instead of 'inside an attribute'
</xsl:attribute>
</path>
chow, jim fuller
----- Original Message -----
From: "bryan hansen" <bh5k@yahoo.com>
To: <XSL-List@lists.mulberrytech.com>
Sent: Tuesday, March 12, 2002 9:05 PM
Subject: [xsl] adding variables
> I want to have an offset stored so that I can move
> around all off my components based on this offset. I
> have created a variable:
>
> <xsl:variable name="y_offset">
> <xsl:value-of select="20"/>
> </xsl:variable>
>
> and want to add to the offset. Something to the effect
> of:
>
> <path d="M 35, {$y_offset} + 25 ....
>
> The output of this command is 20 + 25 though and not
> 45 like I would like it to be. I can't use the
> <xsl:valueof> because it is an attribute.
>
> Any recommendations on how to do this or a better way
> to do this would be greatly appreciated.
>
> Thanks,
>
> Bryan
>
> __________________________________________________
> Do You Yahoo!?
> Try FREE Yahoo! Mail - the world's greatest free email!
> http://mail.yahoo.com/
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list