NodeInfo.java revision 286
0N/A * reserved comment block 0N/A * DO NOT REMOVE OR ALTER! 0N/A * Copyright 1999-2004 The Apache Software Foundation. 0N/A * Licensed under the Apache License, Version 2.0 (the "License"); 0N/A * you may not use this file except in compliance with the License. 0N/A * You may obtain a copy of the License at 0N/A * Unless required by applicable law or agreed to in writing, software 0N/A * distributed under the License is distributed on an "AS IS" BASIS, 0N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0N/A * See the License for the specific language governing permissions and 0N/A * limitations under the License. 0N/A * <code>NodeInfo</code> defines a set of XSLT extension functions to be 0N/A * used from stylesheets. 0N/A * @author <a href="mailto:ovidiu@cup.hp.com">Ovidiu Predescu</a> 0N/A * @since May 24, 2001 1147N/A * <code>systemId</code> returns the system id of the current 389N/A * @param context an <code>ExpressionContext</code> value 389N/A * @return a <code>String</code> value 0N/A * <code>systemId</code> returns the system id of the node passed as 0N/A * argument. If a node set is passed as argument, the system id of 0N/A * the first node in the set is returned. 0N/A * @param nodeList a <code>NodeList</code> value 837N/A * @return a <code>String</code> value 0N/A * <code>publicId</code> returns the public identifier of the current 0N/A * Xalan does not currently record this value, and will return null. 0N/A * @param context an <code>ExpressionContext</code> value 0N/A * @return a <code>String</code> value 0N/A * <code>publicId</code> returns the public identifier of the node passed as 0N/A * 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. * @param nodeList a <code>NodeList</code> value * @return a <code>String</code> value * <code>lineNumber</code> returns the line number of the current * NOTE: Xalan does not normally record location information for each node. * To obtain it, you must set the custom TrAX attribute * true in the TransformerFactory before generating the Transformer and executing * the stylesheet. Storage cost per node will be noticably increased in this mode. * @param context an <code>ExpressionContext</code> value * @return an <code>int</code> value. This may be -1 to indicate that the * line number is not known. * <code>lineNumber</code> 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 * true in the TransformerFactory before generating the Transformer and executing * the stylesheet. Storage cost per node will be noticably increased in this mode. * @param nodeList a <code>NodeList</code> value * @return an <code>int</code> value. This may be -1 to indicate that the * line number is not known. * <code>columnNumber</code> returns the column number of the * NOTE: Xalan does not normally record location information for each node. * To obtain it, you must set the custom TrAX attribute * true in the TransformerFactory before generating the Transformer and executing * the stylesheet. Storage cost per node will be noticably increased in this mode. * @param context an <code>ExpressionContext</code> value * @return an <code>int</code> value. This may be -1 to indicate that the * column number is not known. * <code>columnNumber</code> 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 * true in the TransformerFactory before generating the Transformer and executing * the stylesheet. Storage cost per node will be noticably increased in this mode. * @param nodeList a <code>NodeList</code> value * @return an <code>int</code> value. This may be -1 to indicate that the * column number is not known.