Lines 1198-1218
Link Here
|
1198 |
|
1198 |
|
1199 |
// call handler |
1199 |
// call handler |
1200 |
if (fDTDHandler != null) { |
1200 |
if (fDTDHandler != null) { |
1201 |
String[] enum = null; |
1201 |
String[] enum1 = null; |
1202 |
if (fEnumerationCount != 0) { |
1202 |
if (fEnumerationCount != 0) { |
1203 |
enum = new String[fEnumerationCount]; |
1203 |
enum1 = new String[fEnumerationCount]; |
1204 |
System.arraycopy(fEnumeration, 0, enum, |
1204 |
System.arraycopy(fEnumeration, 0, enum1, |
1205 |
0, fEnumerationCount); |
1205 |
0, fEnumerationCount); |
1206 |
} |
1206 |
} |
1207 |
// Determine whether the default value to be passed should be null. |
1207 |
// Determine whether the default value to be passed should be null. |
1208 |
// REVISIT: should probably check whether fLiteral.ch is null instead. LM. |
1208 |
// REVISIT: should probably check whether fLiteral.ch is null instead. LM. |
1209 |
if (defaultType!=null && (defaultType.equals("#REQUIRED") || |
1209 |
if (defaultType!=null && (defaultType.equals("#REQUIRED") || |
1210 |
defaultType.equals("#IMPLIED"))) { |
1210 |
defaultType.equals("#IMPLIED"))) { |
1211 |
fDTDHandler.attributeDecl(elName, name, type, enum, |
1211 |
fDTDHandler.attributeDecl(elName, name, type, enum1, |
1212 |
defaultType, null, null, null); |
1212 |
defaultType, null, null, null); |
1213 |
} |
1213 |
} |
1214 |
else { |
1214 |
else { |
1215 |
fDTDHandler.attributeDecl(elName, name, type, enum, |
1215 |
fDTDHandler.attributeDecl(elName, name, type, enum1, |
1216 |
defaultType, fLiteral, fLiteral2, null); |
1216 |
defaultType, fLiteral, fLiteral2, null); |
1217 |
} |
1217 |
} |
1218 |
} |
1218 |
} |