Class CmsVersionTransformer

java.lang.Object
org.opencms.xml.content.CmsVersionTransformer

public class CmsVersionTransformer extends Object
Provides static methods for XML content version transformations.
  • Field Details

  • Constructor Details

  • Method Details

    • transformDocumentToCurrentVersion

      public static org.dom4j.Document transformDocumentToCurrentVersion(CmsObject cms, org.dom4j.Document document, CmsXmlContentDefinition contentDefinition)
      Converts an XML content document to the current version using the version transformation XSLT file which is configured in the schema.
      Parameters:
      cms - the current CMS context
      document - the document to transform
      contentDefinition - the content definition for which we are doing the conversion
      Returns:
      the converted document