Subject: Re: [xsl] links don't work when IE transforms local XSL document From: Anton Triest <anton@xxxxxxxx> Date: Fri, 01 Oct 2004 23:18:31 +0200 |
What do you mean by "broken"? Do you mean that the page looks right butThe page looks right, and when I hover the links, the status bar shows the correct URL
nothing happens when you click on one of the links? Or does the page
not look as expected?
It sounds like IE gets confused when you try to load an xsl document as!! Now there's a new element, and it becomes even stranger to me... I was pretty sure
the xml source. Perhaps IE is trying to be too smart for its own good,
and makes a guess about what you want, which unfortunately is a wrong
guess. Or perhaps IE has a bug that is preventing the links from being
interpreted as hyperlinks when it transforms a file with the .xsl
extension. You didn't say if you were loading the file from the file
system or through a web server, and it might even be that you would get
different results in the two cases.
I have put a testcase online so everyone who wants can try it out (same stylesheet I already posted earlier):
http://users.telenet.be/cking/webstuff/test/anchors/anchors.xsl http://users.telenet.be/cking/webstuff/test/anchors/test.xml http://users.telenet.be/cking/webstuff/test/anchors/test.xsl
If it is an IE bug, there could be an easy workaround, although youYeah I guess I could do that but in this particular case it doesn't help much; the whole point
would have to try it out to make sure it works with IE. Use a dummy
file for your source, as in your cut-down example above. In the root
(and only) element, include the url of the file you actually want to
transform (like the stylesheet). Get that document using document(),and
transform that instead of the dummy source document.
Alternatively, use the dummy source file without the url of the realHow can I pass parameters in IE (or in Moz, for that matter)? I always thought that's not possible..
target, and feed the url in as a parameter, then get the document using
document() and transform it as above.
I admit this is a bit strange, but if you actually are dealing with an IE bug, it might work, and it wouldn't be very hard to implement.
Cheers,
Tom P
Thanx, Anton
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] links don't work when IE , Passin, Tom | Thread | Re: [xsl] links don't work when IE , Anton Triest |
RE: [xsl] xslt 2.0 and alternatives, Michael Kay | Date | Re: [xsl] links don't work when IE , Anton Triest |
Month |