Subject: [xsl] Using variables or parameters in tests From: Daniel O'Donnell <daniel.odonnell@xxxxxxxx> Date: Tue, 01 Mar 2005 16:17:31 -0700 |
I have a problem involving the reuse of xpath tests. Unless I've used the wrong search terms, the following doesn't seem to have been discussed in the archives.
The context is a financial xslt file that outputs itemised monthly reports from an unitemised year-to-date xml file. For each item in the output file, I need to do two tests: one for date and the other for some other feature (usually party [i.e. payer/payee]). This would be an example with no parameters or variables:
What I want to do is turn the two expressions in the test into independent variables so that I could do something like this:
-dan -- Daniel Paul O'Donnell, PhD Associate Professor of English University of Lethbridge Lethbridge AB T1K 3M4 Tel. (403) 329-2377 Fax. (403) 382-7191 E-mail <daniel.odonnell@xxxxxxxx> Home Page <http://people.uleth.ca/~daniel.odonnell/> The Digital Medievalist Project: <http://www.digitalmedievalist.org/>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xsl:template: error dupl, Gavin Henry | Thread | Re: [xsl] Using variables or parame, David Carlisle |
RE: [xsl] Separating XSLT 1 and 2 h, Pieter Reint Siegers | Date | [xsl] xhtml2fo.xsl not processing m, Random Blackburn |
Month |