This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: String comparisons fail unexpectedly: how can 'USA' not be 'USA'?


TSchutzerWeissmann@uk.imshealth.com wrote:
> Is there a way of using keys instead?

Look up normalize-space()may solve you problem:
 <xsl:key name="cc" match="Corporation"
   use="normalize-space(Access/Billcodes/Billcode/@Country)"/>
Or not, be careful if there are multiple Billcode elements.
Don't forget to normalize space while invoking the key, just to
avoid surprises:
 select="key('cc',normalize-space($cty))"

HTH
J.Pietschmann

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]