[XXE] Convert command and element templates

2010-03-29 Thread Benoit Maisonny
Hi,

Using the "convert" command (ctrl-T) in XXE, I would like to find other
element templates for the currently selected element. For example, we have
element templates for various kinds of numbered lists (XHTML ol) with lower
alpha, upper alpha, number, etc. When I select an ol and do "convert", I
would like to see not only ul but also the various ol templates.

It might be difficult for XXE to discover, in all situations, what template
the current element comes from. A simple solution could be to display all
element templates of the current element, as long as there is more than one
template.

A workaround in this case is of course to convert to ul and then convert
again to ol. But this would not be possible if ol was the only possible
target element for the conversion.

Is this already possible somehow?

Thanks,
Benoit


-- 
Benoit Maisonny
Director & Consultant  http://synclude.com
Synclude
-- next part --
An HTML attachment was scrubbed...
URL: 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20100329/c54d6b8b/attachment.htm
 


[XXE] Convert command and element templates

2010-03-29 Thread Hussein Shafie
Benoit Maisonny wrote:
> 
> Using the "convert" command (ctrl-T) in XXE, I would like to find other
> element templates for the currently selected element. For example, we
> have element templates for various kinds of numbered lists (XHTML ol)
> with lower alpha, upper alpha, number, etc. When I select an ol and do
> "convert", I would like to see not only ul but also the various ol
> templates.
> 
> It might be difficult for XXE to discover, in all situations, what
> template the current element comes from. 

*Conceptually*, in the *general* *case*, it does not make sense for the
convert command to make use of element templates.

By definition, the convert command copies the contents of the element to
be converted. Therefore it simply cannot use the contents of an element
template.



> A simple solution could be to
> display all element templates of the current element, as long as there
> is more than one template.
> 
> A workaround in this case is of course to convert to ul and then convert
> again to ol. But this would not be possible if ol was the only possible
> target element for the conversion.
> 
> Is this already possible somehow?
> 

This is currently not possible using command convert. (Otherwise this
would be documented. See
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/convert.html ).

I'm sorry but I don't see any way to implement what you want other than
writing a custom command. No need to develop in Java to solve this
problem. A macro-command should be able to do the job.