
Hi Shaun, Just to update this thread with a possible explanation: An Author action can invoke different Author operations in different XPath contexts. There are already some predefined Author operations. They are available when editing the Author action in the Document Type Definition edit dialog. The ones which can be used are: ro.sync.ecss.extensions.commons.InsertFragmentOperation ro.sync.ecss.extensions.commons.InsertOrReplaceFragmentOperation ro.sync.ecss.extensions.commons.SurroundWithFragmentOperation which are XML aware and thus can handle entities. You probably used the Author operations which are Text based like : ro.sync.ecss.extensions.commons.InsertOrReplaceTextOperation and which insert the entities escaped. In the Author page you also have an action called "Insert Entity" presenting a dialog in which you can set the name of the entity ("#xc1" in your case) and insert it at caret position. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 12/13/2010 9:47 PM, McDonald, Shaun wrote:
Hi,
I’m building Author frameworks and would like to provide editors with a finite list of special characters to insert via a toolbar.
I’ve noticed that defining a character’s value as the letter itself is fine, but our data models require that only hex values be used in XML documents. I’ve tried inserting the hex value directly into the action definition, but this only produces text in the Author view.
Example, an attempt to insert this,Á, results inÁin the XML. Of course, no frameworks feature is available in text view which seems to force the use of the Entity Panel.
How can I create a DocType Association action for inserting hex entities?
Thanks,
Shaun
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user