/** * Check for circularity: specifically, check that this attribute set does not contain * a direct or indirect reference to the one supplied as a parameter * @param origin the start point of the search */ private void checkCircularity(XSLCharacterMap origin) throws XPathException { if (this==origin) { compileError("The definition of the character map is circular", "XTSE1600"); characterMapElements = null; // for error recovery } else { if (!validated) { // if this attribute set isn't validated yet, we don't check it. // The circularity will be detected when the last attribute set in the cycle // gets validated return; } if (characterMapElements != null) { for (Iterator it=characterMapElements.iterator(); it.hasNext();) { ((XSLCharacterMap)it.next()).checkCircularity(origin); } } } }
/** * Check for circularity: specifically, check that this attribute set does not contain * a direct or indirect reference to the one supplied as a parameter * * @param origin the start point of the search * @throws net.sf.saxon.trans.XPathException * if an error is detected */ private void checkCircularity(XSLCharacterMap origin) throws XPathException { if (this == origin) { compileError("The definition of the character map is circular", "XTSE1600"); characterMapElements = null; // for error recovery } else { if (!validated) { // if this attribute set isn't validated yet, we don't check it. // The circularity will be detected when the last attribute set in the cycle // gets validated return; } if (characterMapElements != null) { for (Object characterMapElement : characterMapElements) { ((XSLCharacterMap) characterMapElement).checkCircularity(origin); } } } }
/** * Check for circularity: specifically, check that this attribute set does not contain * a direct or indirect reference to the one supplied as a parameter * @param origin the start point of the search */ private void checkCircularity(XSLCharacterMap origin) throws XPathException { if (this==origin) { compileError("The definition of the character map is circular", "XTSE1600"); characterMapElements = null; // for error recovery } else { if (!validated) { // if this attribute set isn't validated yet, we don't check it. // The circularity will be detected when the last attribute set in the cycle // gets validated return; } if (characterMapElements != null) { for (Iterator it=characterMapElements.iterator(); it.hasNext();) { ((XSLCharacterMap)it.next()).checkCircularity(origin); } } } }
/** * Check for circularity: specifically, check that this attribute set does not contain * a direct or indirect reference to the one supplied as a parameter * * @param origin the start point of the search * @throws net.sf.saxon.trans.XPathException * if an error is detected */ private void checkCircularity(XSLCharacterMap origin) throws XPathException { if (this == origin) { compileError("The definition of the character map is circular", "XTSE1600"); characterMapElements = null; // for error recovery } else { if (!validated) { // if this attribute set isn't validated yet, we don't check it. // The circularity will be detected when the last attribute set in the cycle // gets validated return; } if (characterMapElements != null) { for (Object characterMapElement : characterMapElements) { ((XSLCharacterMap) characterMapElement).checkCircularity(origin); } } } }
compileError("Only xsl:output-character is allowed within xsl:character-map", "XTSE0010"); if (other != this) { if (getPrecedence() == other.getPrecedence()) { compileError("There are two character-maps with the same name and import precedence", "XTSE1580"); } else if (getPrecedence() < other.getPrecedence()) { redundant = true; String uri = getURIForPrefix(parts[0], false); if (uri == null) { compileError("Undeclared namespace prefix " + Err.wrap(parts[0]) + " in character map name", "XTSE0280"); XSLCharacterMap ref = principal.getCharacterMap(qn); if (ref == null) { compileError("No character-map named '" + displayname + "' has been defined", "XTSE1590"); } else { characterMapElements.add(ref); compileError("Invalid character-map name. " + err.getMessage(), "XTSE1590");
compileError("Only xsl:output-character is allowed within xsl:character-map", "XTSE0010"); if (other != this) { if (getPrecedence() == other.getPrecedence()) { compileError("There are two character-maps with the same name and import precedence", "XTSE1580"); } else if (getPrecedence() < other.getPrecedence()) { redundant = true; String uri = getURIForPrefix(parts[0], false); if (uri == null) { compileError("Undeclared namespace prefix " + Err.wrap(parts[0]) + " in character map name", "XTSE0280"); XSLCharacterMap ref = principal.getCharacterMap(qn); if (ref == null) { compileError("No character-map named '" + displayname + "' has been defined", "XTSE1590"); } else { characterMapElements.add(ref); compileError("Invalid character-map name. " + err.getMessage(), "XTSE1590");
compileError("Only xsl:output-character is allowed within xsl:character-map", "XTSE0010"); if (other.getSourceElement() != this) { if (decl.getPrecedence() == other.getPrecedence()) { compileError("There are two character-maps with the same name and import precedence", "XTSE1580"); } else if (decl.getPrecedence() < other.getPrecedence()) { redundant = true; String uri = getURIForPrefix(parts[0], false); if (uri == null) { compileError("Undeclared namespace prefix " + Err.wrap(parts[0]) + " in character map name", "XTSE0280"); ComponentDeclaration charMapDecl = psm.getCharacterMap(qn); if (charMapDecl == null) { compileError("No character-map named '" + displayname + "' has been defined", "XTSE1590"); } else { XSLCharacterMap ref = (XSLCharacterMap) charMapDecl.getSourceElement(); compileError("Invalid character-map name. " + err.getMessage(), "XTSE1590");
compileError("Only xsl:output-character is allowed within xsl:character-map", "XTSE0010"); if (other.getSourceElement() != this) { if (decl.getPrecedence() == other.getPrecedence()) { compileError("There are two character-maps with the same name and import precedence", "XTSE1580"); } else if (decl.getPrecedence() < other.getPrecedence()) { redundant = true; String uri = getURIForPrefix(parts[0], false); if (uri == null) { compileError("Undeclared namespace prefix " + Err.wrap(parts[0]) + " in character map name", "XTSE0280"); ComponentDeclaration charMapDecl = psm.getCharacterMap(qn); if (charMapDecl == null) { compileError("No character-map named '" + displayname + "' has been defined", "XTSE1590"); } else { XSLCharacterMap ref = (XSLCharacterMap) charMapDecl.getSourceElement(); compileError("Invalid character-map name. " + err.getMessage(), "XTSE1590");
setObjectName(makeQName(name)); } catch (XPathException err) { compileError(err.getMessage(), "XTSE0020"); name = "unnamedCharacterMap_" + hashCode(); setObjectName(new StructuredQName("", "", name));
setObjectName(makeQName(name)); } catch (XPathException err) { compileError(err.getMessage(), "XTSE0020"); name = "unnamedCharacterMap_" + hashCode(); setObjectName(new StructuredQName("", "", name));
setObjectName(makeQName(name)); } catch (NamespaceException err) { compileError(err.getMessage(), "XTSE0280"); name = "unnamedCharacterMap_" + hashCode(); setObjectName(new StructuredQName("", "", name)); } catch (XPathException err) { compileError(err.getMessage(), "XTSE0020"); name = "unnamedCharacterMap_" + hashCode(); setObjectName(new StructuredQName("", "", name));
setObjectName(makeQName(name)); } catch (NamespaceException err) { compileError(err.getMessage(), "XTSE0280"); name = "unnamedCharacterMap_" + hashCode(); setObjectName(new StructuredQName("", "", name)); } catch (XPathException err) { compileError(err.getMessage(), "XTSE0020"); name = "unnamedCharacterMap_" + hashCode(); setObjectName(new StructuredQName("", "", name));