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

RE: Adding Several Numerical Attribute Values into One

Subject: RE: Adding Several Numerical Attribute Values into One Attribute
From: "Joe Heidenreich" <HeidenreichJ@xxxxxxxx>
Date: Mon, 11 Jul 2005 09:30:53 -0400
joe heidenreich
David,

>> I also have to use XML 1.0.
> I assume you mean xslt 1.

Yes, I did. I'm not quite fully awake yet.

Thanks for the more in-depth description of a variable too. And your
example:

>>You want the sum of all the colspan attributes that have a numeric
attribute plus the number of th elements without such an attribute

>> select="
>>   sum(th/@colspan[number(.)=number(.)])
>>    +
>>   count(th[not(@colspan) or not(@colspan[number(.)=number(.)])])
>>  "

Worked like a charm. And was much more efficent than my way. Thanks so
much.

-Joe

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.