dleslie 00/12/18 13:24:05
Modified: java/xdocs/sources/xalan usagepatterns.xml
Log:
Warning about using DOMResult more than once without doing
a setNode().
Revision Changes Path
1.19 +2 -0 xml-xalan/java/xdocs/sources/xalan/usagepatterns.xml
Index: usagepatterns.xml
===================================================================
RCS file: /home/cvs/xml-xalan/java/xdocs/sources/xalan/usagepatterns.xml,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- usagepatterns.xml 2000/12/08 14:19:28 1.18
+++ usagepatterns.xml 2000/12/18 21:24:04 1.19
@@ -257,6 +257,8 @@
domResult;
// Now you can get the output Node from the DOMResult.
org.w3c.dom.Node node = domResult.getNode();</source>
+<note>Create a new DOMResult object or use DOMResult.setNode() to assign a
new container each time you want to perform a transformation
+and place the output in a DOMResult object.</note>
<p>The <link idref="samples" anchor="dom2dom">DOM2DOM</link> illustrates
both procedures, and serializes the DOMResult to System.out.</p>
</s2><anchor name="xpath"/>
<s2 title="Working with XPath expressions">