Re: XSLT/XPATH problem, possible bug
"Michael Hansen" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Message-ID | <[email protected]> |
> 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]">
Well, the idea is that all childnodes in the concert should be checked, i.e.
the concert as such is searched for the term. It works if I make a testpage
and use the javascript way of transforming the xml and xsl, but thats really
what I don't want to do - I want the browser to take care of it.
/Michael