This is an example that illustrates how Smooks can be used to apply an XSLT based transform on a message fragments that use namespaces.
What this example illustrates is:
- A transformation of an xml representing an order format from an external system, to a different xml format:
- How to inline an XSLT inside the Smooks configuration: Order.xml -> CanonicalOrderFormat.xml
- How to select values with namespaces.
- It also shows how to exclude the orders namespace from the target namespace using the "exclude-result-prefixes" attribute.
See:
- The "Main" class in src/main/java/example/Main.java.
- The input message in input-message.xml.
- The code in the src/main/java folder tree (.java).
- smooks-config.xml.
mvn clean package
mvn exec:exec