Thursday, May 5, 2011

Commands to replace xdv namespaces with diazo

The plone.app.theming page is clear enough about migrating products from collective.xdv to plone.app.theming. Here are some commands to make the necessary namespace substitutions in xml files:


perl -p -i -e 's/xmlns=\"http:\/\/namespaces.plone.org\/xdv\"/xmlns=\"http:\/\/namespaces.plone.org\/diazo\"/' *.xml
perl -p -i -e 's/xmlns:css=\"http:\/\/namespaces.plone.org\/xdv\+css\"/xmlns:css=\"http:\/\/namespaces.plone.org\/diazo\/css\"/' *.xml

No comments: