assertTrue(t.passed);
}
// Document
{
String parser = XMLResourceDescriptor.getXMLParserClassName();
SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parser);
Document doc = f.createDocument(TEST_URI);
TranscoderInput ti = new TranscoderInput(doc);
ti.setURI(TEST_URI);
t = new TestTranscoder();
t.transcode(ti, out);
assertTrue(t.passed);
}
// Generic Document
{
String parser = XMLResourceDescriptor.getXMLParserClassName();
DOMImplementation impl =
GenericDOMImplementation.getDOMImplementation();
SAXDocumentFactory f = new SAXDocumentFactory(impl, parser);
Document doc = f.createDocument(TEST_URI);
TranscoderInput ti = new TranscoderInput(doc);
ti.setURI(TEST_URI);
t = new TestTranscoder();
t.transcode(ti, out);
assertTrue(t.passed);