[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: adding variables

Subject: Re: adding variables
From: "David N Bertoni/Cambridge/IBM" <david_n_bertoni@xxxxxxxxxx>
Date: Tue, 12 Mar 2002 13:36:27 -0800
adding variable xsl
How about:

   <xsl:variable name="y_offset" select="20"/>

   ...

   <path d="M 35, {$y_offset + 25}"/>

Dave



|---------+------------------------------------->
|         |           bryan hansen              |
|         |           <bh5k@xxxxxxxxx>          |
|         |           Sent by:                  |
|         |           owner-xsl-list@xxxxxxxxxxx|
|         |           rrytech.com               |
|         |                                     |
|         |                                     |
|         |           03/12/2002 01:05 PM       |
|         |           Please respond to xsl-list|
|         |                                     |
|---------+------------------------------------->
  >----------------------------------------------------------------------------------------------------------|
  |                                                                                                          |
  |        To:      XSL-List@xxxxxxxxxxxxxxxxxxxxxx                                                          |
  |        cc:      (bcc: David N Bertoni/Cambridge/IBM)                                                     |
  |        Subject:  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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.