org.w3c.xsl

Interface XSLTContext

public interface XSLTContext

Interface to be used with XSLT extension functions written in Java
Method Summary
NodegetContextNode()
Return the context node from the XPath expression context
intgetContextPosition()
Return the context position from the XPath expression context
intgetContextSize()
Return the context size from the XPath expression context
NodegetCurrentNode()
Return the current node from the XSLT context: the same as the result of calling the current() function from the XPath expression context
DocumentgetOwnerDocument()
Return a Document to be used for creating nodes
StringstringValue(Node n)
Return the string-value of the specified Node
ObjectsystemProperty(String namespaceURI, String localName)
Return an object representing the value of the system property whose expanded name has the specified URI and local part

Method Detail

getContextNode

public Node getContextNode()
Return the context node from the XPath expression context

getContextPosition

public int getContextPosition()
Return the context position from the XPath expression context

getContextSize

public int getContextSize()
Return the context size from the XPath expression context

getCurrentNode

public Node getCurrentNode()
Return the current node from the XSLT context: the same as the result of calling the current() function from the XPath expression context

getOwnerDocument

public Document getOwnerDocument()
Return a Document to be used for creating nodes

stringValue

public String stringValue(Node n)
Return the string-value of the specified Node

systemProperty

public Object systemProperty(String namespaceURI, String localName)
Return an object representing the value of the system property whose expanded name has the specified URI and local part