/** * Get additional location text, if any. This gives extra information about the position of the error * in textual form. Where XPath is embedded within a host language such as XSLT, the * formal location information identifies the location of the error in the XSLT module, * while this string locates the error within a specific XPath expression. The information * is typically used only for static errors. * * @return additional information about the location of the error, designed to be output * as a prefix to the error message if desired. (It is not concatenated with the message, because * it may be superfluous in an IDE environment.) */ public String getContextLocationText() { FastStringBuffer fsb = new FastStringBuffer(FastStringBuffer.C256); AbsolutePath contextPath = getContextPath(); if (contextPath != null) { fsb.append("Currently processing "); fsb.append(contextPath.getPathUsingPrefixes()); if (contextPath.getSystemId() != null) { fsb.append(" in "); fsb.append(contextPath.getSystemId()); } } return fsb.toString(); }
/** * Get additional location text, if any. This gives extra information about the position of the error * in textual form. Where XPath is embedded within a host language such as XSLT, the * formal location information identifies the location of the error in the XSLT module, * while this string locates the error within a specific XPath expression. The information * is typically used only for static errors. * * @return additional information about the location of the error, designed to be output * as a prefix to the error message if desired. (It is not concatenated with the message, because * it may be superfluous in an IDE environment.) */ public String getContextLocationText() { FastStringBuffer fsb = new FastStringBuffer(FastStringBuffer.C256); AbsolutePath contextPath = getContextPath(); if (contextPath != null) { fsb.append("Currently processing "); fsb.append(contextPath.getPathUsingPrefixes()); if (contextPath.getSystemId() != null) { fsb.append(" in "); fsb.append(contextPath.getSystemId()); } } return fsb.toString(); }