jaxp/src/share/classes/javax/xml/transform/package.html
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 6 7f561c08de6b
permissions -rw-r--r--
Initial load
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6
7f561c08de6b Initial load
duke
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
7f561c08de6b Initial load
duke
parents:
diff changeset
     2
<!--
7f561c08de6b Initial load
duke
parents:
diff changeset
     3
Copyright 2000-2005 Sun Microsystems, Inc.  All Rights Reserved.
7f561c08de6b Initial load
duke
parents:
diff changeset
     4
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
7f561c08de6b Initial load
duke
parents:
diff changeset
     5
7f561c08de6b Initial load
duke
parents:
diff changeset
     6
This code is free software; you can redistribute it and/or modify it
7f561c08de6b Initial load
duke
parents:
diff changeset
     7
under the terms of the GNU General Public License version 2 only, as
7f561c08de6b Initial load
duke
parents:
diff changeset
     8
published by the Free Software Foundation.  Sun designates this
7f561c08de6b Initial load
duke
parents:
diff changeset
     9
particular file as subject to the "Classpath" exception as provided
7f561c08de6b Initial load
duke
parents:
diff changeset
    10
by Sun in the LICENSE file that accompanied this code.
7f561c08de6b Initial load
duke
parents:
diff changeset
    11
7f561c08de6b Initial load
duke
parents:
diff changeset
    12
This code is distributed in the hope that it will be useful, but WITHOUT
7f561c08de6b Initial load
duke
parents:
diff changeset
    13
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
7f561c08de6b Initial load
duke
parents:
diff changeset
    14
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
7f561c08de6b Initial load
duke
parents:
diff changeset
    15
version 2 for more details (a copy is included in the LICENSE file that
7f561c08de6b Initial load
duke
parents:
diff changeset
    16
accompanied this code).
7f561c08de6b Initial load
duke
parents:
diff changeset
    17
7f561c08de6b Initial load
duke
parents:
diff changeset
    18
You should have received a copy of the GNU General Public License version
7f561c08de6b Initial load
duke
parents:
diff changeset
    19
2 along with this work; if not, write to the Free Software Foundation,
7f561c08de6b Initial load
duke
parents:
diff changeset
    20
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
7f561c08de6b Initial load
duke
parents:
diff changeset
    21
7f561c08de6b Initial load
duke
parents:
diff changeset
    22
Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
7f561c08de6b Initial load
duke
parents:
diff changeset
    23
CA 95054 USA or visit www.sun.com if you need additional information or
7f561c08de6b Initial load
duke
parents:
diff changeset
    24
have any questions.
7f561c08de6b Initial load
duke
parents:
diff changeset
    25
-->
7f561c08de6b Initial load
duke
parents:
diff changeset
    26
7f561c08de6b Initial load
duke
parents:
diff changeset
    27
<!DOCTYPE html
7f561c08de6b Initial load
duke
parents:
diff changeset
    28
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
7f561c08de6b Initial load
duke
parents:
diff changeset
    29
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
7f561c08de6b Initial load
duke
parents:
diff changeset
    30
7f561c08de6b Initial load
duke
parents:
diff changeset
    31
<html xmlns="http://www.w3.org/1999/xhtml">
7f561c08de6b Initial load
duke
parents:
diff changeset
    32
7f561c08de6b Initial load
duke
parents:
diff changeset
    33
<head>
7f561c08de6b Initial load
duke
parents:
diff changeset
    34
  <title>javax.xml.transform</title>
7f561c08de6b Initial load
duke
parents:
diff changeset
    35
7f561c08de6b Initial load
duke
parents:
diff changeset
    36
  <meta name="CVS"
7f561c08de6b Initial load
duke
parents:
diff changeset
    37
        content="$Id: package.html,v 1.2 2005/06/10 03:50:39 jeffsuttor Exp $" />
7f561c08de6b Initial load
duke
parents:
diff changeset
    38
  <meta name="AUTHOR"
7f561c08de6b Initial load
duke
parents:
diff changeset
    39
        content="Jeff.Suttor@Sun.com" />
7f561c08de6b Initial load
duke
parents:
diff changeset
    40
</head>
7f561c08de6b Initial load
duke
parents:
diff changeset
    41
