#20689
Simon McMahon
Participant

Hi Yataka, I have another replace in files problem. I tried to record a macro to do the following

Replace this line:
<xsl:output method=”html” encoding=”UTF-8″ indent=”yes” doctype-public=”-//W3C//DTD XHTML 1.0 Transitional//EN” doctype-system=”http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”/&gt;

With this line:
<xsl:output method=”xml” encoding=”UTF-8″ indent=”yes” />

In over 100 .XSL files.

I thought given the ” quotes in the strings I would need to use a double quote to refer to each string, but this has failed.

Can you suggest the correct macro? My not working example is below. I can send you some sample .XSL files if you need them to test,

Thanks, Simon

// Replace in Files – XML header line (JavaScript)
editor.ReplaceInFiles( “”<xsl:output method=”html” encoding=”UTF-8″ indent=”yes” doctype-public=”-//W3C//DTD XHTML 1.0 Transitional//EN” doctype-system=”http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”/>”&#8221;,””<xsl:output method=”xml” encoding=”UTF-8″ indent=”yes” />””, “C:\\temp\\*.xsl”, eeReplaceBackup, eeEncodingSystemDefault, “*.bak”, “C:\\xmlBackup” );