@Test public void transformAnimalToDOMResult() { DOMResult r = new DOMResult(); Transform .source(Input.fromFile(TestResources.DOG_FILE).build()) .withStylesheet(Input.fromFile(TestResources.ANIMAL_XSL) .build()) .build() .to(r); assertEquals("dog", ((Document) r.getNode()).getDocumentElement().getTagName()); }
public static Builder source(Source s) { return new TransformationBuilder(s); }
Transform { public static Builder source(Source s) { return new TransformationBuilder(s); } }
Transform { public static Builder source(Source s) { return new TransformationBuilder(s); } private  Transform(); }
Transform { public static Builder source(Source s) { return new TransformationBuilder(s); } private  Transform(); static Builder source(Source s); }
Transform { public static Builder source(Source s) { return new TransformationBuilder(s); } private  Transform(); static Builder source(Source s);  }