Class CmsXsltContext

java.lang.Object
org.opencms.xml.content.CmsXsltContext

public class CmsXsltContext extends 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 Details

  • 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 value
      sourceTypeName - the original type of the value
      targetTypeName - the type which the value should be converted to
      elementName - the name that should be used
      Returns:
      a node list containing the converted XML value