KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > w3c > xsl > XSLTContext


1 package org.w3c.xsl;
2
3 import org.w3c.dom.Node JavaDoc;
4 import org.w3c.dom.Document JavaDoc;
5
6 /**
7 * Interface to be used with XSLT extension functions written in Java
8 */

9
10 public interface XSLTContext {
11     
12     /**
13     * Return the context node from the XPath expression context
14     */

15     
16     Node JavaDoc getContextNode();
17     
18     /**
19     * Return the context position from the XPath expression context
20     */

21     
22     int getContextPosition();
23
24     /**
25     * Return the context size from the XPath expression context
26     */

27     
28     int getContextSize();
29     
30     /**
31     * Return the current node from the XSLT context: the same as
32     * the result of calling the current() function from the XPath
33     * expression context
34     */

35     
36     Node JavaDoc getCurrentNode();
37
38     /**
39     * Return a Document to be used for creating nodes
40     */

41     
42     Document JavaDoc getOwnerDocument();
43     
44     /**
45     * Return an object representing the value of the system property
46     * whose expanded name has the specified URI and local part
47     */

48
49     Object JavaDoc systemProperty(String JavaDoc namespaceURI, String JavaDoc localName);
50     
51     /**
52     * Return the string-value of the specified Node
53     */

54     
55     String JavaDoc stringValue(Node JavaDoc n);
56     
57 }
58         
59            
60     
Popular Tags