How to Call multiple XSL for one XML
I have a standard format of XML. Depending on the type(Defined on an attribute), I wish to call different XSLs. Is it possible. I am using Xalan. This way I can store a lot of complexity from one XSL to multiple XSLs. Is there any alternative to do that.
Re: How to Call multiple XSL for one XML
XSL stylesheets are XML files, and XML files are text files, so this does not affect the majority of posts to the list since you can include a file’s text in the body of your message. If you need to refer to a binary file such as a PDF file, you should put the file on a Web site or FTP site and include the file’s URL in your XSL-List post.
If you do include an attachment in your XSL-List post – even a HTML attachment.
Re: How to Call multiple XSL for one XML
You can:
- build a web form asking for different options,
- converting the parameters into a XML-query sentence,
- send it via HTTP,
and the XML-DBMS produces the magic (combining the XML source with the appropriate templates).
Of course there is a control process too, but we can get rid of intermediate processes like the ones mentioned above and encapsulate the dynamicity into the DBMS.
Well, just an idea.