logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Preserving XHTML class attribute: msg#00062

Subject: Preserving XHTML class attribute
Hi all,

I have some span elements with class attributes in my XForms. I use xhtml as the namespace alias, so the typical element start looks like this: <xhtml:span class="r1">. This is output as <span>. However, with the namespace on the attribute as well (<xhtml:span xhtml:class="r1">) is output as <span xhtml:class="r1">. So none of the solutions work, for styling with CSS*.

*Of course, I can use sth like [xhtml:class="r1"], but AFAIK this doesn't work in IE.

Any suggestions? Is this difficult to correct for the general case in the XSLT?

--
Victor Engmark
"Quid quid latine dictum sit, altum viditar" - "What is said in latin, sounds profound"


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click


<Prev in Thread] Current Thread [Next in Thread>