* this should not expand the special elements but should turn off encoding
* for the script and style elements
*/
public void testXMLBasedWriter() {
StringWriter writer = new StringWriter();
SGMLDTDBuilder builder = new SGMLDTDBuilder();
String[] elements = new String[] {"script","style"};
builder.setElementModel(elements, ElementModel.CDATA);
builder.setElementModel("base", ElementModel.EMPTY);
builder.setElementModel("DIVIDE HINT", ElementModel.EMPTY);
builder.setElementModel("KEEPTOGETHER", ElementModel.EMPTY);
DTD dtd = builder.buildDTD();
DocumentWriter dw = dtd.createDocumentWriter(writer);
DOMDocumentOutputter outputter = new DOMDocumentOutputter(
dw, encoder);