
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_quotat... 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:
Thanks Alex, I think we are good with the format attribute. With respect to my second part of the mail, is there any way to add defaulted "scope" and "type" attribute values to the xref when they are dragged-and-dropped from the project/ditamaps manager pane? Can this be done using the Author SDK?
Regards, Nathan
_______________________________________________ oXygen-sdk mailing list oXygen-sdk@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk