Hi,
You can use also a stylesheet, base than on a recursive copy template
and add in a rule to insert the element you want in the desired
location. Then you can configure a scenario that applies this stylesheet
on a file and saves the result in a different folder, in a file with the
same name as the initial file (you can use editor variables for that
${cfn} expands to the current file name for instance). Then you can
apply a batch transformation on all the files you want to transform from
the project panel and you will get the updated files in the other folder.
If you use Saxon 8 for instance then you can do the whole processing in
a single stylesheet if you use the Saxon collection function
implementation to access all the files in a folder and you can use XSLT
2.0 support for writing output files to get each updated content written
in a file on disk.
Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina - http://aboutxml.blogspot.com/
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Brett Zamir wrote:
Go to Find-> Find/Replace in Files... then under "Search Path" choose
the directory where the files are...
Brett
Kolodney, Uri wrote:
Hello,
Is there a way to batch edit files? For example, I'd like to add the
line:
"<dcvalue element="x" qualifier="y">zzzz</dcvalue>
To each of the 1000 files I have in a specific directory. Is this
possible?
Thanks,
Uri Kolodney
The University of Texas Libraries
------------------------------------------------------------------------
_______________________________________________
oXygen-user mailing list
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user
------------------------------------------------------------------------
_______________________________________________
oXygen-user mailing list
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________
oXygen-user mailing list
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user