<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 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 > Source >
To Lower Case action. You can assign a shortcut to this action in
Options > 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>
<?xml version="1.0" encoding="UTF-8"?><br>
<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>><br>
<xsl:output method="xml"/><br>
<!-- Match document --><br>
<xsl:template match="/"><br>
<xsl:apply-templates mode="copy" select="."/><br>
</xsl:template><br>
<br>
<xsl:template
match="@fileref[parent::*:imagedata/parent::*:imageobject/parent::*:mediaobject]"
mode="copy"><br>
<xsl:attribute name="fileref" select="lower-case(.)"/><br>
</xsl:template><br>
<!-- Deep copy template --><br>
<xsl:template match="node()|text()|@*" mode="copy"><br>
<xsl:copy><br>
<xsl:apply-templates mode="copy" select="@*"/><br>
<xsl:apply-templates mode="copy"/><br>
</xsl:copy><br>
</xsl:template><br>
<!-- Handle default matching --><br>
<xsl:template match="*"/><br>
</xsl:stylesheet><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> </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> </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:"Times New
Roman","serif";color:#000096" lang="EN-US"><mediaobject></span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:black" lang="EN-US"><br>
</span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:#000096" lang="EN-US"><imageobject></span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:black" lang="EN-US"><br>
</span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:#000096" lang="EN-US"><imagedata</span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:#F5844C" lang="EN-US">
fileref</span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:#FF8040" lang="EN-US">=</span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:#993300" lang="EN-US">"../images/AbcdEfg.png"</span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:#F5844C" lang="EN-US">
width</span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:#FF8040" lang="EN-US">=</span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:#993300" lang="EN-US">".81cm"</span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:#000096" lang="EN-US">/></span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:black" lang="EN-US"><br>
</span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:#000096" lang="EN-US"></imageobject></span><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:black" lang="EN-US"><br>
</span><span style="font-size:12.0pt;font-family:"Times
New Roman","serif";color:#000096"
lang="EN-US"></mediaobject><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Times New
Roman","serif";color:#000096" lang="EN-US"><o:p> </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’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> </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> </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> </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> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </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>