public void validate(ComponentDeclaration decl) throws XPathException { checkEmpty(); select = typeCheck("select", select); }
AttributeCollection atts = getAttributeList(); String selectAtt = null; String copyNamespacesAtt = null; if (f.equals("select")) { selectAtt = atts.getValue(a); select = makeExpression(selectAtt, a); } else if (f.equals("copy-namespaces")) { copyNamespacesAtt = Whitespace.trim(atts.getValue(a)); typeAtt = Whitespace.trim(atts.getValue(a)); } else if (atts.getLocalName(a).equals("read-once") && atts.getURI(a).equals(NamespaceConstant.SAXON)) { compileError("The saxon:read-once attribute is no longer available - use xsl:stream"); } else { checkUnknownAttribute(atts.getNodeName(a)); reportAbsence("select"); copyAccumulators = false; } else { copyAccumulators = processBooleanAttribute("copy-accumulators", copyAccumulatorsAtt); if (copyAccumulators && isConstructingComplexContent()) { compileWarning("Copying accumulators is pointless when the copied element " + "is immediately attached to a new parent, since that action " + "will lose the accumulator values", SaxonErrorCode.SXWN9017); copyNamespaces = true; } else { copyNamespaces = processBooleanAttribute("copy-namespaces", copyNamespacesAtt);
AttributeCollection atts = getAttributeList(); String selectAtt = null; String copyNamespacesAtt = null; String f = getNamePool().getClarkName(nc); if (f==StandardNames.SELECT) { selectAtt = atts.getValue(a); readOnceAtt = Whitespace.trim(atts.getValue(a)); } else { checkUnknownAttribute(nc); select = makeExpression(selectAtt); } else { reportAbsence("select"); copyNamespaces = false; } else { compileError("Value of copy-namespaces must be 'yes' or 'no'", "XTSE0020"); if (validation != Validation.STRIP && !getConfiguration().isSchemaAware(Configuration.XSLT)) { compileError("To perform validation, a schema-aware XSLT processor is needed", "XTSE1660"); compileError("invalid value of validation attribute", "XTSE0020"); validation = getContainingStylesheet().getDefaultValidation(); schemaType = getSchemaType(typeAtt); if (!getConfiguration().isSchemaAware(Configuration.XSLT)) {
return new XSLCopy(); case StandardNames.XSL_COPY_OF: return new XSLCopyOf(); case StandardNames.XSL_DECIMAL_FORMAT: return new XSLDecimalFormat();
AttributeCollection atts = getAttributeList(); String selectAtt = null; String copyNamespacesAtt = null; if (f.equals("select")) { selectAtt = atts.getValue(a); select = makeExpression(selectAtt, a); } else if (f.equals("copy-namespaces")) { copyNamespacesAtt = Whitespace.trim(atts.getValue(a)); typeAtt = Whitespace.trim(atts.getValue(a)); } else if (atts.getLocalName(a).equals("read-once") && atts.getURI(a).equals(NamespaceConstant.SAXON)) { compileError("The saxon:read-once attribute is no longer available - use xsl:stream"); } else { checkUnknownAttribute(atts.getNodeName(a)); reportAbsence("select"); copyAccumulators = false; } else { copyAccumulators = processBooleanAttribute("copy-accumulators", copyAccumulatorsAtt); if (copyAccumulators && isConstructingComplexContent()) { compileWarning("Copying accumulators is pointless when the copied element " + "is immediately attached to a new parent, since that action " + "will lose the accumulator values", SaxonErrorCode.SXWN9017); copyNamespaces = true; } else { copyNamespaces = processBooleanAttribute("copy-namespaces", copyNamespacesAtt);
AttributeCollection atts = getAttributeList(); String selectAtt = null; String copyNamespacesAtt = null; String f = getNamePool().getClarkName(nc); if (f==StandardNames.SELECT) { selectAtt = atts.getValue(a); readOnceAtt = Whitespace.trim(atts.getValue(a)); } else { checkUnknownAttribute(nc); select = makeExpression(selectAtt); } else { reportAbsence("select"); copyNamespaces = false; } else { compileError("Value of copy-namespaces must be 'yes' or 'no'", "XTSE0020"); if (validation != Validation.STRIP && !getConfiguration().isSchemaAware(Configuration.XSLT)) { compileError("To perform validation, a schema-aware XSLT processor is needed", "XTSE1660"); compileError("invalid value of validation attribute", "XTSE0020"); validation = getContainingStylesheet().getDefaultValidation(); schemaType = getSchemaType(typeAtt); if (!getConfiguration().isSchemaAware(Configuration.XSLT)) {
return new XSLCopy(); case StandardNames.XSL_COPY_OF: return new XSLCopyOf(); case StandardNames.XSL_DECIMAL_FORMAT: return new XSLDecimalFormat();
public void validate() throws XPathException { checkEmpty(); select = typeCheck("select", select); }
return new XSLCopy(); case StandardNames.XSL_COPY_OF: return new XSLCopyOf(); case StandardNames.XSL_DECIMAL_FORMAT: return new XSLDecimalFormat();
public void validate() throws XPathException { checkEmpty(); select = typeCheck("select", select); }
return new XSLCopy(); case StandardNames.XSL_COPY_OF: return new XSLCopyOf(); case StandardNames.XSL_DECIMAL_FORMAT: return new XSLDecimalFormat();
public void validate(ComponentDeclaration decl) throws XPathException { checkEmpty(); select = typeCheck("select", select); }
return new XSLCopy(); case StandardNames.XSL_COPY_OF: return new XSLCopyOf(); case StandardNames.XSL_DECIMAL_FORMAT: return new XSLDecimalFormat();