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

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Simple XSLT for XML Maintenance

Page history last edited by Michael Rush 14 years, 8 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.