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

Re: Increment a variable

Subject: Re: Increment a variable
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Fri, 19 Aug 2005 06:33:30 +1000
xslt increment variable
> >I know the idea, which is called the Piez method.
>
> *Some* of us call it the "Piez method"... :->
>
> Others of us call it "the ugly hack once suggested by Wendell as a
> workaround to avoid having to code a recursion, as if that were so hard".
> (But as the European Editor of the TEI once said in another forum, there
> are those who love recursion, and those who find it terrifying.)

Wendell,

I love recursion, but I also love original thinking.

The Piez method, in particular.

The XSLT 1.0 Period was  typical for that it required some ingenious
tricks to fill and supplement the terseness and incompleteness of the
XSLT 1.0 language.

While this thread shows how very easy it is to misunderstand and abuse
these inventions, people, who invented such tricks to help everyone
else are the heroes of the XSLT 1.0 era.


Cheers,
Dimitre.

>
> Oh well: that's the risk you run when you suggest tricky ways of
> accomplishing things, I guess. It'll serve me right if in another five
> years, people who learned the "Piez method" in school are still using it in
> their XSLT 2.0, where there's no excuse for it at all. I'll probably be the
> one that has to fix their code.
>
> So then, Mike writes
>
> >This is "trick programming", some would say it's a dirty trick, and it's a
> >matter of personal taste whether you use it.
>
> ... and I hasten to add "some, including some (one) who thought of it".
>
> Cheers,
> Wendell
>
>
> ======================================================================
> Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
> Mulberry Technologies, Inc.                http://www.mulberrytech.com
> 17 West Jefferson Street                    Direct Phone: 301/315-9635
> Suite 207                                          Phone: 301/315-9631
> Rockville, MD  20850                                 Fax: 301/315-8285
> ----------------------------------------------------------------------
>   Mulberry Technologies: A Consultancy Specializing in SGML and XML
> ======================================================================
>
>


--
Cheers,
Dimitre Novatchev
---------------------------------------
Harry did not ask how Dumbledore knew; ...but Harry had long since
learned that bangs and smoke were more often the marks of ineptitude
than expertise.

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.