I'm sorry but there is currently no other way to do it.
Taivo Sarapik wrote:
> 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>
>
--
Hussein SHAFIE, hussein at pixware.fr,
Pixware, Immeuble Capricorne, 23 rue Colbert,
78180 Montigny Le Bretonneux, France,
Phone: +33 (0)1 30 60 07 00, Fax: +33 (0)1 30 96 05 23