Class CmsVersionTransformer


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

      Fields 
      Modifier and Type Field Description
      static java.lang.String XSL_PARAM_TRANSFORMATION_CONTEXT
      XSL parameter for passing a context object to version transformations.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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