Content XML Schema Updates - Eonic/ProteanCMS GitHub Wiki
When modifying a Content/Directory XForm for a specific content type, you may need to include additional nodes in the XML schema. To ensure this change is reflected in the existing XML content stored in the database, you must update the existing content by adding the new empty nodes.
Fortunately, ProteanCMS provides a tool to handle this.
-
Navigate to the Upgrade Tool
Go to:
Admin > Setup > Maintenance > Upgrade Content
-
Create an XSLT File
You will need to create an XSLT file that will run against each content item to perform the upgrade. Examples of past XSLT files used for upgrading earlier versions of ProteanCMS can be found here:
/ewcommon/xsl/upgrades
-
Select the Content Type and XSLT
- Select the content type you want to upgrade.
- Select the XSLT file you created.
-
Test the XSLT Transformation
- Use the Show XML option first. This will display the before and after views of the XML for the first 50 records affected by the XSLT transform.
- Review the changes carefully.
-
Apply the Changes
If you are satisfied with the transformation, run the process again with the Save Changes option selected to apply the changes across all records.