< prev index next >

src/java.xml/share/classes/javax/xml/transform/dom/DOMSource.java

Print this page




  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.xml.transform.dom;
  27 
  28 import javax.xml.transform.Source;
  29 
  30 import org.w3c.dom.Node;
  31 
  32 /**
  33  * <p>Acts as a holder for a transformation Source tree in the
  34  * form of a Document Object Model (DOM) tree.</p>
  35  *
  36  * <p>Note that XSLT requires namespace support. Attempting to transform a DOM
  37  * that was not contructed with a namespace-aware parser may result in errors.
  38  * Parsers can be made namespace aware by calling
  39  * {@link javax.xml.parsers.DocumentBuilderFactory#setNamespaceAware(boolean awareness)}.</p>
  40  *
  41  * @author <a href="Jeff.Suttor@Sun.com">Jeff Suttor</a>
  42  * @see <a href="http://www.w3.org/TR/DOM-Level-2">Document Object Model (DOM) Level 2 Specification</a>
  43  * @since 1.4
  44  */
  45 public class DOMSource implements Source {
  46 
  47     /**
  48      * <p><code>Node</code> to serve as DOM source.</p>
  49      */
  50     private Node node;
  51 
  52     /**
  53      * <p>The base ID (URL or system ID) from where URLs
  54      * will be resolved.</p>
  55      */
  56     private String systemID;
  57 
  58     /** If {@link javax.xml.transform.TransformerFactory#getFeature}
  59      * returns true when passed this value as an argument,
  60      * the Transformer supports Source input of this type.
  61      */




  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javax.xml.transform.dom;
  27 
  28 import javax.xml.transform.Source;
  29 
  30 import org.w3c.dom.Node;
  31 
  32 /**
  33  * <p>Acts as a holder for a transformation Source tree in the
  34  * form of a Document Object Model (DOM) tree.</p>
  35  *
  36  * <p>Note that XSLT requires namespace support. Attempting to transform a DOM
  37  * that was not contructed with a namespace-aware parser may result in errors.
  38  * Parsers can be made namespace aware by calling
  39  * {@link javax.xml.parsers.DocumentBuilderFactory#setNamespaceAware(boolean awareness)}.</p>
  40  *
  41  * @author Jeff Suttor
  42  * @see <a href="http://www.w3.org/TR/DOM-Level-2">Document Object Model (DOM) Level 2 Specification</a>
  43  * @since 1.4
  44  */
  45 public class DOMSource implements Source {
  46 
  47     /**
  48      * <p><code>Node</code> to serve as DOM source.</p>
  49      */
  50     private Node node;
  51 
  52     /**
  53      * <p>The base ID (URL or system ID) from where URLs
  54      * will be resolved.</p>
  55      */
  56     private String systemID;
  57 
  58     /** If {@link javax.xml.transform.TransformerFactory#getFeature}
  59      * returns true when passed this value as an argument,
  60      * the Transformer supports Source input of this type.
  61      */


< prev index next >