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

---
    <p class="both_label_and_attribute_editor">Tests interaction between
    label and attribute editor.</p>
---

---
p.both_label_and_attribute_editor {
    background-color: rgb(220,255,220);
    margin-top: 0;
}

p.both_label_and_attribute_editor:before {
    display: block;
    margin-top: 1.33ex;
    content: "dir=" label(xpath, "@dir")
             " \2190  dir: " text-field(attribute, dir)
             " \2192  dir=" label(xpath, "@dir");
    background-color: rgb(220,255,220);
    color: gray;
}
---

where p is simply an XHTML paragraph.

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.

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



Yves Forkl wrote:
> My environment:
> 
> XXE V. 2.11
> Linux 2.4.20-28.9 (RedHat 9A)
> Java 1.5.0_02
> Gnome 2.2.0
> metacity 2.4.34
> 
> 
> Steps to reproduce the bug:
> 
> - Develop a stylesheet that makes use of the construct label(xpath,
>   "@test") to display the value of this somewhere in the document.
>   Using attr(test) instead does not provoke the bug. Define for
>   attribute "test" an editing form using value-editor().
> 
> - Open a document with such a structure and start editing attribute
>   "test" using the form generated by value-editor(). It is necessary
>   to really modify the content. (Editing the attribute using XXE's
>   attribute table editor does not lead to the bug: the editing action
>   is continued after reloading the stylesheet).
> 
> - Before hitting Enter to confirm the new value, have XXE reload the
>   CSS stylesheet using Style | [stylename]. Sometimes the bug occurs
>   even after having pressed Enter! Sometimes it is even sufficient to
>   call Reload Stylesheet, when the attribute has been changed
>   recently, no matter which method was used.

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

> - Consequence: XXE says "Reloading Styled View..." and, caught by the
>   dependency between the value change and the label instruction in the
>   reloaded stylesheet, will be busy for ever and will not respond to
>   any key or clicking event. (Closing the document window using
>   Ctrl-Shift-W works, but not using the mouse.)

Reply via email to