Package org.opencms.xml.content
Class CmsXsltContext
- java.lang.Object
-
- org.opencms.xml.content.CmsXsltContext
-
public class CmsXsltContext extends java.lang.Object
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
Constructors Constructor Description CmsXsltContext(CmsObject cms)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.NodeList
convertType(org.w3c.dom.NodeList value, java.lang.String sourceTypeName, java.lang.String targetTypeName, java.lang.String elementName)
XSLT extension function that converts the XML for a value between two different OpenCms content value types.
-
-
-
Constructor Detail
-
CmsXsltContext
public CmsXsltContext(CmsObject cms)
Creates a new instance.- Parameters:
cms
- the CMS context
-
-
Method Detail
-
convertType
public org.w3c.dom.NodeList convertType(org.w3c.dom.NodeList value, java.lang.String sourceTypeName, java.lang.String targetTypeName, java.lang.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
-
-