7f561c08de6b Initial load
duke
parents:
diff changeset
    42
<body>
7f561c08de6b Initial load
duke
parents:
diff changeset
    43
<p>This package defines the generic APIs for processing transformation
7f561c08de6b Initial load
duke
parents:
diff changeset
    44
instructions, and performing a transformation from source to result. These
7f561c08de6b Initial load
duke
parents:
diff changeset
    45
interfaces have no dependencies on SAX or the DOM standard, and try to make as
7f561c08de6b Initial load
duke
parents:
diff changeset
    46
few assumptions as possible about the details of the source and result of a
7f561c08de6b Initial load
duke
parents:
diff changeset
    47
transformation. It achieves this by defining
7f561c08de6b Initial load
duke
parents:
diff changeset
    48
{@link javax.xml.transform.Source} and
7f561c08de6b Initial load
duke
parents:
diff changeset
    49
{@link javax.xml.transform.Result} interfaces.
7f561c08de6b Initial load
duke
parents:
diff changeset
    50
</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    51
7f561c08de6b Initial load
duke
parents:
diff changeset
    52
<p>To define concrete classes for the user, the API defines specializations
7f561c08de6b Initial load
duke
parents:
diff changeset
    53
of the interfaces found at the root level. These interfaces are found in
7f561c08de6b Initial load
duke
parents:
diff changeset
    54
{@link javax.xml.transform.sax}, {@link javax.xml.transform.dom},
7f561c08de6b Initial load
duke
parents:
diff changeset
    55
and {@link javax.xml.transform.stream}.
7f561c08de6b Initial load
duke
parents:
diff changeset
    56
</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    57
7f561c08de6b Initial load
duke
parents:
diff changeset
    58
7f561c08de6b Initial load
duke
parents:
diff changeset
    59
<h3>Creating Objects</h3>
7f561c08de6b Initial load
duke
parents:
diff changeset
    60
7f561c08de6b Initial load
duke
parents:
diff changeset
    61
<p>The API allows a concrete
7f561c08de6b Initial load
duke
parents:
diff changeset
    62
{@link javax.xml.transform.TransformerFactory} object to be created from
7f561c08de6b Initial load
duke
parents:
diff changeset
    63
