// Inherit Javadoc.
public void startDocument(DissectableDocument document,
SharedContentUsages usages) throws DissectionException {
WBDOMDissectableDocument ddocument = (WBDOMDissectableDocument) document;
WBDOMDocument wbdomDocument = ddocument.getDocument();
strings = wbdomDocument.getStringFactory();
stringTable = new StringTable();
references = new StringReferenceFactory(
stringTable, strings);
resolver = new CopyReferenceResolver(references);
elementNameSerialiser = new WBSAXElementNameSerialiser(handler,
resolver);
attributeNameSerialiser = new WBSAXAttributeNameSerialiser(handler,
resolver);
attributeValueSerialiser = new WBSAXAttributeValueSerialiser(handler,
resolver);
attributesSerialiser = new WBSAXAttributesSerialiser(
handler, attributeNameSerialiser, attributeValueSerialiser,
configuration, urlListener);
elementValueSerialiser = new WBSAXElementValueSerialiser(handler,
resolver);
try {
handler.startDocument(wbdomDocument.getVersion(),
wbdomDocument.getPublicId(),
wbdomDocument.getCodec(), stringTable, strings);
} catch (WBSAXException e) {
throw new DissectionException(e);
}
}