Subject:New to XML and Stylus -- Translating Hierarchical Documents Author:Chris Roedocker Date:30 Mar 2007 06:55 PM
Hello,
I am currently looking into utilizing XML and Stylus studio as part of a new product to replace a legacy EDI application.
Unfortunately I am completely new to XML technology. I'm hoping to get some tips on what tech (XLST/Xquey) I need to learn to accomplish translating one XML document to another, when a hierarchical structure is involved. Pointers to good learning sources (websites or books) would be a great help.
I've had little luck so far using Stylus Studio to accomplish this, but I know it is my own limited knowledge of XML tech that is preventing my success. I want to demonstrate a successful translation of one file to another before I move forward with a purchase of Stylus Studio. (Which has proven to be a truly great product.)
Subject:New to XML and Stylus -- Translating Hierarchical Documents Author:(Deleted User) Date:02 Apr 2007 04:59 AM
Hi Chris,
both XSLT and XQuery are fine to translate an XML structure into another; you choose one or the other depending on your programming tastes (XQuery is SQL-like, XSLT is more rule-based). You can read the tutorial on the web site, for instance http://www.stylusstudio.com/xml_to_xml_mapper.html is about XSLT mapper, while http://www.stylusstudio.com/xquery_mapper.html is about XQuery mapper.