// Static data/methods ///////////////////////////////////////////////////////////////////
- /** maximum length of a line */
- private static final int MAX_COLUMN = 150;
-
/** a template cache so that only one Template object is created for each xwt */
private static Hashtable cache = new Hashtable(1000);
}
public void characters(char[] ch, int start, int length) throws XML.SchemaException {
- // invoke the max-column-length and no-tab crusade
- if (getCol() + length > MAX_COLUMN) throw new XML.SchemaException(
- t.nodeName+ ":" + getLine() + ": lines longer than " + MAX_COLUMN + " characters not allowed");
-
+ // invoke the no-tab crusade
for (int i=0; length >i; i++) if (ch[start+i] == '\t') throw new XML.SchemaException(
t.nodeName+ ":" + getLine() + "," + getCol() + ": tabs are not allowed in XWT files");