[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: String comparisons fail unexpectedly: how can 'USA

Subject: RE: String comparisons fail unexpectedly: how can 'USA' not be 'USA'?
From: TSchutzerWeissmann@xxxxxxxxxxxxxxxx
Date: Wed, 27 Feb 2002 14:26:46 -0000
download fail code cutlass
>ouch......

Thanks for your sympathy! In the end, I have had to use this:

  <xsl:variable name="current" select="."/>
          <xsl:for-each select="$contacts/TR">
		<xsl:variable name="corp" 
              select="./TD[5]/FONT/text()"/>
            <xsl:variable name="cty" 
              select="./TD[3]/FONT/text()"/>
<xsl:apply-templates 
 
select="$current/Corporation[@code=$corp]/Access[contains(Billcodes/Billcode
/@Country, $cty)]/Panels">
...

which is horrid.

Is there a way of using keys instead? I haven't had much luck with keys even
though previously they've been fine. For example, the Corporation/@code
doesn't have any problem with leading space so I tried this:

<xsl:key name="cc" match="Corporation" use="@code"/>   #before the first
template

and replace the apply-templates above with

xsl:apply-templates 
 
select="key('cc',$corp)/Access[contains(Billcodes/Billcode/@Country,
$cty)]/Panels"/>

and it broke, ie, no templates were applied past this one. what's going
wrong? 

Thanks for your help,
TOm

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.