APIdia Launch Partner
Top Description Constructors Methods
com.sun.org.apache.xalan.internal.lib

public Class NodeInfo

extends Object
Class Inheritance
Imports
javax.xml.transform.SourceLocator, com.sun.org.apache.xalan.internal.extensions.ExpressionContext, com.sun.org.apache.xml.internal.dtm.ref.DTMNodeProxy, org.w3c.dom.Node, .NodeList

NodeInfo defines a set of XSLT extension functions to be used from stylesheets.
Author
Ovidiu Predescu
Since
May 24, 2001

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static int

Returns:

an int value. This may be -1 to indicate that the column number is not known.
columnNumber
(ExpressionContext
an ExpressionContext value
context
)

columnNumber returns the column number of the current context node.

public static int

Returns:

an int value. This may be -1 to indicate that the column number is not known.
columnNumber
(NodeList
a NodeList value
nodeList
)

columnNumber returns the column number of the node passed as argument.

public static int

Returns:

an int value. This may be -1 to indicate that the line number is not known.
lineNumber
(ExpressionContext
an ExpressionContext value
context
)

lineNumber returns the line number of the current context node.

public static int

Returns:

an int value. This may be -1 to indicate that the line number is not known.
lineNumber
(NodeList
a NodeList value
nodeList
)

lineNumber returns the line number of the node passed as argument.

public static String

Returns:

a String value
publicId
(ExpressionContext
an ExpressionContext value
context
)

publicId returns the public identifier of the current context node.

public static String

Returns:

a String value
publicId
(NodeList
a NodeList value
nodeList
)

publicId returns the public identifier of the node passed as argument.

public static String

Returns:

a String value
systemId
(ExpressionContext
an ExpressionContext value
context
)

systemId returns the system id of the current context node.

public static String

Returns:

a String value
systemId
(NodeList
a NodeList value
nodeList
)

systemId returns the system id of the node passed as argument.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

NodeInfoback to summary
public NodeInfo()

Method Detail

columnNumberback to summary
public static int columnNumber(ExpressionContext context)

columnNumber returns the column number of the current context node.

Note

Xalan does not normally record location information for each node. To obtain it, you must set the custom TrAX attribute "http://xml.apache.org/xalan/features/source_location" true in the TransformerFactory before generating the Transformer and executing the stylesheet. Storage cost per node will be noticably increased in this mode.

Parameters
context:ExpressionContext

an ExpressionContext value

Returns:int

an int value. This may be -1 to indicate that the column number is not known.

columnNumberback to summary
public static int columnNumber(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.

Note

Xalan does not normally record location information for each node. To obtain it, you must set the custom TrAX attribute "http://xml.apache.org/xalan/features/source_location" true in the TransformerFactory before generating the Transformer and executing the stylesheet. Storage cost per node will be noticably increased in this mode.

Parameters
nodeList:NodeList

a NodeList value

Returns:int

an int value. This may be -1 to indicate that the column number is not known.

lineNumberback to summary
public static int lineNumber(ExpressionContext context)

lineNumber returns the line number of the current context node.

Note

Xalan does not normally record location information for each node. To obtain it, you must set the custom TrAX attribute "http://xml.apache.org/xalan/features/source_location" true in the TransformerFactory before generating the Transformer and executing the stylesheet. Storage cost per node will be noticably increased in this mode.

Parameters
context:ExpressionContext

an ExpressionContext value

Returns:int

an int value. This may be -1 to indicate that the line number is not known.

lineNumberback to summary
public static int lineNumber(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.

Note

Xalan does not normally record location information for each node. To obtain it, you must set the custom TrAX attribute "http://xml.apache.org/xalan/features/source_location" true in the TransformerFactory before generating the Transformer and executing the stylesheet. Storage cost per node will be noticably increased in this mode.

Parameters
nodeList:NodeList

a NodeList value

Returns:int

an int value. This may be -1 to indicate that the line number is not known.

publicIdback to summary
public static String publicId(ExpressionContext context)

publicId returns the public identifier of the current context node. Xalan does not currently record this value, and will return null.

Parameters
context:ExpressionContext

an ExpressionContext value

Returns:String

a String value

publicIdback to summary
public static String publicId(NodeList nodeList)

publicId returns the public identifier of the node passed as argument. If a node set is passed as argument, the public identifier of the first node in the set is returned. Xalan does not currently record this value, and will return null.

Parameters
nodeList:NodeList

a NodeList value

Returns:String

a String value

systemIdback to summary
public static String systemId(ExpressionContext context)

systemId returns the system id of the current context node.

Parameters
context:ExpressionContext

an ExpressionContext value

Returns:String

a String value

systemIdback to summary
public static String systemId(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
nodeList:NodeList

a NodeList value

Returns:String

a String value