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() &lt; 20]">
>
> rather be e.g.
>
> <xsl:for-each
> select="koncertinfo/concerts/concert[contains(normalize-space(translate(genre/genrename,'ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅ','abcdefghijklmnopqrstuvwxyzæøå')),
> normalize-space('rock'))  ][position() &lt; 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.