Hello,

question about spell checking.

I have a multi language xml-file and i use different
css-style-files to show selected language at once.
It works fine in XXE, but spell checker check all elements
in xml-file and doesn't ignore the css "display:none" marked
elements.

I think that spell checker should check only _viewable_ elements.

Is there any other way to do it?


**** xml-file start *****

<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/css" href="test_fi.css"?>
<?xml-stylesheet type="text/css" href="test_en.css" alternative="yes"?>
<?xml-stylesheet type="text/css" href="test_sv.css" alternative="yes"?>

<root>
<paragraph xml:lang="fi">suomenkielist? teksti?</paragraph>
<paragraph xml:lang="sv">svensk text</paragraph>
<paragraph xml:lang="en">English text</paragraph>
</root>

**** xml-file end ****


**** test_en.css start ****

paragraph:lang(fi){
     display: none;
}
paragraph:lang(sv){
     display: none;
}

**** test_en.css end ****

**** test_fi.css start ****

paragraph:lang(en){
     display: none;
}
paragraph:lang(sv){
     display: none;
}

**** test_fi.css end ****

**** test_sv.css start ****

paragraph:lang(en){
     display: none;
}
paragraph:lang(fi){
     display: none;
}

**** test_sv.css end ****


Taivo Sarapik <taivo.sarapik at smilehouse.com>

-- 
Smilehouse Oy              TEL: +358 -9- 25 122 10
Lauttasaarentie 54 B       FAX: +358 -9- 25 122 151
00200 Helsinki, Finland    WEB: http://www.smilehouse.com

Reply via email to