| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Whenever you search in PBworks, Dokkio Sidebar (from the makers of PBworks) will run the same search in your Drive, Dropbox, OneDrive, Gmail, and Slack. Now you can find what you're looking for wherever it lives. Try Dokkio Sidebar for free.

View
 

Simple XSLT for XML Maintenance

Page history last edited by Michael Rush 13 years, 3 months ago

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.