Subject: Re: [xsl] If/then/else confusion From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 25 Dec 2012 15:34:22 -0500 |
I am trying to modify a sort-select statement I worked out a very long time ago. In the original, I wanted not to sort by a <Prefix> if it were an 'A' and this code does just that:
<xsl:sort select="if( Prefix!='A' ) then Prefix else ''"/>
I am not sure why its positive version does not work: <xsl:sort select="if( Prefix='A' ) then '' else Prefix"/>
I have no idea what is going on and would appreciate any help I can get.
-- 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 -> |
---|---|---|
Re: [xsl] If/then/else confusion, Mark Wilson | Thread | Re: [xsl] current() within a key el, Wendell Piez |
Re: [xsl] If/then/else confusion, Mark Wilson | Date | Re: [xsl] If/then/else confusion, Liam R E Quin |
Month |