Package org.opencms.xml.content
Class CmsVersionTransformer
java.lang.Object
org.opencms.xml.content.CmsVersionTransformer
Provides static methods for XML content version transformations.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
XSL parameter for passing a context object to version transformations. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
XSL_PARAM_TRANSFORMATION_CONTEXT
XSL parameter for passing a context object to version transformations.- See Also:
-
-
Constructor Details
-
CmsVersionTransformer
public CmsVersionTransformer()
-
-
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 contextdocument
- the document to transformcontentDefinition
- the content definition for which we are doing the conversion- Returns:
- the converted document
-