Subject: Re: [xsl] Force the case of a set of strings From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Mon, 29 Oct 2012 13:25:56 -0400 |
Team,
I have a sequence of strings which are all 'ok' or 'fail' where I want to force the case of all of them.
When I say they are all 'ok' or 'fail' I actually mean they may be 'ok', 'OK', 'Ok', 'Fail', 'fail', 'FAIL' etc.
I use
<xsl:variable name="ok-fails-1" select="$states/normalize-space(column[7])" />
to extract the sequence from my original xml.
If I say
<xsl:variable name="ok-fails-1-lc" select="lower-case( $ok-fails-1 )" />
then I get told that lower-case can only take a string as its parameter, not a sequence.
Can anyone suggest how I might process my sequence to return a sequence but have each entry passed through lower-case.
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.
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.
-- 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Force the case of a set of st, Kerry, Richard | Thread | RE: [xsl] Force the case of a set o, Kerry, Richard |
[xsl] Force the case of a set of st, Kerry, Richard | Date | Re: [xsl] analyze-string question, Wendell Piez |
Month |