1 <?xml version="1.0" encoding="UTF-8"?> |
|
2 <!-- |
|
3 Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved. |
|
4 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
5 |
|
6 This code is free software; you can redistribute it and/or modify it |
|
7 under the terms of the GNU General Public License version 2 only, as |
|
8 published by the Free Software Foundation. Oracle designates this |
|
9 particular file as subject to the "Classpath" exception as provided |
|
10 by Oracle in the LICENSE file that accompanied this code. |
|
11 |
|
12 This code is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 version 2 for more details (a copy is included in the LICENSE file that |
|
16 accompanied this code). |
|
17 |
|
18 You should have received a copy of the GNU General Public License version |
|
19 2 along with this work; if not, write to the Free Software Foundation, |
|
20 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
21 |
|
22 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
23 or visit www.oracle.com if you need additional information or have any |
|
24 questions. |
|
25 --> |
|
26 |
|
27 <!DOCTYPE html |
|
28 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
|
29 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|
30 |
|
31 <html xmlns="http://www.w3.org/1999/xhtml"> |
|
32 |
|
33 <head> |
|
34 <title>javax.xml.transform.dom</title> |
|
35 |
|
36 <meta name="CVS" |
|
37 content="$Id: package.html,v 1.2 2005/06/10 03:50:40 jeffsuttor Exp $" /> |
|
38 <meta name="AUTHOR" |
|
39 content="Jeff.Suttor@Sun.com" /> |
|
40 </head> |
|
41 <body> |
|
42 <p>This package implements DOM-specific transformation APIs.</p> |
|
43 <p>The {@link javax.xml.transform.dom.DOMSource} class allows the |
|
44 client of the implementation of this API to specify a DOM |
|
45 {@link org.w3c.dom.Node} as the source of the input tree. The model of |
|
46 how the Transformer deals with the DOM tree in terms of mismatches with the |
|
47 <A href="http://www.w3.org/TR/xslt#data-model">XSLT data model</A> or |
|
48 other data models is beyond the scope of this document. Any of the nodes |
|
49 derived from {@link org.w3c.dom.Node} are legal input.</p> |
|
50 <p>The {@link javax.xml.transform.dom.DOMResult} class allows |
|
51 a {@link org.w3c.dom.Node} to be specified to which result DOM nodes will |
|
52 be appended. If an output node is not specified, the transformer will use |
|
53 {@link javax.xml.parsers.DocumentBuilder#newDocument} to create an |
|
54 output {@link org.w3c.dom.Document} node. If a node is specified, it |
|
55 should be one of the following: {@link org.w3c.dom.Document}, |
|
56 {@link org.w3c.dom.Element}, or |
|
57 {@link org.w3c.dom.DocumentFragment}. Specification of any other node |
|
58 type is implementation dependent and undefined by this API. If the result is a |
|
59 {@link org.w3c.dom.Document}, the output of the transformation must have |
|
60 a single element root to set as the document element.</p> |
|
61 <p>The {@link javax.xml.transform.dom.DOMLocator} node may be passed |
|
62 to {@link javax.xml.transform.TransformerException} objects, and |
|
63 retrieved by trying to cast the result of the |
|
64 {@link javax.xml.transform.TransformerException#getLocator()} method. |
|
65 The implementation has no responsibility to use a DOMLocator instead of a |
|
66 {@link javax.xml.transform.SourceLocator} (though line numbers and the |
|
67 like do not make much sense for a DOM), so the result of getLocator must always |
|
68 be tested with an instanceof. </p> |
|
69 </body> |
|
70 </html> |
|