The Convert command (Edit > Convert...) nicely maintains the content of
the converted element (and in fact is constrained so that the only
options for the convert are the ones that are legal given the content
model of the element).  I would like to ask for an enhancement to this
command.  Would it make sense to also maintain the attribute values of
the converted element (at least where attribute `n` is allowed on both
the current and the target element)?

I stumbled across this desire when performing a fairly simple action.  I
needed to convert a `section` of a DocBook document that I was writing
into an `appendix`.  Conveniently (and by design), both of these have
the same content model, so after moving the section to the end of the
document, I could easily convert it to an `appendix`.  However, after
converting it, cross references to it were broken, as it no longer had
its `id` attribute set.  At least in this case it makes sense to me to
maintain the attribute, and I think it would make sense in other cases
as well.

Take care,

    John L. Clark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20060622/4a0f8722/attachment.sig
 

Reply via email to