on 12-15-2008 3:24 PM
Hello,
I try to get a html-encoded File from xMII (12.0.5) with a custom stylesheet. Everything works nearly fine. I get the correct File but as a content-type text/xml.
I see this in IE-properties of the current page.
The code of the result page is exactly what I want, but IE doesn't render it because of the wrong content-type.
This is the link I use:
http://<server>:<port>/XMII/Runner?Transaction=<transaction>&OutputParameter=*&Stylesheet=web://<stylesheet>&Content-Type=text%2Fhtml
or:
http://<server>:<port>/XMII/Runner?Transaction=<transaction>&OutputParameter=*&Stylesheet=web://<stylesheet>&Content-Type=text/html
("/" instead of "%2F")
I get the same result if I use a XacuteQuery instead of the Transaction Runner.
Can you help me, please?
Thank you
Matthias
Rick, thank you for your answer, but it didn't change anything. It seems that MII is ignoring my Content-Type (or Output-Content-Type) parameter.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Matthias,
I found that I could make this work using an XacuteQuery and a url call with this format:
http://<servername:port>/XMII/Illuminator?QueryTemplate=<query template>&Stylesheet=<fully qualified stylesheet reference>&ContentType=text/html
for example:
Also, I found I needed to add this line to the beginning of my stylesheet:
<xsl:output method="html" media-type="text/html" encoding="UTF-8" />
This may be worth a try!
Kind Regards,
Diana Hoppe
Hi Diana,
thank you! Both tipps helped me. (I'm very happy and I can go home now
Matthias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Matthias, try using Output-Content-Type instead of Content-Type as the parameter name, and see if that works as expected.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
7 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.