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

Again: Incrementing variables

Subject: Again: Incrementing variables
From: "Joerg Colberg" <joerg.colberg@xxxxxxxxxxx>
Date: Wed, 6 Sep 100 14:40:32 EDT
xslt incrementing variables
Messieurs,

   thanks for all the responses which, however, weren't really too
helpful despite their references to dungeons, dragons, and the like
and despite the different alternative names for xsl:variable. ;-)
I found a solution for my problem - I had some other bug in my
code. Once I got rid off that it actually turned out I
can treat xsl:variables as... well, variables. In particular, I 
can write
<xsl:variable name="var" select="1"/> and then
<xsl:variable name="var" select="$var + 1"/>
But before I get lynched here I better stop my heresy. Anyway, if
this forum accepts suggestions for improvements for xslt, then
let me suggest to add "proper" variables to xslt - for the sake
of all those freaks (like me) who simply forget to think in terms
of scopes all the time. ;-)

- Joerg
Dr. Joerg M. Colberg
Econovo Software, Inc.
joerg.colberg@xxxxxxxxxxx

PS: The reason why I was dealing with all that stuff is the
    following: I want to process two branches of an xml tree
    at the same time. Both branches are isomorphic in their
    structure. One branch contains data, the other one contains
    processing information. I loop over the processing information
    (which defines my output in the broadest sense) and use
    "variables" to jump across the data branch. The reason for
    this weird stuff was that I wrote an xsl which generates an
    xsl from html. :-)


 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.