Allows the user to set specific attributes on the underlying
implementation. An attribute in this context is defined to
be an option that the implementation provides.
An IllegalArgumentException
is thrown if the underlying
implementation doesn't recognize the attribute.
All implementations that implement JAXP 1.5 or newer are required to
support the javax.xml.XMLConstants.ACCESS_EXTERNAL_DTD
and
javax.xml.XMLConstants.ACCESS_EXTERNAL_STYLESHEET
properties.
Access to external DTDs in the source file is restricted to the protocols
specified by the javax.xml.XMLConstants.ACCESS_EXTERNAL_DTD
property.
If access is denied during transformation due to the restriction of this property,
javax.xml.transform.TransformerException
will be thrown by
javax.xml.transform.Transformer.transform(Source, Result)
.
Access to external DTDs in the stylesheet is restricted to the protocols
specified by the javax.xml.XMLConstants.ACCESS_EXTERNAL_DTD
property.
If access is denied during the creation of a new transformer due to the
restriction of this property,
javax.xml.transform.TransformerConfigurationException
will be thrown
by the newTransformer(Source)
method.
Access to external reference set by the stylesheet processing instruction,
Import and Include element is restricted to the protocols specified by the
javax.xml.XMLConstants.ACCESS_EXTERNAL_STYLESHEET
property.
If access is denied during the creation of a new transformer due to the
restriction of this property,
javax.xml.transform.TransformerConfigurationException
will be thrown
by the newTransformer(Source)
method.
Access to external document through XSLT document function is restricted
to the protocols specified by the property. If access is denied during
the transformation due to the restriction of this property,
javax.xml.transform.TransformerException
will be thrown by the
javax.xml.transform.Transformer.transform(Source, Result)
method.
name | The name of the attribute. | |
value | The value of the attribute. |
IllegalArgumentException | When implementation does not recognize the attribute. |
Diagram: Transformer