/** * 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 getValidationLocationText() { FastStringBuffer fsb = new FastStringBuffer(FastStringBuffer.C256); AbsolutePath valPath = getAbsolutePath(); if (valPath != null) { fsb.append("Validating "); fsb.append(valPath.getPathUsingPrefixes()); if (valPath.getSystemId() != null) { fsb.append(" in "); fsb.append(valPath.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 getValidationLocationText() { FastStringBuffer fsb = new FastStringBuffer(FastStringBuffer.C256); AbsolutePath valPath = getAbsolutePath(); if (valPath != null) { fsb.append("Validating "); fsb.append(valPath.getPathUsingPrefixes()); if (valPath.getSystemId() != null) { fsb.append(" in "); fsb.append(valPath.getSystemId()); } } return fsb.toString(); }