The way you are doing it now, you are relying on the browser to do the transformation for you. If you don't have anything on your server side that can do Java processing, then I think your only option is to produce three almost-identical versions of the XML file.
However if you have something at the server side that can dynamically insert that processing instruction, or that can actually do the transformation, then do that. But I won't get into explaining how unless there is a possibility the information might be useful.
Joined: Jan 07, 2004
I don�t have the possibilty do it in java. I just hoped it could be done in pure XML and XSLT!
I am used to code in JAVA where there is no constraints at all. I can see I am facing some new challenges now:
On the website I am displaying the three latest news from a XML document. Every news-story has its own ID (I use the RSS format). In my XSL I display every news title as a link, that will point to a new site and show only that news-story ( http://www.myDomain.com/news?newsID=85 ).
Is that possible to do in pure HTML/XML/XSL?
How Can I get the newsID parameter on another site and how can I send this parameter to my XSL file, so it can be used in a XPath expression? [ July 11, 2006: Message edited by: Jeppe Fjord ]
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Use different XSL files on the same XML doc