Part of my project is responsible for reading in an XML document containing some high-level information used in aircraft mission planning. It needs to take that high-level info and produce a more detailed mission plan XML document. For instance, the input document might contain information like "Takeoff point", "loiter area", "landing point" as elements containing user input parameters in the document. The output would contain similar information, but broken down and mapped to more specific detailed information such as flight waypoints and such.
I know how to process Java documents using both DOM and SAX (the built in packages in Java 1.4+). Currently I don't have any schemas for these documents, but I can make those if needed.
I'm just wondering if anyone has some ideas on a straightforward way to do such translations. I'm not expecting to do seriously complicated conversions. Every node in the source plan document has a "type" attribute in it, and in pretty much all cases the source node will map to 1-n more detailed destination nodes with a very small set of type mappings between them.
Any ideas how I could quickly do this? I started looking at JAXB but think it might be overkill. XSLT sounds like it could be helpful, but I know nothing about it.