...
Here are some example URIs
Div |
---|
class | confluenceTableSmall |
---|
|
Wiki Markup |
---|
{div:class=confluenceTableSmall}
|| URI || Description ||
| {code}xslt:com/acme/mytransform.xsl |
|
{code} | refers to the file | refers to the file com/acme/mytransform.xsl |
classpath |
| {code}classpath | Code Block |
---|
xslt:file:///foo/bar.xsl |
|
{code} | refers to the file | refers to the file /foo/bar.xsl |
|
| {code} | Code Block |
---|
xslt:http://acme.com/cheese/foo.xsl |
|
{code} | refers to the remote http resource |
{div} | refers to the remote http resource |
|
Maven users will need to add the following dependency to their pom.xml
for this component when using Camel 2.8 or older:
...
From Camel 2.9 onwards the XSLT component is provided directly in the camel-core.
Options
Div |
---|
class | confluenceTableSmall |
---|
|
Name | Default Value | Description |
---|
converter | null | Option to override default XmlConverter. Will lookup for the converter in the Registry. The provided converted must be of type |
|
Wiki Markup |
---|
{div:class=confluenceTableSmall}
|| Name || Default Value || Description ||
| {{converter}} | {{null}} | Option to override default [XmlConverter|http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/converter/jaxp/XmlConverter.html]. Will lookup for the converter in the [Registry]. The provided converted must be of type org.apache.camel.converter.jaxp.XmlConverter. |
|
| {{transformerFactory}} | {{null}} | Option to override default [TransformerFactory|http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/transform/TransformerFactory.html]. Will lookup for the transformerFactory in the [Registry]. The provided transformer factory must be of type | transformerFactory | null | Option to override default TransformerFactory. Will lookup for the transformerFactory in the Registry. The provided transformer factory must be of type javax.xml.transform.TransformerFactory. |
|
| {{transformerFactoryClass}} | {{null}} | Option to override default [TransformerFactory|http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/transform/TransformerFactory.html]. Will create a TransformerFactoryClass instance and set it to the converter. |
| {{uriResolver}} | {{null}} | *Camel 2.3*: Allows you to use a custom {{ | transformerFactoryClass | null | Option to override default TransformerFactory. Will create a TransformerFactoryClass instance and set it to the converter. | uriResolver | null | Camel 2.3: Allows you to use a custom javax.xml.transformation.URIResolver |
}} {{org.apache.camel.builder.xml.XsltUriResolver
|
}} |
| {{resultHandlerFactory}} | {{null}} | *Camel | resultHandlerFactory | null | Camel 2.3: |
* {{org.apache.camel.builder.xml.ResultHandlerFactory
|
}} {{org.apache.camel.builder.xml.ResultHandler
|
}} |
| {{failOnNullBody}} | {{true}} | *Camel | failOnNullBody | true | Camel 2.3: |
* |
| {{deleteOutputFile}} | {{false}} | *Camel | deleteOutputFile | false | Camel 2.6: |
* {{}} [] |
| {{output}} | {{string}} | *Camel * {{ }} {{}} {{}} {{}} ** {{}} {{}} |
| {{contentCache}} | {{true}} | *Camel | contentCache | true | Camel 2.6: |
* {{}}
* * {{}} |
| {{allowStAX}} | | *Camel | allowStAX | | Camel 2.8.3/2.9: |
* {{javax.xml.transform.Source
|
}} {{}} {{}} |
| {{transformerCacheSize}} | {{0}} | *Camel | transformerCacheSize | 0 | Camel 2.9.3/2.10.1: |
* {{javax.xml.transform.Transformer
|
}} {{Template.newTransformer()
|
}}. |
| {{saxon}} | {{false}} | *Camel . | saxon | false | Camel 2.11: |
* {{}} {{net.sf.saxon.TransformerFactoryImpl
|
}} |
{div} |
Using XSLT endpoints
For example you could use something like
...