|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: linking to and displaying xsl templates
Hi Jesse,
At 01:49 PM 11/14/2002, you wrote: Hi Wendell, Mm, apparently (judging from the more complete code sample you kindly included) you don't really want the template to load. (An XSLT template won't "load" in a browser; rather, it is part of a stylesheet that is compiled and executed by a stylesheet processor to create some kind of output.) Rather, you want the template to be executed and an HTML file, generated by that template, to load. This is a crucial distinction, and why we are asking about architectures. In fact I bet you don't care when and how the template is executed, as long as the HTML file it describes is loaded. I suggest breaking your problem in two. First, design a solution which generates a single HTML output file for your entire XML. (Your prototype can work over a trimmed-down version if the XML is way too huge.) Include in it your table of contents, with the links pointing as you wish -- only (of course) they'll be internal links within the single HTML file you'll be generating. Check out the FAQ on generating links, or ask, if you can't see how to do this. Only when you have this problem solved should you address how to get your processor to generate, not a single HTML file, but an entire suite of them. You'll be using extension functions (which David just named) to do this. (The extension required, which is pretty common, is due to be rolled into the standard in the next rev.) This task will pose you with a separate set of problems, such as what your output files should be named and where they will be put (something your processor has to be able to determine if it's going to do things like file generation and link construction). Again, the FAQ, your favorite XSLT manual(s), and this list can be a help. Having solved those, you'll be able to go back to your linking (which will now be broken), and fix it to work across the files. What you're trying to do is pretty ambitious for a newbie, since it involves implementing solutions to several problems at once. Cheers, Wendell
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








