throw new RuntimeException(
"Error: locator is null. Check that you have the" +
" correct version of Xerces (such as the one that" +
" comes with Cocoon) in your endorsed library path.");
}
NodeImpl node = null;
try {
node = (NodeImpl)this.getProperty(
"http://apache.org/xml/properties/dom/current-element-node");
} catch (org.xml.sax.SAXException ex) {
System.err.println("except" + ex);
}
if (node != null) {
String location = locator.getLiteralSystemId() + ":" +
locator.getLineNumber() + ":" + locator.getColumnNumber();
node.setUserData("location", location, (UserDataHandler)null);
}
}