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?

--
View this message in context: 
http://camel.465427.n5.nabble.com/Logging-XSLT-tp4814705p4814705.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to