Alex Milowski wrote:
> I can create a text-field for an attribute quite easily.  Is it possible 
> to edit
> attributes in the same "style" as regular textual content of elements is 
> edited?
> 
> For example, if I have an empty element:
> 
>    <copyright year="nnnn"/>
> 
> I'd want to have it look the same as if the element was:
> 
>    <copyright><year>nnnn</year></copyright>

No.

I understand your question. Text field controls embedded in the document 
view are not as comfortable to use as native editing in XXE.

We have imagined 2 ways for fixing this:

[1] Completely rewrite XXE and treat attributes like child elements.

[2] Specify in the XXE configuration file, an XSLT transformation which 
is applied to the document just after opening it (and the inverse XSLT 
transformation which is applied to the document just before saving it).

Such XSLT transformation could replace attribute "year" by a child element.

It is too late for [1]. We should have treated attributes and elements 
uniformly from the very beginning.

[2] has been rejected because it is tedious and error prone for the 
power user who creates the XXE configuration.


Reply via email to