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

RE: Calculations in XSL

Subject: RE: Calculations in XSL
From: "Alex Pibworth" <alex@xxxxxxxxxx>
Date: Mon, 25 Oct 1999 17:05:53 +0100
pibworth
>This is using the current XSLT spec. The Microsoft engine is a year out of
>date.

Thank you Jon, but I still get 'Keyword xsl:variable may not be used here.'

You say you are using the current XSLT spec - maybe that is what is wrong
with my document.  I am linking to:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"
xmlns:HTML="http://www.w3.org/Profiles/XHTML-transitional">

Is this now out of date?

cheers alex




-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Jon Smirl
Sent: Monday, October 25, 1999 3:40 PM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: Re: Calculations in XSL


From: Alex Pibworth <alex@xxxxxxxxxx>
> I need to add two values together, both are attributes.  I have seen
several

<xsl:variable name="a" select="number('2')"/>
<xsl:variable name="b" select="number('5')"/>
<xsl:variable name="sum" select="$a + $b"/>
sum is <xsl:value-of select="$sum"/>

To access an attribute:

<mytag myattrib="9"/>
<xsl:variable name="a" select="number(mytag/@myattrib)"/>

This is using the current XSLT spec. The Microsoft engine is a year out of
date.

Jon Smirl
jonsmirl@xxxxxxxxxxxx



 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.