So, apache returns "application/xml" for ".xsl" files and ML returns 
"application/xslt+xml".

I changed the MIMETYPE in the admin console for "application/xml" to be for 
extension ".xsl", and now ML will behave like apache (at least in the case of 
.xsl).  
And thus, my code will work in IE (which doesn't seem to know what 
"application/xslt+xml" is.  

So, is this the correct way to handle the problem (or did I just cause a 
problem for some other type of operations)?  
In other words, why did ML choose to set extensions "xslt" and "xsl" to 
"application/xslt+xml" and apache choose to set "xsl" to "application/xml"?

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Geert Josten
Sent: Wednesday, July 13, 2011 12:56 PM
To: General MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] IE(8), ML and XSLTForms

Wow, that was nearly a year ago.. :)

I could imagine that IE is still using the mime-type specified in XSLT 1.0. The 
XSL FAQ (http://www.dpawson.co.uk/xsl/sect2/mimetypes.html) is talking about 
text/xsl. The mime-type you mention is specified by XSLT 2.0. You can adjust 
the mime-types in the admin console, that might already help.

Otherwise, you might be interested to know that MarkLogic Server 4.2 supports 
XSLT. The tricky part is that XSLTForms is in XSLT 1.0 as far as I know, while 
MarkLogic Server implements XSLT 2.0, but it might be worth a go. It will allow 
you to do the XSLT part server-side, which should save you from this browser 
fuss..

Kind regards,
Geert

-----Oorspronkelijk bericht-----
Van: [email protected] 
[mailto:[email protected]] Namens Steiner, David J. 
(LNG-DAY)
Verzonden: woensdag 13 juli 2011 18:13
Aan: General Mark Logic Developer Discussion
Onderwerp: Re: [MarkLogic Dev General] IE(8), ML and XSLTForms

I pretty much gave up on trying to figure this out a while ago and just stuck 
with using Firefox to test my code, but now I need for it to work in IE, so I'm 
back...

The response that MarkLogic is sending seems to be for a content type of 
"application/xslt+xml" for the .xsl files and I'm wondering if this is a 
problem for IE, but not for other browsers?

If it is, is there a method I can use to get a content type for the .xsl files 
from MarkLogic that will work for IE as well as the rest of the browsers?

Thanks,
David

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Geert Josten
Sent: Saturday, July 31, 2010 1:43 PM
To: General Mark Logic Developer Discussion
Subject: Re: [MarkLogic Dev General] IE(8), ML and XSLTForms

Hi David,

Sounds reasonable. Browsers can behave quite differently in specific 
situations. You mention that you address the hello example as a .xml file, 
which means it is returned by MarkLogic Server without real processing. I 
suspect that IE could be ignoring an essential response header from the server. 
If you change the extension of the file to .xqy, then if will be processed as 
an xquery. It might require escaping some characters, but you will have the 
opportunity to tweak the response headers manually.

Have you tried putting a tcp tunnel in between to see whether the http traffic 
shows any differences between IE and FF?

Kind regards,
Geert

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Steiner, 
> David J. (LNG-DAY)
> Sent: vrijdag 30 juli 2010 14:46
> To: General Mark Logic Developer Discussion
> Subject: Re: [MarkLogic Dev General] IE(8), ML and XSLTForms
> 
> Sure!
> 
> You can get the XSLTForms download at:
> http://sourceforge.net/projects/xsltforms/files/xsltforms/Beta
> %202/xsltf
> orms-beta2.zip/download
> 
> Extract the files (retain the directory structure and place the files 
> in a ML HTTP App Server root directory.
> 
> There are sample XML files (which use XLSTForms), such as hello.xml in 
> your ML HTTP App Server root directory now.
> 
> Assuming a local installation, for instance:
> http://localhost:8011/hello.xml.
> 
> When I execute this in IE 8, I get: 
> XSLTForms Expception
> --------------------
> Error Initializing:
> 
> TypeError
> 'null' is null and not an object
> 
> When I execute it in Firefox 3.67, it works just fine.
> 
> That is essentially the problem.   
> 
> Now, interestingly, I have apache running, which I modified the 
> httpd.conf file to use the same directory as the root directory for 
> the ML HTTP App Server and when I use it:
> http://localhost/hello.xml with IE 8, it works just fine.
> 
> So, it would appear to me that there's something about using the ML 
> HTTP App Server in conjunction with IE 8.
> 
> Kind regards,
> David
> 
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Geert 
> Josten
> Sent: Friday, July 30, 2010 3:47 AM
> To: General Mark Logic Developer Discussion
> Subject: Re: [MarkLogic Dev General] IE(8), ML and XSLTForms
> 
> Hi David,
> 
> Can you give us some more detail?
> 
> Kind regards,
> Geert
> 
> >
> 
> 
> drs. G.P.H. (Geert) Josten
> Consultant
> 
> Daidalos BV
> Hoekeindsehof 1-4
> 2665 JZ Bleiswijk
> 
> T +31 (0)10 850 1200
> F +31 (0)10 850 1199
> 
> mailto:[email protected]
> http://www.daidalos.nl/
> 
> KvK 27164984
> 
> 
> De informatie - verzonden in of met dit e-mailbericht - is afkomstig 
> van Daidalos BV en is uitsluitend bestemd voor de geadresseerde.
> Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te 
> verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.
> 
> > From: [email protected]
> > [mailto:[email protected]] On Behalf
> Of Steiner,
> > David J. (LNG-DAY)
> > Sent: donderdag 29 juli 2010 18:57
> > To: [email protected]
> > Subject: [MarkLogic Dev General] IE(8), ML and XSLTForms
> >
> > I'm having an issue with using IE8, to display a XSLTForms
> (either a
> > XML or XQuery version) with at ML HTTP App Server - I get a
> "loading
> > error".  This does not happen with Firefox.
> >
> > Also, it does not happen with Apache using a redirect
> (rewrite) to ML.
> >
> >
> >
> > Anyone else ever experience this?
> >
> >
> >
> > Thanks,
> > David
> >
> >
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
> 
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to