Re: XSLT/XPATH problem, possible bug
Martin Honnen <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Organization | Liberty Development |
| Message-ID | <[email protected]> |
Michael Hansen wrote:
>>The seems to display fine for me here with Firefox 1.5.0.4 release
>>build on Windows XP. Do you have a URL where the XSLT transformation
>>does not display the result you want?
>
>
> Well, it displays all fine, but the "search" functionality, which basically
> just configures the xpath differently and the sorting (xsl:sort), doesn't
> work.
> If you try searching on e.g. 'Rock' the list should be filtered so it only
> shows concerts categorized as 'Rock' in genre. It works fine with Opera 9
> Beta and IE6.
Shouldn't the
<xsl:for-each
select="koncertinfo/concerts/concert[contains(normalize-space(translate(string(.),'ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅ','abcdefghijklmnopqrstuvwxyzæøå')),
normalize-space('rock')) ][position() < 20]">
rather be e.g.
<xsl:for-each
select="koncertinfo/concerts/concert[contains(normalize-space(translate(genre/genrename,'ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅ','abcdefghijklmnopqrstuvwxyzæøå')),
normalize-space('rock')) ][position() < 20]">
--
Martin Honnen
http://JavaScript.FAQTs.com/