Hello Nathan,
What you can do using the SDK is to intercept ALL the insertion
events by using an AuthorDocumentFilter [1]. Whenever a node
(insertNode()) or a fragment (insertFragment()) is inserted you
can check and see if it's an "xref" and add values for the "scope"
and "type" attributes. Again, you wont know if the "xref" was
inserted using DnD or another action in Oxygen (if that's relevant
for you). Just to be sure I understood the scenario: when these
attributes are missing you want to explicitly specify these
attributes with their default as the value? In which scenario is
this needed? perhaps this scenarios is something that we too
should take into account...
[1]
http://www.oxygenxml.com/doc/ug-editor/#topics/api_faq_use_typograhic_quotation_marks.html
Best regards,
Alex
--
Alex Jitianu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
On 01-May-14 5:56 PM, Nathan wrote: