Subject: <?xml version="1.0"?> <a> <b> <c>2</c> <d>4</d> From: Brian Chrisman <brian.chrisman@xxxxxx> Date: Tue, 29 Jun 2004 16:32:21 -0700 |
</b> <b> <c>3</c> <d>6</d> sum() applied to a product Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Okay.. I told someone I could do this in a simple xpath expression <?xml version="1.0"?> <a> <b> <c>2</c> <d>4</d> </b> <b> <c>3</c> <d>6</d> </b> </a> Where the xpath was to return (2*4) + (3*6) = 26 I made several attempts with xpath's sum() function (using 1.0) and couldn't get it. I couldn't even come up with an expression that I thought might work.. even though I tried several which I was certain would fail (which did). Any ideas?
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Testing for a following s, Wright, Steve | Thread | sum() applied to a product, Brian Chrisman |
Re: [xsl] Testing for a following s, Brian Chrisman | Date | sum() applied to a product, Brian Chrisman |
Month |