<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello Nathan,<br>
      <br>
      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...<br>
      <br>
      [1]
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/doc/ug-editor/#topics/api_faq_use_typograhic_quotation_marks.html">http://www.oxygenxml.com/doc/ug-editor/#topics/api_faq_use_typograhic_quotation_marks.html</a><br>
      <pre class="moz-signature" cols="72">Best regards,
Alex
-- 
Alex Jitianu
<oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com">http://www.oxygenxml.com</a> </pre>
      On 01-May-14 5:56 PM, Nathan wrote:<br>
    </div>
    <blockquote
cite="mid:CAAA7NDiNYcup2aVcMTdkDjJmnkX_LjDYj9aRU9L1x4C+dfP1Kg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Thanks Alex, I think we are good with the format
        attribute.
        <div>   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?</div>
        <div><br>
        </div>
        <div>Regards,</div>
        <div>Nathan</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
oXygen-sdk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-sdk@oxygenxml.com">oXygen-sdk@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk">http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>