<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello,<br>
    <br>
    Unfortunately that's not possible with the Find/Replace tool from
    Oxygen. It only supports Java regular expressions which do not have
    the ability to lowercase/uppercase (as&nbsp; opposed to Perl 5 regular
    expressions).<br>
    <br>
    Alternative solutions:<br>
    1. (for less then a hundred matches) Use "Find All" to obtain a list
    with all matches and then manually navigate them (Ctrl+Shift+] /
    Ctrl+Shift+[) and for each match use the Document &gt; Source &gt;
    To Lower Case action. You can assign a shortcut to this action in
    Options &gt; Menu Shortcut Keys (search in the filter for 'to
    lower').<br>
    <br>
    2. (for a hundred or more) Use an XSLT stylesheet that processes the
    XML and lowercases the values of those attributes @fileref).<br>
    e.g.<br>
    &lt;?xml version="1.0" encoding="UTF-8"?&gt;<br>
    &lt;xsl:stylesheet version="2.0"
    xmlns:xsl=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/XSL/Transform">"http://www.w3.org/1999/XSL/Transform"</a>&gt;<br>
    &nbsp;&nbsp;&nbsp; &lt;xsl:output method="xml"/&gt;<br>
    &nbsp;&nbsp;&nbsp; &lt;!-- Match document --&gt;<br>
    &nbsp;&nbsp;&nbsp; &lt;xsl:template match="/"&gt;<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:apply-templates mode="copy" select="."/&gt;<br>
    &nbsp;&nbsp;&nbsp; &lt;/xsl:template&gt;<br>
    &nbsp;&nbsp;&nbsp; <br>
    &nbsp;&nbsp;&nbsp; &lt;xsl:template
    match="@fileref[parent::*:imagedata/parent::*:imageobject/parent::*:mediaobject]"
    mode="copy"&gt;<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:attribute name="fileref" select="lower-case(.)"/&gt;<br>
    &nbsp;&nbsp;&nbsp; &lt;/xsl:template&gt;<br>
    &nbsp;&nbsp;&nbsp; &lt;!-- Deep copy template --&gt;<br>
    &nbsp;&nbsp;&nbsp; &lt;xsl:template match="node()|text()|@*" mode="copy"&gt;<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:copy&gt;<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:apply-templates mode="copy" select="@*"/&gt;<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;xsl:apply-templates mode="copy"/&gt;<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/xsl:copy&gt;<br>
    &nbsp;&nbsp;&nbsp; &lt;/xsl:template&gt;<br>
    &nbsp;&nbsp;&nbsp; &lt;!-- Handle default matching --&gt;<br>
    &nbsp;&nbsp;&nbsp; &lt;xsl:template match="*"/&gt;<br>
    &lt;/xsl:stylesheet&gt;<br>
    This will remove the DOCTYPE if any, so you'll have to manually put
    it back.<br>
    Also note that by default a transformation expands the attribute
    defaults (from the DTD/schema). You can disable that in the
    'Advanced options' (cogwheel button) of the Saxon 9 transformer when
    configuring the transformation scenario.<br>
    <br>
    Regards,<br>
    Adrian<br>
    <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 11.07.2013 11:48, Yudong Chen wrote:<br>
    </div>
    <blockquote
      cite="mid:B4C425069349D143A1EA08791E713E37113731C2@S10BE002.SH10.lan"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span lang="EN-US">Hello, </span>everyone,
          <o:p></o:p></p>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal"><span lang="EN-US">I was trying to find and
            change some attribute values to lowercase in hundreds of xml
            files, using the Find and Replace feature of Oxygen, but
            without success.
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">For example, there are
            many values reading like this (just example):<br>
            <br>
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:12.0pt;font-family:&quot;Times New
            Roman&quot;,&quot;serif&quot;;color:#000096" lang="EN-US">&lt;mediaobject&gt;</span><span
            style="font-size:12.0pt;font-family:&quot;Times New
            Roman&quot;,&quot;serif&quot;;color:black" lang="EN-US"><br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
            style="font-size:12.0pt;font-family:&quot;Times New
            Roman&quot;,&quot;serif&quot;;color:#000096" lang="EN-US">&lt;imageobject&gt;</span><span
            style="font-size:12.0pt;font-family:&quot;Times New
            Roman&quot;,&quot;serif&quot;;color:black" lang="EN-US"><br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
            style="font-size:12.0pt;font-family:&quot;Times New
            Roman&quot;,&quot;serif&quot;;color:#000096" lang="EN-US">&lt;imagedata</span><span
            style="font-size:12.0pt;font-family:&quot;Times New
            Roman&quot;,&quot;serif&quot;;color:#F5844C" lang="EN-US">
            fileref</span><span
            style="font-size:12.0pt;font-family:&quot;Times New
            Roman&quot;,&quot;serif&quot;;color:#FF8040" lang="EN-US">=</span><span
            style="font-size:12.0pt;font-family:&quot;Times New
            Roman&quot;,&quot;serif&quot;;color:#993300" lang="EN-US">"../images/AbcdEfg.png"</span><span
            style="font-size:12.0pt;font-family:&quot;Times New
            Roman&quot;,&quot;serif&quot;;color:#F5844C" lang="EN-US">
            width</span><span
            style="font-size:12.0pt;font-family:&quot;Times New
            Roman&quot;,&quot;serif&quot;;color:#FF8040" lang="EN-US">=</span><span
            style="font-size:12.0pt;font-family:&quot;Times New
            Roman&quot;,&quot;serif&quot;;color:#993300" lang="EN-US">".81cm"</span><span
            style="font-size:12.0pt;font-family:&quot;Times New
            Roman&quot;,&quot;serif&quot;;color:#000096" lang="EN-US">/&gt;</span><span
            style="font-size:12.0pt;font-family:&quot;Times New
            Roman&quot;,&quot;serif&quot;;color:black" lang="EN-US"><br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
            style="font-size:12.0pt;font-family:&quot;Times New
            Roman&quot;,&quot;serif&quot;;color:#000096" lang="EN-US">&lt;/imageobject&gt;</span><span
            style="font-size:12.0pt;font-family:&quot;Times New
            Roman&quot;,&quot;serif&quot;;color:black" lang="EN-US"><br>
          </span><span style="font-size:12.0pt;font-family:&quot;Times
            New Roman&quot;,&quot;serif&quot;;color:#000096"
            lang="EN-US">&lt;/mediaobject&gt;<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:12.0pt;font-family:&quot;Times New
            Roman&quot;,&quot;serif&quot;;color:#000096" lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">I succeeded in finding
            all of those values using regular expression but I don&#8217;t
            know how to replace them with their lowercase versions.<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Have you ever succeeded
            in doing the same thing? Would you please share the way you
            did it? Or it is just impossible with Oxygen?<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Thanks, <o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US">Yudong<o:p></o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
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>