see the http://camel.apache.org/xslt.html camel-xslt component and this https://svn.apache.org/repos/asf/camel/trunk/camel-core/src/test/java/org/apache/camel/component/xslt/XsltRouteTest.java unit test for an example of doing the XSLT...
not sure what you what you are trying to do with the protocol piece though...can you elaborate szaruba wrote: > > Hello, > > In our project we are using Apache Camel to create an interface between > two software systems. While we transform XML Data we need to > > automatically create a XML based protocol. Here is an simplyfied example > of what i mean: > > persons.xml: > > <persons> > <person><firstname>stefan</firstname></person> > <person><firstname>lukas</firstname></person> > </persons> > > transform.xsl shall transform the persons.xml file > > <employees> > <xsl:for-each select="persons/person"> > <employee><name><xsl:value-of select="firstname"/></name></employee> > </xsl:for-each> > </employees> > > After the transformation: > > <employees> > <employee><name>stefan</name></employee> > <employee><name>lukas</name></employee> > </employees> > > The protocol of this transformation should look like this: > > <step name="XSLT Transformation" date="17.09.2011" time="21:52" > duration="00:11" result="Success"> > <msg type="Info" date="17.09.2011", time="21:52"> > XSLT loaded > </msg> > <msg type="Info" date="17.09.2011", time="21:52"> > persons/person/firstname "stefan" was selected and transformed to > employees/employee/name "stefan" > </msg> > <msg type="Info" date="17.09.2011", time="21:52"> > persons/person/firstname "lukas" was selected and transformed to > employees/employee/name "lukas" > </msg> > </step> > > What's the easiest way to accomplish this? > How would you solve this problem? > ----- Ben O'Day IT Consultant -http://consulting-notes.com -- View this message in context: http://camel.465427.n5.nabble.com/Logging-XSLT-tp4814705p4824454.html Sent from the Camel - Users mailing list archive at Nabble.com.