public class XSLTransformer extends java.lang.Object implements Transformer
The normative specification for XSL Transformations is [XSLT]. Specification of a namespace-qualified stylesheet element, which MUST be the sole child of the Transform element, indicates that the specified style sheet should be used. Whether this instantiates in-line processing of local XSLT declarations within the resource is determined by the XSLT processing model; the ordered application of multiple stylesheet may require multiple Transforms. No special provision is made for the identification of a remote stylesheet at a given URI because it can be communicated via an xsl:include or xsl:import within the stylesheet child of the Transform.
This transform requires an octet stream as input. If the actual input is an XPath node-set, then the signature application should attempt to convert it to octets (apply Canonical XML]) as described in the Reference Processing Model
| Constructor and Description |
|---|
XSLTransformer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsAlgorithm(java.lang.String aAlgorithmURI)
Is transformer responsible for the algorithm given as parameter?
|
java.util.List<DataType> |
expectedDataTypes() |
DataType |
returnType() |
java.io.InputStream |
transform(java.lang.Object aObject,
java.lang.String aAlgorithmURI,
java.lang.Object[] aParams,
org.w3c.dom.Element aTransformElement,
java.lang.String aBaseURI)
Make the appropriate transform defined by algorithm according to
parameters
link{NodeList} |
public java.util.List<DataType> expectedDataTypes()
expectedDataTypes in interface Transformerpublic DataType returnType()
returnType in interface Transformerpublic boolean acceptsAlgorithm(java.lang.String aAlgorithmURI)
TransformeracceptsAlgorithm in interface TransformeraAlgorithmURI - algorithm URI declared in XMLdSig specpublic java.io.InputStream transform(java.lang.Object aObject,
java.lang.String aAlgorithmURI,
java.lang.Object[] aParams,
org.w3c.dom.Element aTransformElement,
java.lang.String aBaseURI)
throws XMLSignatureException
Transformerlink{NodeList}transform in interface TransformeraObject - object to be transformed, should be either
@link{NodeList} or @link{InputStream}
according to return type of expectedDataTypesaAlgorithmURI - algorithm defined b XMLdSig sprecaParams - algorithm parameters if anyaTransformElement - xml element where transform is declaredaBaseURI - where to find relative resoursesDataType
declared by Transformer.returnType()XMLSignatureException - if any problem occursCopyright © 2025. All rights reserved.