/** * Compile time error, specifying an error code * * @param message the error message * @param errorCode the error code. May be null if not known or not defined * @throws XPathException unconditionally */ protected void compileError(String message, String errorCode) throws XPathException { XPathException tce = new XPathException(message, errorCode); compileError(tce); }
/** * Compile time error, specifying an error code * * @param message the error message * @param errorCode the error code. May be null if not known or not defined * @throws XPathException unconditionally */ protected void compileError(String message, String errorCode) throws XPathException { XPathException tce = new XPathException(message, errorCode); compileError(tce); }
/** * Set the value of the input-type-annotations attribute, for this module combined with that * of all included/imported modules. The value is an or-ed combination of the two bits * {@link XSLModuleRoot#ANNOTATION_STRIP} and {@link XSLModuleRoot#ANNOTATION_PRESERVE} * * @param annotations the value of the input-type-annotations attribute, for this module combined with that * of all included/imported modules. * @throws XPathException if the values of the attribute in different modules are inconsistent */ public void setInputTypeAnnotations(int annotations) throws XPathException { inputTypeAnnotations |= annotations; if (inputTypeAnnotations == (XSLModuleRoot.ANNOTATION_STRIP | XSLModuleRoot.ANNOTATION_PRESERVE)) { getPrincipalStylesheetModule().compileError( "One stylesheet module specifies input-type-annotations='strip', " + "another specifies input-type-annotations='preserve'", "XTSE0265"); } if (annotations == XSLModuleRoot.ANNOTATION_STRIP) { getPrincipalStylesheetModule().getStylesheetPackage().setStripsTypeAnnotations(true); } }
/** * Set the value of the input-type-annotations attribute, for this module combined with that * of all included/imported modules. The value is an or-ed combination of the two bits * {@link XSLModuleRoot#ANNOTATION_STRIP} and {@link XSLModuleRoot#ANNOTATION_PRESERVE} * * @param annotations the value of the input-type-annotations attribute, for this module combined with that * of all included/imported modules. * @throws XPathException if the values of the attribute in different modules are inconsistent */ public void setInputTypeAnnotations(int annotations) throws XPathException { inputTypeAnnotations |= annotations; if (inputTypeAnnotations == (XSLModuleRoot.ANNOTATION_STRIP | XSLModuleRoot.ANNOTATION_PRESERVE)) { getPrincipalStylesheetModule().compileError( "One stylesheet module specifies input-type-annotations='strip', " + "another specifies input-type-annotations='preserve'", "XTSE0265"); } if (annotations == XSLModuleRoot.ANNOTATION_STRIP) { getPrincipalStylesheetModule().getStylesheetPackage().setStripsTypeAnnotations(true); } }
compileError("Requested output format " + formatQName.getDisplayName() + " has not been defined", "XTDE1460");
compileError("Requested output format " + formatQName.getDisplayName() + " has not been defined", "XTDE1460");