Package org.apache.xalan.lib
Class NodeInfo
- java.lang.Object
-
- org.apache.xalan.lib.NodeInfo
-
public class NodeInfo extends java.lang.ObjectNodeInfodefines a set of XSLT extension functions to be used from stylesheets.- Since:
- May 24, 2001
- Author:
- Ovidiu Predescu
-
-
Constructor Summary
Constructors Constructor Description NodeInfo()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcolumnNumber(ExpressionContext context)columnNumberreturns the column number of the current context node.static intcolumnNumber(org.w3c.dom.NodeList nodeList)columnNumberreturns the column number of the node passed as argument.static intlineNumber(ExpressionContext context)lineNumberreturns the line number of the current context node.static intlineNumber(org.w3c.dom.NodeList nodeList)lineNumberreturns the line number of the node passed as argument.static java.lang.StringpublicId(ExpressionContext context)publicIdreturns the public identifier of the current context node.static java.lang.StringpublicId(org.w3c.dom.NodeList nodeList)publicIdreturns the public identifier of the node passed as argument.static java.lang.StringsystemId(ExpressionContext context)systemIdreturns the system id of the current context node.static java.lang.StringsystemId(org.w3c.dom.NodeList nodeList)systemIdreturns the system id of the node passed as argument.
-
-
-
Method Detail
-
systemId
public static java.lang.String systemId(ExpressionContext context)
systemIdreturns the system id of the current context node.- Parameters:
context- anExpressionContextvalue- Returns:
- a
Stringvalue
-
systemId
public static java.lang.String systemId(org.w3c.dom.NodeList nodeList)
systemIdreturns 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- aNodeListvalue- Returns:
- a
Stringvalue
-
publicId
public static java.lang.String publicId(ExpressionContext context)
publicIdreturns the public identifier of the current context node. Xalan does not currently record this value, and will return null.- Parameters:
context- anExpressionContextvalue- Returns:
- a
Stringvalue
-
publicId
public static java.lang.String publicId(org.w3c.dom.NodeList nodeList)
publicIdreturns 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- aNodeListvalue- Returns:
- a
Stringvalue
-
lineNumber
public static int lineNumber(ExpressionContext context)
lineNumberreturns 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- anExpressionContextvalue- Returns:
- an
intvalue. This may be -1 to indicate that the line number is not known.
-
lineNumber
public static int lineNumber(org.w3c.dom.NodeList nodeList)
lineNumberreturns 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- aNodeListvalue- Returns:
- an
intvalue. This may be -1 to indicate that the line number is not known.
-
columnNumber
public static int columnNumber(ExpressionContext context)
columnNumberreturns 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- anExpressionContextvalue- Returns:
- an
intvalue. This may be -1 to indicate that the column number is not known.
-
columnNumber
public static int columnNumber(org.w3c.dom.NodeList nodeList)
columnNumberreturns 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- aNodeListvalue- Returns:
- an
intvalue. This may be -1 to indicate that the column number is not known.
-
-