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 . concode_field_sep PlaceHolder placeHolder concode_field_sep String systemId concode_elem_sep String systemId concode_elem_sep int columnNumber concode_elem_sep int columnNumber concode_elem_sep String publicId concode_elem_sep String publicId
int function ( ExpressionContext arg0 ) { Node loc0 = arg0 . getContextNode ( ) ; int loc1 = ( ( DTMNodeProxy ) loc0 ) . getDTMNodeNumber ( ) ; SourceLocator loc2 = ( ( DTMNodeProxy ) loc0 ) . getDTM ( ) . getSourceLocatorFor ( loc1 ) ; if ( loc2 != null ) return loc2 . getLineNumber ( ) ; else return - 1 ; }