XSL or Java??

I have an XML document which has to be converted to not one but a set of interrelated HTML files(one HTML referring to another etc) .. is it possible to use XSL to dynamically generate more than one HTML file from an XML doc?? or do i have to use a parser and code it in Java??

Kamakshi, what do you mean by "dynamically generate more than one HTML file"? You will not save them as a file? As far as I can imagine one XSL stylesheet can transform XML document into one HTML document, but you can assign XSLTs dynamically and get different HTML representation. Here is one such example: http://www.xmlpitstop.com/Examples/WebWorkShop/Multiple_views/multiple.htm Is it what you wanted?

Originally posted by Kamakshi Mahadevan:I have an XML document which has to be converted to not one but a set of interrelated HTML files(one HTML referring to another etc) .. is it possible to use XSL to dynamically generate more than one HTML file from an XML doc?? or do i have to use a parser and code it in Java??

XSL users, pls help.. Kamakshi

Fred Loney<br />Spirited Software, Inc.<br />loney@spiritedsw.com

Kamakshi Mahadevan
Greenhorn

Joined: Nov 08, 2000
Posts: 18

posted Mar 30, 2001 08:06:00

0

Mapraputa & Fred, Thanks for your response. i looked at the examples in the links you had mentioned. Mapraputa, you are right.. i actually want to save these html files. i used the wrong term 'dynamically generated'. the example in your link gives different html representations of the same XML doc, right?? i want to direct different parts of the XML document to different HTML files and these HTML files should have links between them . looking into Fred's link, i am convinced that XSLT extensions can be used to achieve this.. could you guys suggest some good links to learn XSL/XSLT?? thanks Kamakshi

Hi Kamakshi, The SAXON parser allows you to output multiple HTML files. I think the function is specific to Saxon. You can d/l it from http://users.iclway.co.uk/mhkay/saxon/ . Hope that helps. ------------------ Jane Griscti Sun Certified Programmer for the Java� 2 Platform