|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: String comparisons fail unexpectedly: how can 'USA
>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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








