I'm starting work on
https://jira.jboss.org/jira/browse/JBESB-2584 and wanted to
gather requirements/requests.
A suggested sample config could look like this:
<action name="xslt-transform"
class="org.jboss.soa.esb.actions.transformation.xslt.XsltAction">
| <property name="templateFile" value="/sample.xsl"/>
| <property name="failOnWarning" value="true"/>
| </action>
I was thinking that we also should support the ability to add TranformerFactoryFeatures
and attributes. For example, adding a feature could look like this:
<property
name="factory.feature.http://javax.xml.XMLConstants/feature/secure-processing"
value="true"/>
The same things would then apply to attributes but the prefix would be
'factory.attribute'.
Also the ability to specify a URIResolver
(
http://java.sun.com/j2se/1.5.0/docs/api/javax/xml/transform/URIResolver.html) to make
things flexible.
Suggestion from TomF:
anonymous wrote : I think the impl should support multiple Source types, defaulting to
StreamSource
So the message payload could be a File, an InputStream, or Reader (String payload would be
a StringReader in which case a a StreamSource would be used). The message payload could
also be a DOMSource or a SAXSource. Are there any others ?
The same options should exist for the result as well then right?
All suggestions are welcome!
Thanks,
/Daniel
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233813#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...