|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] AW: using global variables in templates
it's the second case. Peter -----Ursprüngliche Nachricht----- Von: TSchutzerWeissmann@xxxxxxxxxxxxxxxx [mailto:TSchutzerWeissmann@xxxxxxxxxxxxxxxx] Gesendet: Donnerstag, 12. September 2002 13:17 An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Betreff: RE: using global variables in templates and what does the input look like? <input> O what fun to be in sunny London ... </input> or, <input> <line>...</line> ... </input> The second case is much easier than the first. --- Tom > -----Original Message----- > From: Felix, Peter [mailto:peter.felix@xxxxxxxxxx] > Sent: 12 September 2002 12:08 > To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' > Subject: AW: using global variables in templates > > > Hi Tom > > One line has n elements and the 5. element of each line is a key. The > template makes an xml with this elements. The problem is that > if a key is > equal to a key from the line before the xml structure will be > different. > > Thanks > Peter > > -----Ursprüngliche Nachricht----- > Von: TSchutzerWeissmann@xxxxxxxxxxxxxxxx > [mailto:TSchutzerWeissmann@xxxxxxxxxxxxxxxx] > Gesendet: Donnerstag, 12. September 2002 11:24 > An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Betreff: RE: using global variables in templates > > > What does your input look like? Does it have one line per > element, or the whole thing in one element? > > Ta > Tom > > > -----Original Message----- > > From: Felix, Peter [mailto:peter.felix@xxxxxxxxxx] > > Sent: 12 September 2002 10:22 > > To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' > > Subject: AW: using global variables in templates > > > > > > Hi Tom > > > > I have a flat file with n lines witch have comma separated values. > > Now each template call handles a line. I want to use a value > > from the last > > line to compare it with the value from the actual line. > > > > Thanks > > Peter > > > > -----Ursprüngliche Nachricht----- > > Von: TSchutzerWeissmann@xxxxxxxxxxxxxxxx > > [mailto:TSchutzerWeissmann@xxxxxxxxxxxxxxxx] > > Gesendet: Donnerstag, 12. September 2002 10:59 > > An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > Betreff: RE: using global variables in templates > > > > > > Hi Peter > > > I want to store a value in a global variable each time a > template is > > > executed. I need this value when the template is executed the > > > next time. Is > > > there a way to do this. > > > > You're essentially asking if you can reassign variable values > > in xslt and the answer to that is no. Variables in xslt are set once > > and that's it. > > > > On the other hand, there's bound to be an xslt way of doing > > what you want, perhaps using recursion. What is it you want to do? > > > > TOm > > > > XSL-List info and archive: > http://www.mulberrytech.com/xsl/xsl-list > > > > > > XSL-List info and archive: > http://www.mulberrytech.com/xsl/xsl-list > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








