public interface XsltGenerationContext extends XsltConstants
NS_CUSTOM_XSL, NS_PREFIX_CUSTOM_XSL, NS_PREFIX_XS, NS_PREFIX_XSI, NS_PREFIX_XSL, NS_PREFIX_XSL_DEFINITIONS, NS_URI_XSL, NS_XSL_DEFINITIONS
Modifier and Type | Method and Description |
---|---|
com.google.common.io.OutputSupplier<? extends OutputStream> |
addInclude()
Add an include to the XSL transformation.
|
Alignment |
getAlignment()
Get the alignment the XSLT is generated from.
|
String |
getInlineTemplateName(Cell typeCell)
Get the name of the inline template for a type cell.
|
NamespaceContext |
getNamespaceContext()
Get the namespace context available for the XSLT.
|
XslPropertyTransformation |
getPropertyTransformation(String functionId)
Get the property transformation for the given function identifier.
|
String |
getSourceContext(TypeDefinition type)
Get the context from which source instances of the given type should be
retrieved.
|
XmlIndex |
getSourceSchema()
Get the source schema.
|
XmlIndex |
getTargetSchema()
Get the target schema.
|
org.apache.velocity.Template |
loadTemplate(Class<?> transformation)
Load a velocity template associated to a XSL transformation or function
placed in a default location.
|
org.apache.velocity.Template |
loadTemplate(Class<?> transformation,
com.google.common.io.InputSupplier<? extends InputStream> resource,
String id)
Load a velocity template associated to a XSL transformation or function.
|
String |
reserveTemplateName(String desiredName)
Reserve a name for an XSL template if possible.
|
NamespaceContext getNamespaceContext()
String getSourceContext(TypeDefinition type)
type
- the type definitionAlignment getAlignment()
XmlIndex getSourceSchema()
XmlIndex getTargetSchema()
org.apache.velocity.Template loadTemplate(Class<?> transformation, com.google.common.io.InputSupplier<? extends InputStream> resource, String id) throws Exception
transformation
- the transformation or function classresource
- the resource the template can be retrieved fromid
- the identifier of the template, must be unique for this
template in context of the XSL transformationException
- if loading the template failedorg.apache.velocity.Template loadTemplate(Class<?> transformation) throws Exception
xsl
as file
extension. Please note that as id
for the template
null
will be used. The template encoding is assumed to be
UTF-8.transformation
- the transformation or function classException
- if loading the template failedcom.google.common.io.OutputSupplier<? extends OutputStream> addInclude()
transform
element of the XSL file. The encoding of the output should be UTF-8.String reserveTemplateName(String desiredName)
desiredName
- the desired template name to reserveXslPropertyTransformation getPropertyTransformation(String functionId)
functionId
- the function identifiernull
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a