cancel
Showing results for 
Search instead for 
Did you mean: 

Don't get html content-type

matthias_prller
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

matthias_prller
Participant
0 Kudos

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.

Former Member
0 Kudos

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:

http://nvpal076:53000/XMII/Illuminator?QueryTemplate=ReportServlet/CategoryXacuteQuery&InlineTransfo...

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

Answers (2)

Answers (2)

matthias_prller
Participant
0 Kudos

Hi Diana,

thank you! Both tipps helped me. (I'm very happy and I can go home now

Matthias

Former Member
0 Kudos

Matthias,

Glad I was able to help

- Diana

Former Member
0 Kudos

Matthias, try using Output-Content-Type instead of Content-Type as the parameter name, and see if that works as expected.