/** * Copy this node to a given outputter (deep copy) */ public void copy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId) throws XPathException { // The underlying code does not do whitespace stripping. So we need to interpose // a stripper. Stripper stripper = docWrapper.getStripper().getAnother(); stripper.setUnderlyingReceiver(out); node.copy(stripper, whichNamespaces, copyAnnotations, locationId); }
/** * Copy this node to a given outputter (deep copy) */ public void copy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId) throws XPathException { // The underlying code does not do whitespace stripping. So we need to interpose // a stripper. Stripper stripper = docWrapper.getStripper().getAnother(); stripper.setUnderlyingReceiver(out); node.copy(stripper, whichNamespaces, copyAnnotations, locationId); }
/** * Copy this node to a given outputter (deep copy) */ public void copy(Receiver out, int whichNamespaces, boolean copyAnnotations, int locationId) throws XPathException { // The underlying code does not do whitespace stripping. So we need to interpose // a stripper. Stripper stripper = docWrapper.getStripper().getAnother(); stripper.setUnderlyingReceiver(out); node.copy(stripper, whichNamespaces, copyAnnotations, locationId); }
/** * Override the behaviour of startDocument() in ReceivingContentHandler */ public void startDocument() throws SAXException { if (result==null) { result = new StreamResult(System.out); } try { Properties props = controller.getOutputProperties(); PipelineConfiguration pipe = controller.makePipelineConfiguration(); Configuration config = getConfiguration(); SerializerFactory sf = config.getSerializerFactory(); Receiver out = sf.getReceiver(result, pipe, props); setPipelineConfiguration(pipe); int stripSpace = config.getStripsWhiteSpace(); if (stripSpace == Whitespace.ALL) { Stripper s = new AllElementStripper(); s.setStripAll(); s.setPipelineConfiguration(pipe); s.setUnderlyingReceiver(out); out = s; } setReceiver(out); } catch (XPathException err) { throw new SAXException(err); } super.startDocument(); }
} else { Stripper s = new AllElementStripper(); s.setUnderlyingReceiver(b); s.setPipelineConfiguration(b.getPipelineConfiguration()); return s; } else { stripper.setPipelineConfiguration(b.getPipelineConfiguration()); stripper.setUnderlyingReceiver(b);
} else { Stripper s = new AllElementStripper(); s.setUnderlyingReceiver(b); s.setPipelineConfiguration(b.getPipelineConfiguration()); return s; } else { stripper.setPipelineConfiguration(b.getPipelineConfiguration()); stripper.setUnderlyingReceiver(b);
stripper.setUnderlyingReceiver(b); receiver = stripper;
stripper.setUnderlyingReceiver(b); receiver = stripper;
stripper.setUnderlyingReceiver(b); receiver = stripper;
s.setStripAll(); s.setPipelineConfiguration(pipe); s.setUnderlyingReceiver(receiver); next = s; } else if (stripSpace == Whitespace.XSLT) {
s.setStripAll(); s.setPipelineConfiguration(pipe); s.setUnderlyingReceiver(receiver); next = s; } else if (stripSpace == Whitespace.XSLT) {