My dork short presented how to write a simple XSLT to perform bulk changes to a group of XML instances. This method helps you avoid the validity problems that can be introduced by using grep or other search and replace tools.
This stylesheet is XSLT 2.0. Works with a schema valid EAD instance and includes a few example templates for making changes. The changes you make can get as complicated as you want within the bounds of XPath and XSLT. For some fairly powerful stuff, get to know the various XSLT functions. This methodology could be adapted for any XML schema by changing the <xsl:stylesheet> namespace declarations.
For more information, feel free to contact me: Mike Rush / michael.rush@yale.edu / http://twitter.com/mike_rush
Comments (0)
You don't have permission to comment on this page.