Package org.opencms.xml.content
Class CmsXsltContext
java.lang.Object
org.opencms.xml.content.CmsXsltContext
Provides extension functions for use in XSLT version transformation files.
An instance of this class is meant to be used for only a single content conversion.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CmsXsltContext
Creates a new instance.- Parameters:
cms
- the CMS context
-
-
Method Details
-
convertType
public NodeList convertType(NodeList value, String sourceTypeName, String targetTypeName, String elementName) XSLT extension function that converts the XML for a value between two different OpenCms content value types.- Parameters:
value
- a node list that is expected to contain exactly one element, which should represent an XML content valuesourceTypeName
- the original type of the valuetargetTypeName
- the type which the value should be converted toelementName
- the name that should be used- Returns:
- a node list containing the converted XML value
-