the static function
7f561c08de6b Initial load
duke
parents:
diff changeset
    64
{@link javax.xml.transform.TransformerFactory#newInstance}.
7f561c08de6b Initial load
duke
parents:
diff changeset
    65
</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    66
7f561c08de6b Initial load
duke
parents:
diff changeset
    67
7f561c08de6b Initial load
duke
parents:
diff changeset
    68
<h3>Specification of Inputs and Outputs</h3>
7f561c08de6b Initial load
duke
parents:
diff changeset
    69
7f561c08de6b Initial load
duke
parents:
diff changeset
    70
<p>This API defines two interface objects called
7f561c08de6b Initial load
duke
parents:
diff changeset
    71
{@link javax.xml.transform.Source} and
7f561c08de6b Initial load
duke
parents:
diff changeset
    72
{@link javax.xml.transform.Result}. In order to pass Source and Result
7f561c08de6b Initial load
duke
parents:
diff changeset
    73
objects to the interfaces, concrete classes must be used.
7f561c08de6b Initial load
duke
parents:
diff changeset
    74
Three concrete representations are defined for each of these
7f561c08de6b Initial load
duke
parents:
diff changeset
    75
objects:
7f561c08de6b Initial load
duke
parents:
diff changeset
    76
{@link javax.xml.transform.stream.StreamSource} and
7f561c08de6b Initial load
duke
parents:
diff changeset
    77
{@link javax.xml.transform.stream.StreamResult},
7f561c08de6b Initial load
duke
parents:
diff changeset
    78
{@link javax.xml.transform.sax.SAXSource} and
7f561c08de6b Initial load
duke
parents:
diff changeset
    79
{@link javax.xml.transform.sax.SAXResult}, and
7f561c08de6b Initial load
duke
parents:
diff changeset
    80
{@link javax.xml.transform.dom.DOMSource} and
7f561c08de6b Initial load
duke
parents:
diff changeset
    81
{@link javax.xml.transform.dom.DOMResult}. Each of these objects defines
7f561c08de6b Initial load
duke
parents:
diff changeset
    82
a FEATURE string (which is i the form of a URL), which can be passed into
7f561c08de6b Initial load
duke
parents:
diff changeset
    83
{@link javax.xml.transform.TransformerFactory#getFeature} to see if the
7f561c08de6b Initial load
duke
parents:
diff changeset
    84
given type of Source or Result object is supported. For instance, to test if a
7f561c08de6b Initial load
duke
parents:
diff changeset
    85
DOMSource and a StreamResult is supported, you can apply the following
7f561c08de6b Initial load
duke
parents:
diff changeset
    86
test.
7f561c08de6b Initial load
duke
parents:
diff changeset
    87
</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
    88
7f561c08de6b Initial load
duke
parents:
diff changeset
    89
<pre>
7f561c08de6b Initial load
duke
parents:
diff changeset
    90
<code>
7f561c08de6b Initial load
duke
parents:
diff changeset
    91
TransformerFactory tfactory = TransformerFactory.newInstance();
7f561c08de6b Initial load
duke
parents:
diff changeset
    92
if (tfactory.getFeature(DOMSource.FEATURE) &amp;&amp; tfactory.getFeature(StreamResult.FEATURE)) {
7f561c08de6b Initial load
duke
parents:
diff changeset
    93
...
7f561c08de6b Initial load
duke
parents:
diff changeset
    94
}
7f561c08de6b Initial load
duke
parents:
diff changeset
    95
</code>
7f561c08de6b Initial load
duke
parents:
diff changeset
    96
</pre>
7f561c08de6b Initial load
duke
parents:
diff changeset
    97
7f561c08de6b Initial load
duke
parents:
diff changeset
    98
7f561c08de6b Initial load
duke
parents:
diff changeset
    99
<h3>
7f561c08de6b Initial load
duke
parents:
diff changeset
   100
<a name="qname-delimiter">Qualified Name Representation</a>
7f561c08de6b Initial load
duke
parents:
diff changeset
   101
</h3>
7f561c08de6b Initial load
duke
parents:
diff changeset
   102
7f561c08de6b Initial load
duke
parents:
diff changeset
   103
<p><a href="http://www.w3.org/TR/REC-xml-names">Namespaces</a>
7f561c08de6b Initial load
duke
parents:
diff changeset
   104
present something of a problem area when dealing with XML objects. Qualified
7f561c08de6b Initial load
duke
parents:
diff changeset
   105
Names appear in XML markup as prefixed names. But the prefixes themselves do
7f561c08de6b Initial load
duke
parents:
diff changeset
   106
not hold identity. Rather, it is the URIs that they contextually map to that
7f561c08de6b Initial load
duke
parents:
diff changeset
   107
hold the identity. Therefore, when passing a Qualified Name like "xyz:foo"
7f561c08de6b Initial load
duke
parents:
diff changeset
   108
among Java programs, one must provide a means to map "xyz" to a namespace.
7f561c08de6b Initial load
duke
parents:
diff changeset
   109
</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   110
7f561c08de6b Initial load
duke
parents:
diff changeset
   111
<p>One solution has been to create a "QName" object that holds the
7f561c08de6b Initial load
duke
parents:
diff changeset
   112
namespace URI, as well as the prefix and local name, but this is not always an
7f561c08de6b Initial load
duke
parents:
diff changeset
   113
optimal solution, as when, for example, you want to use unique strings as keys
7f561c08de6b Initial load
duke
parents:
diff changeset
   114
in a dictionary object. Not having a string representation also makes it
7f561c08de6b Initial load
duke
parents:
diff changeset
   115
difficult to specify a namespaced identity outside the context of an XML
7f561c08de6b Initial load
duke
parents:
diff changeset
   116
document.
7f561c08de6b Initial load
duke
parents:
diff changeset
   117
</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   118
7f561c08de6b Initial load
duke
parents:
diff changeset
   119
<p>In order to pass namespaced values to transformations,
7f561c08de6b Initial load
duke
parents:
diff changeset
   120
for 
7f561c08de6b Initial load
duke
parents:
diff changeset
   121
instance when setting a property or a parameter on a 
7f561c08de6b Initial load
duke
parents:
diff changeset
   122
{@link javax.xml.transform.Transformer} object,
7f561c08de6b Initial load
duke
parents:
diff changeset
   123
this specification defines that a
7f561c08de6b Initial load
duke
parents:
diff changeset
   124
String "qname" object parameter be passed as two-part string, the namespace URI
7f561c08de6b Initial load
duke
parents:
diff changeset
   125
enclosed in curly braces ({}), followed by the local name. If the qname has a
7f561c08de6b Initial load
duke
parents:
diff changeset
   126
null URI, then the String object only contains the local name. An application
7f561c08de6b Initial load
duke
parents:
diff changeset
   127
can safely check for a non-null URI by testing to see if the first character of
7f561c08de6b Initial load
duke
parents:
diff changeset
   128
the name is a '{' character.
7f561c08de6b Initial load
duke
parents:
diff changeset
   129
</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   130
7f561c08de6b Initial load
duke
parents:
diff changeset
   131
<p>For example, if a URI and local name were obtained from an element
7f561c08de6b Initial load
duke
parents:
diff changeset
   132
defined with &lt;xyz:foo xmlns:xyz="http://xyz.foo.com/yada/baz.html"/&gt;,
7f561c08de6b Initial load
duke
parents:
diff changeset
   133
then the Qualified Name would be "{http://xyz.foo.com/yada/baz.html}foo".
7f561c08de6b Initial load
duke
parents:
diff changeset
   134
Note that the prefix is lost.
7f561c08de6b Initial load
duke
parents:
diff changeset
   135
</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   136
7f561c08de6b Initial load
duke
parents:
diff changeset
   137
7f561c08de6b Initial load
duke
parents:
diff changeset
   138
<h3>Result Tree Serialization</h3>
7f561c08de6b Initial load
duke
parents:
diff changeset
   139
7f561c08de6b Initial load
duke
parents:
diff changeset
   140
<p>Serialization of the result tree to a stream can be controlled with
7f561c08de6b Initial load
duke
parents:
diff changeset
   141
the {@link javax.xml.transform.Transformer#setOutputProperties} and the
7f561c08de6b Initial load
duke
parents:
diff changeset
   142
{@link javax.xml.transform.Transformer#setOutputProperty} methods.
7f561c08de6b Initial load
duke
parents:
diff changeset
   143
These properties only apply to stream results, they have no effect when
7f561c08de6b Initial load
duke
parents:
diff changeset
   144
the result is a DOM tree or SAX event stream.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   145
7f561c08de6b Initial load
duke
parents:
diff changeset
   146
<p>Strings that match the <a href="http://www.w3.org/TR/xslt#output">XSLT
7f561c08de6b Initial load
duke
parents:
diff changeset
   147
specification for xsl:output attributes</a> can be referenced from the
7f561c08de6b Initial load
duke
parents:
diff changeset
   148
{@link javax.xml.transform.OutputKeys} class. Other strings can be
7f561c08de6b Initial load
duke
parents:
diff changeset
   149
specified as well.
7f561c08de6b Initial load
duke
parents:
diff changeset
   150
If the transformer does not recognize an output key, a
7f561c08de6b Initial load
duke
parents:
diff changeset
   151
{@link java.lang.IllegalArgumentException} is thrown, unless the
7f561c08de6b Initial load
duke
parents:
diff changeset
   152
key name is <a href="#qname-delimiter">namespace qualified</a>. Output key names
7f561c08de6b Initial load
duke
parents:
diff changeset
   153
that are namespace qualified are always allowed, although they may be
7f561c08de6b Initial load
duke
parents:
diff changeset
   154
ignored by some implementations.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   155
7f561c08de6b Initial load
duke
parents:
diff changeset
   156
<p>If all that is desired is the simple identity transformation of a
7f561c08de6b Initial load
duke
parents:
diff changeset
   157
source to a result, then {@link javax.xml.transform.TransformerFactory}
7f561c08de6b Initial load
duke
parents:
diff changeset
   158
provides a
7f561c08de6b Initial load
duke
parents:
diff changeset
   159
{@link javax.xml.transform.TransformerFactory#newTransformer()} method
7f561c08de6b Initial load
duke
parents:
diff changeset
   160
with no arguments. This method creates a Transformer that effectively copies
7f561c08de6b Initial load
duke
parents:
diff changeset
   161
the source to the result. This method may be used to create a DOM from SAX
7f561c08de6b Initial load
duke
parents:
diff changeset
   162
events or to create an XML or HTML stream from a DOM or SAX events.  </p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   163
7f561c08de6b Initial load
duke
parents:
diff changeset
   164
<h3>Exceptions and Error Reporting</h3>
7f561c08de6b Initial load
duke
parents:
diff changeset
   165
7f561c08de6b Initial load
duke
parents:
diff changeset
   166
<p>The transformation API throw three types of specialized exceptions. A
7f561c08de6b Initial load
duke
parents:
diff changeset
   167
{@link javax.xml.transform.TransformerFactoryConfigurationError} is parallel to
7f561c08de6b Initial load
duke
parents:
diff changeset
   168
the {@link javax.xml.parsers.FactoryConfigurationError}, and is thrown
7f561c08de6b Initial load
duke
parents:
diff changeset
   169
when a configuration problem with the TransformerFactory exists. This error
7f561c08de6b Initial load
duke
parents:
diff changeset
   170
will typically be thrown when the transformation factory class specified with
7f561c08de6b Initial load
duke
parents:
diff changeset
   171
the "javax.xml.transform.TransformerFactory" system property cannot be found or
7f561c08de6b Initial load
duke
parents:
diff changeset
   172
instantiated.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   173
7f561c08de6b Initial load
duke
parents:
diff changeset
   174
<p>A {@link javax.xml.transform.TransformerConfigurationException}
7f561c08de6b Initial load
duke
parents:
diff changeset
   175
may be thrown if for any reason a Transformer can not be created. A
7f561c08de6b Initial load
duke
parents:
diff changeset
   176
TransformerConfigurationException may be thrown if there is a syntax error in
7f561c08de6b Initial load
duke
parents:
diff changeset
   177
the transformation instructions, for example when
7f561c08de6b Initial load
duke
parents:
diff changeset
   178
{@link javax.xml.transform.TransformerFactory#newTransformer} is
7f561c08de6b Initial load
duke
parents:
diff changeset
   179
called.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   180
7f561c08de6b Initial load
duke
parents:
diff changeset
   181
<p>{@link javax.xml.transform.TransformerException} is a general
7f561c08de6b Initial load
duke
parents:
diff changeset
   182
exception that occurs during the course of a transformation. A transformer
7f561c08de6b Initial load
duke
parents:
diff changeset
   183
exception may wrap another exception, and if any of the
7f561c08de6b Initial load
duke
parents:
diff changeset
   184
{@link javax.xml.transform.TransformerException#printStackTrace()}
7f561c08de6b Initial load
duke
parents:
diff changeset
   185
methods are called on it, it will produce a list of stack dumps, starting from
7f561c08de6b Initial load
duke
parents:
diff changeset
   186
the most recent. The transformer exception also provides a
7f561c08de6b Initial load
duke
parents:
diff changeset
   187
{@link javax.xml.transform.SourceLocator} object which indicates where
7f561c08de6b Initial load
duke
parents:
diff changeset
   188
in the source tree or transformation instructions the error occurred.
7f561c08de6b Initial load
duke
parents:
diff changeset
   189
{@link javax.xml.transform.TransformerException#getMessageAndLocation()}
7f561c08de6b Initial load
duke
parents:
diff changeset
   190
may be called to get an error message with location info, and
7f561c08de6b Initial load
duke
parents:
diff changeset
   191
{@link javax.xml.transform.TransformerException#getLocationAsString()}
7f561c08de6b Initial load
duke
parents:
diff changeset
   192
may be called to get just the location string.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   193
7f561c08de6b Initial load
duke
parents:
diff changeset
   194
<p>Transformation warnings and errors are sent to an
7f561c08de6b Initial load
duke
parents:
diff changeset
   195
{@link javax.xml.transform.ErrorListener}, at which point the
7f561c08de6b Initial load
duke
parents:
diff changeset
   196
application may decide to report the error or warning, and may decide to throw
7f561c08de6b Initial load
duke
parents:
diff changeset
   197
an <code>Exception</code> for a non-fatal error. The <code>ErrorListener</code> may be set via
7f561c08de6b Initial load
duke
parents:
diff changeset
   198
{@link javax.xml.transform.TransformerFactory#setErrorListener} for
7f561c08de6b Initial load
duke
parents:
diff changeset
   199
reporting errors that have to do with syntax errors in the transformation
7f561c08de6b Initial load
duke
parents:
diff changeset
   200
instructions, or via
7f561c08de6b Initial load
duke
parents:
diff changeset
   201
{@link javax.xml.transform.Transformer#setErrorListener} to report
7f561c08de6b Initial load
duke
parents:
diff changeset
   202
errors that occur during the transformation. The <code>ErrorListener</code> on both objects
7f561c08de6b Initial load
duke
parents:
diff changeset
   203
will always be valid and non-<code>null</code>, whether set by the application or a default
7f561c08de6b Initial load
duke
parents:
diff changeset
   204
implementation provided by the processor.
7f561c08de6b Initial load
duke
parents:
diff changeset
   205
The default implementation provided by the processor will report all warnings and errors to <code>System.err</code>
7f561c08de6b Initial load
duke
parents:
diff changeset
   206
and does not throw any <code>Exception</code>s.
7f561c08de6b Initial load
duke
parents:
diff changeset
   207
Applications are <em>strongly</em> encouraged to register and use
7f561c08de6b Initial load
duke
parents:
diff changeset
   208
<code>ErrorListener</code>s that insure proper behavior for warnings and
7f561c08de6b Initial load
duke
parents:
diff changeset
   209
errors.
7f561c08de6b Initial load
duke
parents:
diff changeset
   210
</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   211
7f561c08de6b Initial load
duke
parents:
diff changeset
   212
7f561c08de6b Initial load
duke
parents:
diff changeset
   213
<h3>Resolution of URIs within a transformation</h3>
7f561c08de6b Initial load
duke
parents:
diff changeset
   214
7f561c08de6b Initial load
duke
parents:
diff changeset
   215
<p>The API provides a way for URIs referenced from within the stylesheet
7f561c08de6b Initial load
duke
parents:
diff changeset
   216
instructions or within the transformation to be resolved by the calling
7f561c08de6b Initial load
duke
parents:
diff changeset
   217
application. This can be done by creating a class that implements the
7f561c08de6b Initial load
duke
parents:
diff changeset
   218
{@link javax.xml.transform.URIResolver} interface, with its one method,
7f561c08de6b Initial load
duke
parents:
diff changeset
   219
{@link javax.xml.transform.URIResolver#resolve}, and use this class to
7f561c08de6b Initial load
duke
parents:
diff changeset
   220
set the URI resolution for the transformation instructions or transformation
7f561c08de6b Initial load
duke
parents:
diff changeset
   221
with {@link javax.xml.transform.TransformerFactory#setURIResolver} or
7f561c08de6b Initial load
duke
parents:
diff changeset
   222
{@link javax.xml.transform.Transformer#setURIResolver}. The
7f561c08de6b Initial load
duke
parents:
diff changeset
   223
<code>URIResolver.resolve</code> method takes two String arguments, the URI found in the
7f561c08de6b Initial load
duke
parents:
diff changeset
   224
stylesheet instructions or built as part of the transformation process, and the
7f561c08de6b Initial load
duke
parents:
diff changeset
   225
base URI 
7f561c08de6b Initial load
duke
parents:
diff changeset
   226
against which the first argument will be made absolute if the
7f561c08de6b Initial load
duke
parents:
diff changeset
   227
absolute URI is required.
7f561c08de6b Initial load
duke
parents:
diff changeset
   228
The returned {@link javax.xml.transform.Source} object must be usable by
7f561c08de6b Initial load
duke
parents:
diff changeset
   229
the transformer, as specified in its implemented features.</p>
7f561c08de6b Initial load
duke
parents:
diff changeset
   230
7f561c08de6b Initial load
duke
parents:
diff changeset
   231
7f561c08de6b Initial load
duke
parents:
diff changeset
   232
</body>
7f561c08de6b Initial load
duke
parents:
diff changeset
   233
</html>