public void characters(char[] ch, int start, int length) { bodyNecessary = false; // body is no longer necessary! // ignore strings that are just whitespace String s = new String(ch, start, length).trim(); if (s.equals("")) return; // check and update body-related constraints if (bodyIllegal) fail(Resources.getMessage("TLV_ILLEGAL_BODY", lastElementName)); // make sure <choose> has no non-whitespace text if (chooseChild()) { String msg = Resources.getMessage("TLV_ILLEGAL_TEXT_BODY", prefix, CHOOSE, (s.length() < 7 ? s : s.substring(0,7))); fail(msg); } // Specific check, directly inside <transform source="..."> if (!transformWithSource.empty() && topDepth(transformWithSource) == (depth - 1)) { fail(Resources.getMessage("TLV_ILLEGAL_BODY", prefix + ":" + TRANSFORM)); } }
public void characters(char[] ch, int start, int length) { bodyNecessary = false; // body is no longer necessary! // ignore strings that are just whitespace String s = new String(ch, start, length).trim(); if (s.equals("")) return; // check and update body-related constraints if (bodyIllegal) fail(Resources.getMessage("TLV_ILLEGAL_BODY", lastElementName)); // make sure <choose> has no non-whitespace text if (chooseChild()) { String msg = Resources.getMessage("TLV_ILLEGAL_TEXT_BODY", prefix, CHOOSE, (s.length() < 7 ? s : s.substring(0,7))); fail(msg); } // Specific check, directly inside <transform source="..."> if (!transformWithSource.empty() && topDepth(transformWithSource) == (depth - 1)) { fail(Resources.getMessage("TLV_ILLEGAL_BODY", prefix + ":" + TRANSFORM)); } }
public void characters(char[] ch, int start, int length) { bodyNecessary = false; // body is no longer necessary! // ignore strings that are just whitespace String s = new String(ch, start, length).trim(); if (s.equals("")) return; // check and update body-related constraints if (bodyIllegal) fail(Resources.getMessage("TLV_ILLEGAL_BODY", lastElementName)); // make sure <choose> has no non-whitespace text if (chooseChild()) { String msg = Resources.getMessage("TLV_ILLEGAL_TEXT_BODY", prefix, CHOOSE, (s.length() < 7 ? s : s.substring(0,7))); fail(msg); } // Specific check, directly inside <transform source="..."> if (!transformWithSource.empty() && topDepth(transformWithSource) == (depth - 1)) { fail(Resources.getMessage("TLV_ILLEGAL_BODY", prefix + ":" + TRANSFORM)); } }
@Override public void characters(char[] ch, int start, int length) { bodyNecessary = false; // body is no longer necessary! // ignore strings that are just whitespace String s = new String(ch, start, length).trim(); if (s.equals("")) { return; } // check and update body-related constraints if (bodyIllegal) { fail(Resources.getMessage("TLV_ILLEGAL_BODY", lastElementName)); } // make sure <choose> has no non-whitespace text if (chooseChild()) { String msg = Resources.getMessage("TLV_ILLEGAL_TEXT_BODY", prefix, CHOOSE, (s.length() < 7 ? s : s.substring(0, 7))); fail(msg); } // Specific check, directly inside <transform source="..."> if (!transformWithSource.empty() && topDepth(transformWithSource) == (depth - 1)) { fail(Resources.getMessage("TLV_ILLEGAL_BODY", prefix + ":" + TRANSFORM)); } }
@Override public void characters(char[] ch, int start, int length) { bodyNecessary = false; // body is no longer necessary! // ignore strings that are just whitespace String s = new String(ch, start, length).trim(); if (s.equals("")) { return; } // check and update body-related constraints if (bodyIllegal) { fail(Resources.getMessage("TLV_ILLEGAL_BODY", lastElementName)); } // make sure <choose> has no non-whitespace text if (chooseChild()) { String msg = Resources.getMessage("TLV_ILLEGAL_TEXT_BODY", prefix, CHOOSE, (s.length() < 7 ? s : s.substring(0, 7))); fail(msg); } // Specific check, directly inside <transform source="..."> if (!transformWithSource.empty() && topDepth(transformWithSource) == (depth - 1)) { fail(Resources.getMessage("TLV_ILLEGAL_BODY", prefix + ":" + TRANSFORM)); } }
public void characters(char[] ch, int start, int length) { bodyNecessary = false; // body is no longer necessary! // ignore strings that are just whitespace String s = new String(ch, start, length).trim(); if (s.equals("")) return; // check and update body-related constraints if (bodyIllegal) fail(Resources.getMessage("TLV_ILLEGAL_BODY", lastElementName)); // make sure <choose> has no non-whitespace text if (chooseChild()) { String msg = Resources.getMessage("TLV_ILLEGAL_TEXT_BODY", prefix, CHOOSE, (s.length() < 7 ? s : s.substring(0,7))); fail(msg); } // Specific check, directly inside <transform source="..."> if (!transformWithSource.empty() && topDepth(transformWithSource) == (depth - 1)) { fail(Resources.getMessage("TLV_ILLEGAL_BODY", prefix + ":" + TRANSFORM)); } }
public void characters(char[] ch, int start, int length) { bodyNecessary = false; // body is no longer necessary! // ignore strings that are just whitespace String s = new String(ch, start, length).trim(); if (s.equals("")) return; // check and update body-related constraints if (bodyIllegal) fail(Resources.getMessage("TLV_ILLEGAL_BODY", lastElementName)); // make sure <choose> has no non-whitespace text if (chooseChild()) { String msg = Resources.getMessage("TLV_ILLEGAL_TEXT_BODY", prefix, CHOOSE, (s.length() < 7 ? s : s.substring(0,7))); fail(msg); } // Specific check, directly inside <transform source="..."> if (!transformWithSource.empty() && topDepth(transformWithSource) == (depth - 1)) { fail(Resources.getMessage("TLV_ILLEGAL_BODY", prefix + ":" + TRANSFORM)); } }
public void characters(char[] ch, int start, int length) { bodyNecessary = false; // body is no longer necessary! // ignore strings that are just whitespace String s = new String(ch, start, length).trim(); if (s.equals("")) return; // check and update body-related constraints if (bodyIllegal) fail(Resources.getMessage("TLV_ILLEGAL_BODY", lastElementName)); // make sure <choose> has no non-whitespace text if (chooseChild()) { String msg = Resources.getMessage("TLV_ILLEGAL_TEXT_BODY", prefix, CHOOSE, (s.length() < 7 ? s : s.substring(0,7))); fail(msg); } // Specific check, directly inside <transform source="..."> if (!transformWithSource.empty() && topDepth(transformWithSource) == (depth - 1)) { fail(Resources.getMessage("TLV_ILLEGAL_BODY", prefix + ":" + TRANSFORM)); } }