<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello Matt,<br>
    <br>
    Unfortunately there is no XML specialized feature in Oxygen for
    setting an attribute for a set of files. We do have a feature
    request for this, but it has not been implemented yet.<br>
    <br>
    However, one workaround for this is to use the Find/Replace in Files
    with the appropriate regular expressions and filters on the DITA Map
    hierarchy. It's a text replacement tool, but it is XML-aware and it
    supports XPath filters.<br>
    <br>
    Steps:<br>
    1. First create (or make sure you have) a backup copy of your files
    (preferably the entire project), just in case anything goes wrong.<br>
    <br>
    2. If you already have xml:lang set on the root element of some of
    the files, you should first remove them (otherwise skip to step 3):<br>
    In the DITA Maps Manager right click on the map root and from the
    contextual menu pick <b>Find/Replace in Files</b>. Fill the fields
    this way:<br>
    <b>Text to find: </b><i>.*</i><br>
    <b>Regular expression</b><b>:</b> Enabled<br>
    <b>Restrict to XPath:</b> <i>/*/@xml:lang</i><br>
    <b>Replace with:</b> (empty)<br>
    <b>Scope:</b> Current DITA Map hierarchy<br>
    <b>Include </b><b>files:</b> *.*<br>
    Press <b>Replace All...</b> and Preview the operation to make sure
    that it does what is expected of it (it should remove the existing
    xml:lang attributes).<br>
    <br>
    3. To add the xml:lang set on the root element of the files after
    the last attribute, use again the <b>Find/Replace in Files</b> and
    use the following field values:<br>
    <b>Text to find: </b><i>.*</i><br>
    <b>Regular expression</b><b>:</b> Enabled<br>
    <b>Restrict to XPath:</b> <i>/*/@*[last()]</i><br>
    <b>Replace with:</b> <i>$0 xml:lang="en_US"</i> (modify the value
    to the one you want to set)<br>
    <b>Scope:</b> Current DITA Map hierarchy<br>
    <b>Include </b><b>files:</b> *.*<br>
    Press <b>Replace All...</b> and Preview the operation to make sure
    that it does what is expected of it (xml:lang should be added after
    the last attribute of each root element ).<br>
    <br>
    Regards,<br>
    Adrian<br>
    <pre class="moz-signature" cols="72">Adrian Buza
oXygen XML Editor and Author Support

Tel: +1-650-352-1250 ext.202
Fax: +40-251-461482
<a class="moz-txt-link-abbreviated" href="mailto:support@oxygenxml.com">support@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com">http://www.oxygenxml.com</a></pre>
    <br>
    <div class="moz-cite-prefix">On 04.11.2013 19:32, KAATMAN Matthew
      wrote:<br>
    </div>
    <blockquote
cite="mid:32463_1383586368_5277DA3F_32463_37_1_C283C519E1796046AE21A7A1F60882F2159D067D6A@EXDCVYMBBMR009.eq1bmr.local"
      type="cite">
      <pre wrap="">Is there a way to select a map and apply an xml:lang across every file in that map to the main topic type tag?

Thanks!
Matt

AVIS : Ce courrier et ses pieces jointes sont destines a leur seul destinataire et peuvent contenir des informations confidentielles appartenant a bioMerieux. Si vous n'etes pas destinataire, vous etes informe que toute lecture, divulgation, ou reproduction de ce message et des pieces jointes est strictement interdite. Si vous avez recu ce message par erreur merci d'en prevenir l'expediteur et de le detruire, ainsi que ses pieces jointes.
NOTICE: This message and attachments are intended only for the use of their addressee and may contain confidential information belonging to bioMerieux. If you are not the intended recipient, you are hereby notified that any reading, dissemination, distribution, or copying of this message, or any attachment, is strictly prohibited. If you have received this message in error, please notify the original sender immediately and delete this message, along with any attachments.


_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>

</pre>
    </blockquote>
    <br>
    <br>
  </body>
</html>