[Home] [By Thread] [By Date] [Recent Entries]
At 2012-10-29 17:16 +0000, Kerry, Richard wrote:
Actually, it looks like you have a sequence of nodes in $states, not strings. When I say they are all 'ok' or 'fail' I actually mean they may be 'ok', 'OK', 'Ok', 'Fail', 'fail', 'FAIL' etc. $states/lower-case(normalize-space(column[7])) I remind my students in class that the "/" in "$nodes/expr" is an abbreviation for: for $n in $nodes return expr($n) ... which is exactly what you did in setting your first variable. I just took it one step further. I thought maybe I could pass it as a parameter to a moded apply-templates, but then I get warned that select needs a node, not a string, as its @select attribute. That shouldn't be necessary if the input is as simple as you imply. Subsequently I do distinct-values on it and the result of that I want only to contain 'ok' or 'fail', with no case variations remaining. The sequence above would be satisfactory input to distinct-values(). I hope this helps. . . . . . . . . . Ken -- Contact us for world-wide XML consulting and instructor-led training Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|

Cart



