Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 809 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 809 Bytes

About

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:

  1. A transformation of an xml representing an order format from an external system, to a different xml format:
  2. How to inline an XSLT inside the Smooks configuration: Order.xml -> CanonicalOrderFormat.xml
  3. How to select values with namespaces.
  4. It also shows how to exclude the orders namespace from the target namespace using the "exclude-result-prefixes" attribute.

See:

  1. The "Main" class in src/main/java/example/Main.java.
  2. The input message in input-message.xml.
  3. The code in the src/main/java folder tree (.java).
  4. smooks-config.xml.

How to run?

  1. mvn clean package
  2. mvn exec:exec