literal @class comparisons in theme.xsl

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

literal @class comparisons in theme.xsl

Adrian Baker-2
There's a couple of places in theme.xsl where it assumes there are no
user-defined classes when checking the @class attribute, eg

    xhtml:label[@class = 'xforms-label']

This won't match if the class is 'my-custom-class xforms-label', for
example. These sorts of checks should be:

    xhtml:label[tokenize(@class, ' ')= 'xforms-label']

Adrian




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: literal @class comparisons in theme.xsl

Erik Bruchez
Administrator
Makes sense, I fixed that.

-Erik

Adrian Baker wrote:

> There's a couple of places in theme.xsl where it assumes there are no
> user-defined classes when checking the @class attribute, eg
>
>    xhtml:label[@class = 'xforms-label']
>
> This won't match if the class is 'my-custom-class xforms-label', for
> example. These sorts of checks should be:
>
>    xhtml:label[tokenize(@class, ' ')= 'xforms-label']
>
> Adrian
--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws