/** * 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 #ANNOTATION_STRIP} and {@link #ANNOTATION_PRESERVE} * @param annotations the value of the input-type-annotations attribute, for this module combined with that * of all included/imported modules. */ public void setInputTypeAnnotations(int annotations) throws XPathException { inputAnnotations |= annotations; if (inputAnnotations == (ANNOTATION_STRIP | ANNOTATION_PRESERVE)) { compileError("One stylesheet module specifies input-type-annotations='strip', " + "another specifies input-type-annotations='preserve'", "XTSE0265"); } }
/** * 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 #ANNOTATION_STRIP} and {@link #ANNOTATION_PRESERVE} * @param annotations the value of the input-type-annotations attribute, for this module combined with that * of all included/imported modules. */ public void setInputTypeAnnotations(int annotations) throws XPathException { inputAnnotations |= annotations; if (inputAnnotations == (ANNOTATION_STRIP | ANNOTATION_PRESERVE)) { compileError("One stylesheet module specifies input-type-annotations='strip', " + "another specifies input-type-annotations='preserve'", "XTSE0265"); } }
/** * 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 #ANNOTATION_STRIP} and {@link #ANNOTATION_PRESERVE} * @param annotations the value of the input-type-annotations attribute, for this module combined with that * of all included/imported modules. */ public void setInputTypeAnnotations(int annotations) throws XPathException { inputAnnotations |= annotations; if (inputAnnotations == (ANNOTATION_STRIP | ANNOTATION_PRESERVE)) { compileError("One stylesheet module specifies input-type-annotations='strip', " + "another specifies input-type-annotations='preserve'", "XTSE0265"); } }
/** * Get the value of the input-type-annotations attribute, for this module alone. * The value is an or-ed combination of the two bits * {@link #ANNOTATION_STRIP} and {@link #ANNOTATION_PRESERVE} * @return the value if the input-type-annotations attribute in this stylesheet module */ public int getInputTypeAnnotationsAttribute() throws XPathException { String inputTypeAnnotationsAtt = getAttributeValue(StandardNames.INPUT_TYPE_ANNOTATIONS); if (inputTypeAnnotationsAtt != null) { if (inputTypeAnnotationsAtt.equals("strip")) { setInputTypeAnnotations(ANNOTATION_STRIP); } else if (inputTypeAnnotationsAtt.equals("preserve")) { setInputTypeAnnotations(ANNOTATION_PRESERVE); } else if (inputTypeAnnotationsAtt.equals("unspecified")) { // } else { compileError("Invalid value for input-type-annotations attribute. " + "Permitted values are (strip, preserve, unspecified)", "XTSE0020"); } } return inputAnnotations; }
/** * Get the value of the input-type-annotations attribute, for this module alone. * The value is an or-ed combination of the two bits * {@link #ANNOTATION_STRIP} and {@link #ANNOTATION_PRESERVE} * @return the value if the input-type-annotations attribute in this stylesheet module */ public int getInputTypeAnnotationsAttribute() throws XPathException { String inputTypeAnnotationsAtt = getAttributeValue(StandardNames.INPUT_TYPE_ANNOTATIONS); if (inputTypeAnnotationsAtt != null) { if (inputTypeAnnotationsAtt.equals("strip")) { setInputTypeAnnotations(ANNOTATION_STRIP); } else if (inputTypeAnnotationsAtt.equals("preserve")) { setInputTypeAnnotations(ANNOTATION_PRESERVE); } else if (inputTypeAnnotationsAtt.equals("unspecified")) { // } else { compileError("Invalid value for input-type-annotations attribute. " + "Permitted values are (strip, preserve, unspecified)", "XTSE0020"); } } return inputAnnotations; }
/** * Get the value of the input-type-annotations attribute, for this module alone. * The value is an or-ed combination of the two bits * {@link #ANNOTATION_STRIP} and {@link #ANNOTATION_PRESERVE} * @return the value if the input-type-annotations attribute in this stylesheet module */ public int getInputTypeAnnotationsAttribute() throws XPathException { String inputTypeAnnotationsAtt = getAttributeValue(StandardNames.INPUT_TYPE_ANNOTATIONS); if (inputTypeAnnotationsAtt != null) { if (inputTypeAnnotationsAtt.equals("strip")) { setInputTypeAnnotations(ANNOTATION_STRIP); } else if (inputTypeAnnotationsAtt.equals("preserve")) { setInputTypeAnnotations(ANNOTATION_PRESERVE); } else if (inputTypeAnnotationsAtt.equals("unspecified")) { // } else { compileError("Invalid value for input-type-annotations attribute. " + "Permitted values are (strip, preserve, unspecified)", "XTSE0020"); } } return inputAnnotations; }
/** * Create an output properties object representing the xsl:output elements in the stylesheet. * @param formatQName The name of the output format required. If set to null, gathers * information for the unnamed output format * @return the Properties object containing the details of the specified output format * @throws XPathException if a named output format does not exist in * the stylesheet */ public Properties gatherOutputProperties(StructuredQName formatQName) throws XPathException { boolean found = (formatQName == null); Properties details = new Properties(); HashMap precedences = new HashMap(10); for (int i = topLevel.size()-1; i >= 0; i--) { Object s = topLevel.get(i); if (s instanceof XSLOutput) { XSLOutput xo = (XSLOutput) s; if (formatQName == null ? xo.getFormatQName() == null : formatQName.equals(xo.getFormatQName())) { found = true; xo.gatherOutputProperties(details, precedences); } } } if (!found) { compileError("Requested output format " + formatQName.getDisplayName() + " has not been defined", "XTDE1460"); } return details; }
/** * Create an output properties object representing the xsl:output elements in the stylesheet. * @param formatQName The name of the output format required. If set to null, gathers * information for the unnamed output format * @return the Properties object containing the details of the specified output format * @throws XPathException if a named output format does not exist in * the stylesheet */ public Properties gatherOutputProperties(StructuredQName formatQName) throws XPathException { boolean found = (formatQName == null); Properties details = new Properties(); HashMap precedences = new HashMap(10); for (int i = topLevel.size()-1; i >= 0; i--) { Object s = topLevel.get(i); if (s instanceof XSLOutput) { XSLOutput xo = (XSLOutput) s; if (formatQName == null ? xo.getFormatQName() == null : formatQName.equals(xo.getFormatQName())) { found = true; xo.gatherOutputProperties(details, precedences); } } } if (!found) { compileError("Requested output format " + formatQName.getDisplayName() + " has not been defined"); } return details; }
/** * Create an output properties object representing the xsl:output elements in the stylesheet. * @param formatQName The name of the output format required. If set to null, gathers * information for the unnamed output format * @return the Properties object containing the details of the specified output format * @throws XPathException if a named output format does not exist in * the stylesheet */ public Properties gatherOutputProperties(StructuredQName formatQName) throws XPathException { boolean found = (formatQName == null); Properties details = new Properties(); HashMap precedences = new HashMap(10); for (int i = topLevel.size()-1; i >= 0; i--) { Object s = topLevel.get(i); if (s instanceof XSLOutput) { XSLOutput xo = (XSLOutput) s; if (formatQName == null ? xo.getFormatQName() == null : formatQName.equals(xo.getFormatQName())) { found = true; xo.gatherOutputProperties(details, precedences); } } } if (!found) { compileError("Requested output format " + formatQName.getDisplayName() + " has not been defined"); } return details; }
defaultValidation = Validation.getCode(atts.getValue(a)); if (defaultValidation == Validation.INVALID) { compileError("Invalid value for default-validation attribute. " + "Permitted values are (strict, lax, preserve, strip)", "XTSE0020"); } else if (!getConfiguration().isSchemaAware(Configuration.XSLT) && defaultValidation != Validation.STRIP) { compileError("default-validation='" + atts.getValue(a) + "' requires a schema-aware processor", "XTSE1660"); compileError("Invalid value for input-type-annotations attribute. " + "Permitted values are (strip, preserve, unspecified)", "XTSE0020");
defaultValidation = Validation.getCode(atts.getValue(a)); if (defaultValidation == Validation.INVALID) { compileError("Invalid value for default-validation attribute. " + "Permitted values are (strict, lax, preserve, strip)", "XTSE0020"); } else if (!getConfiguration().isSchemaAware(Configuration.XSLT) && defaultValidation != Validation.STRIP) { compileError("default-validation='" + atts.getValue(a) + "' requires a schema-aware processor", "XTSE1660"); compileError("Invalid value for input-type-annotations attribute. " + "Permitted values are (strip, preserve, unspecified)", "XTSE0020");
defaultValidation = Validation.getCode(atts.getValue(a)); if (defaultValidation == Validation.INVALID) { compileError("Invalid value for default-validation attribute. " + "Permitted values are (strict, lax, preserve, strip)", "XTSE0020"); } else if (!getConfiguration().isSchemaAware(Configuration.XSLT) && defaultValidation != Validation.STRIP) { compileError("default-validation='" + atts.getValue(a) + "' requires a schema-aware processor", "XTSE1660"); compileError("Invalid value for input-type-annotations attribute. " + "Permitted values are (strip, preserve, unspecified)", "XTSE0020");
compileError(validationError); compileError(getDisplayName() + " must be the outermost element", "XTSE0010");
compileError(validationError); compileError(getDisplayName() + " must be the outermost element", "XTSE0010");
compileError(validationError); compileError(getDisplayName() + " must be the outermost element", "XTSE0010");
compileError(validationError); compileError(getDisplayName() + " must be the outermost element", "XTSE0010");
compileError(validationError); compileError(getDisplayName() + " must be the outermost element", "XTSE0010");
incSheet.compileError(incSheet.validationError); } else if (incSheet.reportingCircumstances == REPORT_UNLESS_FORWARDS_COMPATIBLE incSheet.compileError(incSheet.validationError);
includedSheet.compileError(includedSheet.validationError); } else if (includedSheet.reportingCircumstances == REPORT_UNLESS_FORWARDS_COMPATIBLE includedSheet.compileError(includedSheet.validationError);
includedSheet.compileError(includedSheet.validationError); } else if (includedSheet.reportingCircumstances == REPORT_UNLESS_FORWARDS_COMPATIBLE includedSheet.compileError(includedSheet.validationError);