Category Archives: XML/ XSD/ XSLT

Message Content Filtering with WSO2 ESB

Every integration architect or developer should be familiair with Enterprise Integration Patterns (EIP) as described by Gregor Hohpe and Bobby Woolf. One of the patterns is the ‘Content Message Filter’ (not to be confused with the Message Filter pattern). There … Continue reading

Posted in WSO2 ESB, XML/ XSD/ XSLT | Tagged , , | 1 Comment

Base64 encoding of binary file content

For testing a base64Binary XML type at one of my projects I needed an example of a base64 encoded file content. There is a simple command for that (at least when you are working on a Mac). For a file … Continue reading

Posted in XML/ XSD/ XSLT | Tagged , | Comments Off on Base64 encoding of binary file content

Using your own WSDL with a WSO2 ESB Proxy Service

It is common practice to use an external XSD file in your WSDL. This way you can easily reuse your XSD at other places. However if you want to use such WSDL in your WSO2 ESB Proxy Service you have … Continue reading

Posted in WSO2, WSO2 ESB, XML/ XSD/ XSLT | Tagged , | Comments Off on Using your own WSDL with a WSO2 ESB Proxy Service

right-pad values with XSLT

In this post an XSLT function that can be used to right-pad the value of an element with a chosen character to a certain length. No rocket science but this might become handy again so by putting it down here … Continue reading

Posted in XML/ XSD/ XSLT | Tagged | Comments Off on right-pad values with XSLT

Validating XML message in Mule 3

A quite common use case in a flow in the Mule ESB is validating if an XML document is valid against a corresponding XSD. Especially if a project is in the development/test stage it can be quite annoying to find … Continue reading

Posted in Mule3, XML/ XSD/ XSLT | Tagged , | 2 Comments

Obtaining the complete XML message as xs:string with XSLT

At a recent project I needed to implement functionality which would store an incoming message in a relational database. Since we were using the WSO2 platform I created a WSO2 DataService for this by generating a Data WebService based in … Continue reading

Posted in Web Service, XML/ XSD/ XSLT | Tagged , | Comments Off on Obtaining the complete XML message as xs:string with XSLT

Calculating dates with XSLT

Since I am posting about XSLT anyway here is another one. In this situation I had a XML document that had a sequence of elements in which each element represented a value per hour. At the start of the sequence … Continue reading

Posted in MapForce, XML/ XSD/ XSLT | Comments Off on Calculating dates with XSLT

Transforming XML to CSV via XSLT

As the archive of this blog might make clear I am a big fan of the Altova product MapForce. I have used this tool a lot for transforming XML to XML or CSV. However, in my current project I also … Continue reading

Posted in XML/ XSD/ XSLT | Tagged | Comments Off on Transforming XML to CSV via XSLT

Removing DiffGram element in web service messages

Some time ago I was asked to review existing web services for a customer. The main thing I noticed was that they were using Microsoft’s diffgram elements and attributes in their input and output messages. I was not familiar with … Continue reading

Posted in General, JAXB, Web Service, XML/ XSD/ XSLT | Tagged | Comments Off on Removing DiffGram element in web service messages

Using parameters with XSLT in Mule

Recently I got into a situation where I had to put ‘metadata’ values (which were part of the Mule Message) into the XML result of an XSLT transformer. Let me explain the situation with an example. Imagine you have an … Continue reading

Posted in General, MapForce, Mule2, XML/ XSD/ XSLT | Tagged , , | Comments Off on Using parameters with XSLT in Mule