public class XSLTTransformParameterImpl extends AlgorithmParameterImpl
DOMStructure.NodeWrapper| Modifier and Type | Field and Description |
|---|---|
protected Node |
stylesheet_ |
protected Node |
stylesheetCpy_
The root node of the stylesheet.
|
implMap_, state_, STATE_CREATED, STATE_MARSHALED, STATE_UNINITIALIZED, STATE_UNMARSHALED| Constructor and Description |
|---|
XSLTTransformParameterImpl(DOMCryptoContext context,
Node node)
Creates a new instance of this
XSLTTransformParameterImpl with
the specified provider config, context and node to unmarshal from. |
XSLTTransformParameterImpl(Node stylesheet)
Creates a new instance of this
XSLTTransformParameterImpl with
the specified provider config, stylesheet node and mapping of the
stylesheet to specific nodes of the stylesheet element. |
| Modifier and Type | Method and Description |
|---|---|
String |
getLocalName()
Returns the local name of the represented XML element.
|
String |
getNamespace()
Returns the namespace URI of the represented XML element.
|
Node |
getStylesheet()
Returns the namespace qualified stylesheet element.
|
protected void |
marshalAttributes(DOMCryptoContext context,
Element parent)
Override method from
DOMStructure to not marshal any attributes, because
otherwise a default namespace declaration of "http://www.w3.org/TR/REC-html40"
in an embedded stylesheet maybe overwritten by the "http://www.w3.org/1999/XSL/Transform"
URI, which will cause a TransformerException stating that "html"
is not allowed. |
Element |
marshalElement(DOMCryptoContext context,
Node parent,
Node nextSibling)
Marshals the XML representation of the
Element represented by this
DOMStructure and returns it. |
void |
unmarshal(DOMCryptoContext context)
Unmarshals this
DOMStructure from its XML representation. |
setParentStructureaddBytesToElement, addBytesToElement, clearMarshalling, clearMarshalling, getBytesFromElement, getBytesFromElementStream, getChildStructures, getChildStructureVersion, getHere, getImplClass, getInstance, getInstance, getNode, getParentStructure, getParentStructureOf, getQualifiedName, getQualifiedName, hasNSDeclAttrInScope, isFeatureSupported, isNSDeclInScope, marshal, marshalIDAttribute, newIDforLookUp, putChildStructure, putImplClass, setBackToCompatibilityPrior1_14, setNode, toString, unmarshalAttributes, unmarshalElement, unmarshalIDAttribute, unmarshalStructures, wrapNodeprotected Node stylesheetCpy_
null)protected Node stylesheet_
public XSLTTransformParameterImpl(DOMCryptoContext context, Node node) throws MarshalException
XSLTTransformParameterImpl with
the specified provider config, context and node to unmarshal from.context - the contextnode - the node to unmarshal fromMarshalException - if an excpetion occurs during unmarshalingpublic XSLTTransformParameterImpl(Node stylesheet)
XSLTTransformParameterImpl with
the specified provider config, stylesheet node and mapping of the
stylesheet to specific nodes of the stylesheet element.stylesheet - the stylesheet nodepublic String getLocalName()
DOMStructuregetLocalName in class DOMStructureDOMStructure.getLocalName()public String getNamespace()
DOMStructuregetNamespace in class DOMStructureDOMStructure.getNamespace()public Element marshalElement(DOMCryptoContext context, Node parent, Node nextSibling) throws MarshalException
DOMStructureElement represented by this
DOMStructure and returns it.
This method is called by DOMStructure.marshal(DOMCryptoContext, Node, Node).
marshalElement in class DOMStructurecontext - the marshal contextparent - where to place the marshalled elementnextSibling - before which to place the marshalled nodeElementMarshalException - if an exception occurs during marshalingDOMStructure.marshalElement(DOMCryptoContext,
Node, Node)public void unmarshal(DOMCryptoContext context) throws MarshalException
DOMStructureDOMStructure from its XML representation.
unmarshal in class DOMStructurecontext - the marshaling contextMarshalException - if an exception occurs during marshalingDOMStructure.unmarshal(DOMCryptoContext)public Node getStylesheet()
The stylesheet element has been defensively copied to a new document.
protected void marshalAttributes(DOMCryptoContext context, Element parent) throws MarshalException
DOMStructure to not marshal any attributes, because
otherwise a default namespace declaration of "http://www.w3.org/TR/REC-html40"
in an embedded stylesheet maybe overwritten by the "http://www.w3.org/1999/XSL/Transform"
URI, which will cause a TransformerException stating that "html"
is not allowed.
XSLT namespace that maybe declared
in the DOMCryptoContext will be ignored for marshaling.marshalAttributes in class DOMStructurecontext - the marshal contextparent - the element is the parent of the attribute node created however, an
the attribute node is not a child of it's parent element. see XPath.MarshalException - If the namespace decalaration of the parent (i.e. the stylesheet)
element is out of scope.© 2002-2005 IAIK, © 2004, 2006 - 2019 Stiftung SIC