RE: links don't work when IE transforms XSL document
> From: Anton Triest [mailto:anton@xxxxxxxx] > Hi Emmanouil, > > Thanks for that link, I didn't know such a tool existed. Now, if I run > my stylesheet against a dummy.xml, > or against itself, I get the same result html. Yet, in the second case, > the links don't work.. (and not only > on my machine, because the problem was reported to me by a user of my > xdoc stylesheet) Here are my results using your stylesheet - 1) Running the transform with msxml3 produced identical results for the source document consisting of "<root/>", and the source document consisting of the stylesheet. I compared them using examdiff, and they were exactly the same, as one would expect. 2) In both IE6sp1 and Firefox 0.9.2 in Win2000 sp4, the internal links were visible and worked as expected. BUT note that you won't get that result just loading the output into IE from the file system, at least not if it has a file extension of ".xml". IE knows nothing about xhtml, and needs to see a .html extension, in which case IE treats the file as an ordinary html file. Otherwise it displays it as xml, which would certainly cause someone to say that they did not see any links. I suspect your problem is either the file extension or the MIME type the file is served with. IE will try to figure out the file type based on the MIME, extension, and also the file contents. I don't know how you are serving it, but perhaps the combination of the declared type plus something else causes the difference. Do you use on embedded stylesheet PI to specify the stylesheet, or do you transform it separately before serving it to the browser? You should look into those factors, and also explain clearly exactly what was observed instead of the expected results. Cheers, Tom P
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