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

RE: newbie: xsl:key and summation of substrings

Subject: RE: newbie: xsl:key and summation of substrings
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 10 Dec 2001 12:07:01 -0000
xslt summation
> As said, I am a newbie. As a result, your well-intended
> response is too
> general to be useful. Thanks all the same.
>
> I agree, simple stuff like this should be in an appendix to
> the spec for
> all to see.
> I am wasting mega cycles on this baisc point.
>
> It seems to me that lack of useful examples seduces people onto
> constructing proprietary XSLT extensions, weakening the language as a
> standard.
> I am interested in a 100% XLST 1.0 solution .

The only 100% portable solution is to use a recursive named template. An
example of how to do this is on page 535 of my XSLT Programmer's Reference
(Wrox Press) 2nd edition.

Dimitre's suggestion was that instead of writing your own recursive
template, you re-use a general-purpose one that he has made available
(written in standard XSLT). Because his solution was designed to be general
purpose, it uses some rather advanced techniques which are indeed 100%
portable, but it may not be obvious to a beginner quite how they work.

The reason people have constructed proprietary extension functions to XSLT
is not for lack of examples, it is because some things are just difficult to
do within standard XSLT 1.0. It is, after all, only version 1.0.

Mike Kay




 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.