[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: Thu, 18 Aug 2005 18:22:01 +1000
xslt variable increment
On 8/18/05, omprakash.v@xxxxxxxxxxxxx <omprakash.v@xxxxxxxxxxxxx> wrote:
>
>
>
>
>
> Hi Dimitre,
>
>       No. I definitely had no idea of making a joke. This is based on some
> code that DC wrote for me and other on this list  and a lengthy discussion
> that was started by James Fuller on using the namespace URI as a real
> location of some resource.

I know the idea, which is called the Piez method.

However, from what you wrote it followed that in order to produce the
wanted result using XSLT *at all cases*, one *had* to have a
stylesheet xml document with that many nodes etc.

This, of course, is not true and sounds like a joke.

We have to pay attention to what we write.

Cheers,
Dimitre Novatchev.

> At that time, it had occurred to me that if it
> came to something could be useful in situations like this. Even Michael kay
> at one point has proposed a similar solution.  Maybe my adaptation of  this
> type of solution for a problem of this sort is wrong and you or someone
> else could clarify on this.
>
> <xsl:for-each select="(//*)[position() &lt;= $depth]">
> <td> </td>
> </xsl:for-each>
>
> Which by the way was given by DC when I asked him how to indent the current
> node based on how deep it is in the input tree.
>
> Excuse me for the length explanation.
>
> Cheers,
> prakash
>
>
>
>
>
>
>
>
>
>
>
>
>
>                      Dimitre
>                      Novatchev                To:
xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>                      <dnovatchev@gmai         cc:      (bcc:
omprakash.v/Polaris)
>                      l.com>                   Subject: Re:  Increment a
variable
>
>                      08/18/2005 11:53
>                      AM
>                      Please respond
>                      to xsl-list
>
>
>
>
>
>
> On 8/18/05, omprakash.v@xxxxxxxxxxxxx <omprakash.v@xxxxxxxxxxxxx> wrote:
> >
> >
> >
> >
> >
> > Hi Chandu,
> >
> >       XSLT is a functional programming language and not a procedural one.
> > Hence, what you ask has to be handled differently. Your input xslt has to
> > have atleast as many nodes as the upper limit in the for loop (1000 in
> your
> > case) for this to work. Or in your case since you want the var reset for
> > every 100
> > nodes, 10 nodes atleast 100 deep I would imagine.
>
> Are you joking?
>
>
> Cheers,
> Dimitre Novatchev
>
>
>
>
>
> This e-Mail may contain proprietary and confidential information and is sent
for the intended recipient(s) only.
> If by an addressing or transmission error this mail has been misdirected to
you, you are requested to delete this mail immediately.
> You are also hereby notified that any use, any form of reproduction,
dissemination, copying, disclosure, modification,
> distribution and/or publication of this e-mail message, contents or its
attachment other than by its intended recipient/s is strictly prohibited.
>
> Visit Us at http://www.polaris.co.in
>
>


--
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.