[oXygen-sdk] Problem with the "insert.cross.reference" action in Oxygen Author 15.2

Alex Jitianu alex_jitianu at sync.ro
Mon May 5 08:26:32 CDT 2014


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:
> 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 at oxygenxml.com
> http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-sdk/attachments/20140505/805e5143/attachment.html>


More information about the oXygen-sdk mailing list