org.apache.xalan.lib
Class NodeInfo

java.lang.Object
  |
  +--org.apache.xalan.lib.NodeInfo

public class NodeInfo
extends java.lang.Object

NodeInfo defines the XSLT extension functions to be used from stylesheets.

Since:
May 24, 2001

Constructor Summary
NodeInfo()
           
 
Method Summary
static int columnNumber(ExpressionContext context)
          columnNumber returns the column number of the current context node.
static int columnNumber(org.w3c.dom.NodeList nodeList)
          columnNumber returns the column number of the node passed as argument.
static int lineNumber(ExpressionContext context)
          lineNumber returns the line number of the current context node.
static int lineNumber(org.w3c.dom.NodeList nodeList)
          lineNumber returns the line number of the node passed as argument.
static java.lang.String publicId(ExpressionContext context)
          publicId returns the system id of the current context node.
static java.lang.String publicId(org.w3c.dom.NodeList nodeList)
          publicId returns the system id of the node passed as argument.
static java.lang.String systemId(ExpressionContext context)
          systemId returns the system id of the current context node.
static java.lang.String systemId(org.w3c.dom.NodeList nodeList)
          systemId returns the system id of the node passed as argument.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeInfo

public NodeInfo()
Method Detail

systemId

public static java.lang.String systemId(ExpressionContext context)
systemId returns the system id of the current context node.
Parameters:
context - an ExpressionContext value
Returns:
a String value

systemId

public static java.lang.String systemId(org.w3c.dom.NodeList nodeList)
systemId returns the system id of the node passed as argument. If a node set is passed as argument, the system id of the first node in the set is returned.
Parameters:
context - an ExpressionContext value
nodeList - a NodeList value
Returns:
a String value

publicId

public static java.lang.String publicId(ExpressionContext context)
publicId returns the system id of the current context node.
Parameters:
context - an ExpressionContext value
Returns:
a String value

publicId

public static java.lang.String publicId(org.w3c.dom.NodeList nodeList)
publicId returns the system id of the node passed as argument. If a node set is passed as argument, the system id of the first node in the set is returned.
Parameters:
context - an ExpressionContext value
nodeList - a NodeList value
Returns:
a String value

lineNumber

public static int lineNumber(ExpressionContext context)
lineNumber returns the line number of the current context node.
Parameters:
context - an ExpressionContext value
Returns:
an int value

lineNumber

public static int lineNumber(org.w3c.dom.NodeList nodeList)
lineNumber returns the line number of the node passed as argument. If a node set is passed as argument, the line number of the first node in the set is returned.
Parameters:
nodeList - a NodeList value
Returns:
an int value

columnNumber

public static int columnNumber(ExpressionContext context)
columnNumber returns the column number of the current context node.
Parameters:
context - an ExpressionContext value
Returns:
an int value

columnNumber

public static int columnNumber(org.w3c.dom.NodeList nodeList)
columnNumber returns the column number of the node passed as argument. If a node set is passed as argument, the line number of the first node in the set is returned.
Parameters:
nodeList - a NodeList value
Returns:
an int value


Copyright © 2001 Apache XML Project. All Rights Reserved.