
May 16th, 2003, 10:28 PM
|
|
Fries w/ That?
|
|
Join Date: May 2002
Location: Kansas
Posts: 8
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
hade-
I will try to break this down for you. Yes, you basically can do the same with both, but it all depends on how much programming you want to do, what languages you know and the environment you are working in. XSL comes in two flavors - transformations and formatting objects (i.e. XSLT and XSL-FO.) XSLT is an XML document as well as code to transform XML. It is most commonly used for transformations to HTML. Now if you like XML and it’s structure then grab a tutorial on XSLT and go crazy. There is good information here on DevShed and also XML.com is thorough.
If you want to work with the XML doc in a more normal programming language then you will need an API to do your dirty work. SAX and DOM work with the doc in different ways. SAX is event driven and works straight thru on a node by node basis, but the DOM loads the whole doc into memory and allows manipulation to the nodes so you can then save the updated doc back out. If you check out xml.apache.org and the Xerces project you can see the different language options to work in. Usually you will be looking at C++, Java and now Perl, but new parsers are being written all the time in new languages.
So pick your output and your language of choice and have fun!!
Chinnman Out!!
|