Hi Hussein,

first let me say thank you to you for answering all of my questions, and 
particularly for having developed a test case for the CSS reloading problem.


> I have added the following test case to the document which is used to
> test label() and xpath()

[see new version in attached file]

> I have followed your instructions very precisely (using XXE V2.11 and
> V3.0, with Java 1.4.1_07 and 1.5.0_04, Metal LAF, on Linux
> 2.6.11.4-20a-default, mwm, SuSE 9.3) and didn't manage to reproduce the
> problem.
> 
> Note that using text-field() instead of value-editor() could not make a
> difference.

Unfortunately, it does make a difference: using value-editor() provokes 
the bug, text-field() does not. But you are right when you want to say 
that the bug must be independent of the type of "editor" that 
value-editor() creates: as opposed to text-field(), value-editor() 
causes the bug to occur just as well with the radio buttons that are 
generated for "dir" as for the ordinary text field that was created for 
the attribute I used when I discovered the bug.


> The bug certainly exists but the above test case seems to be not close
> enough to what you do in order to reproduce it.

I apologize for not having sent a test case right away. Now I have 
adapted your test case in order to reproduce the bug, and added a second 
variant (commented out) which is closer to the CSS instructions I 
initially used. To make testing easier, I have put together a complete 
XXE configuration for this test case, including a test document. You can 
find it in the attached ZIP archive called test_attr_editing_bug.zip.

With this test case, I am sorry that I am not able to reproduce exactly 
what I have seen, but XXE's reaction to this test case is quite similar 
to what I described, following these steps:

- Edit the attribute by means of the value editor, but DO NOT YET 
"confirm" the value: in a text field, type something, but don't press 
Enter; with radio buttons, use Tab/Shift-Tab, but don't hit Space.
(Editing the attribute using the stock attribute tool will not provoke 
the bug.)

- Reload the stylesheet using "Style | [current stylesheet name]".

- Consequence: XXE first changes the attribute value where it is 
displayed using label(xpath, ...). After this, the status bar first 
shows "Reloaded stylesheet...", then the message disappears. Everything 
seems to be fine at first glance.

However: the keyboard now seems to be completely blocked (no, hitting 
Escape won't help either), while using the mouse still works without 
fail. Looking closely, you can see that the attribute value editor no 
longer has the focus while generally this is the case after confirming 
the new value.

(The behaviour I observed before was slightly different: then, XXE did 
not display the new, but unconfirmed value, and never came back from 
trying to reload the stylesheet, always showing the hourglass. Using the 
mouse then was just as impossible as using the keyboard, except for 
closing the whole document with Ctrl-Shift-W.)

Hope this helps in finding the chestnut burr. ;-)


> What is "Reload Stylesheet"? Normally, it is "Style | [current
> stylesheet name]" which can be used to reload current style sheet.

You are of course right, there is no such command or menu item.

   Yves Forkl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_attr_editing_bug.zip
Type: application/zip
Size: 2154 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20050921/a3d37c39/attachment.zip
 

Reply via email to