Package org.opencms.xml.content
Class CmsVersionTransformer
- java.lang.Object
-
- org.opencms.xml.content.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.
-
Constructor Summary
Constructors Constructor Description CmsVersionTransformer()
-
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.
-
-
-
Field Detail
-
XSL_PARAM_TRANSFORMATION_CONTEXT
public static final java.lang.String XSL_PARAM_TRANSFORMATION_CONTEXT
XSL parameter for passing a context object to version transformations.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CmsVersionTransformer
public CmsVersionTransformer()
-
-
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 contextdocument
- the document to transformcontentDefinition
- the content definition for which we are doing the conversion- Returns:
- the converted document
-
-