Subject: RE: [xsl] need help with XSL statement (location path parenthesis problem) From: <Jarno.Elovirta@xxxxxxxxx> Date: Mon, 29 Mar 2004 16:29:05 +0300 |
Hi, > In the following XML document, I need to be able to query the > following: > > 1) The number of reports which are coded with either an "a" or "b" > where the last code (in document order) which is either an > "a" or "b" is > an "a". > > *correct number is 3 * count(reportlist/report[code[@type = 'a' or @type = 'b'][last()]/@type = 'a']) > 2) The number of reports which are coded with either an "a" or "b" > where the last code (in document order) which is either an > "a" or "b" is > a "b". > > *correct number is 1* count(reportlist/report[code[@type = 'a' or @type = 'b'][last()]/@type = 'b']) The "I'm on pain medication" disclaimer, Jarno - Delerium: Forever After
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] need help with XSL statem, Andrew Welch | Thread | [xsl] It's possible to give externa, Roberta Granata |
RE: [xsl] need help with XSL statem, Andrew Welch | Date | [xsl] It's possible to give externa, Roberta Granata |
Month |