You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Rafael Oropeza <ro...@eud.com> on 2000/05/07 01:02:14 UTC

Problems with xslt

Hello

Maybe this is a naive question, but here we go...

I'm trying to serve content in HTML and WML formats. My wap toolkit is
Nokia toolkit 1.3 (Win). I made these changes in:

1) cocoon.properties
browser.8 = wap=Nokia-WAP-Toolkit

2) apache-mime.types

text/vnd.wap.wml        wml
image/vnd.wap.wbmp      wbmp
application/vnd.wap.wmlc        wmlc
text/vnd.wap.wmlscript  wmls

3) And my xml file/xls style sheet, according the example in
COCOON_HOME/samples/wap each one, has this sentence:
<?xml-stylesheet href="portfolio-wml.xsl" type="text/xsl" media="wap"?>
<xsl:processing-instruction
name="cocoon-format">type="text/vnd.wap.wml"</xsl:processing-instruction>

In HTML mode, everytihing runs fine, but into the Wap browser I
received:

MIME type "text/html" is not supported (http://myServer/myApp/myApp.xml)

It seems the media type "wap" <?xml-stylesheet href="portfolio-wml.xsl"
type="text/xsl" media="wap"?> or the PI "cocoon-format" with
ype="text/vnd.wap.wml" is not recognized. Any ideas wrong?


--
Rafael Alberto Oropeza Baudet

(42) Until the great mass of the people shall be filled with the sense
of responsibility for each other's welfare, social justice can never be
attained.
Helen Keller



RE: Problems with xslt

Posted by Terry Paddy <te...@rostersetc.com>.
Rafael,

I have been running Cocoon, delivering HTML & WAP successfully. I also use
the Nokia toolkit and the 7110 phone model.

Firstly I made *NO* changes to cocoon.properties, and there is no
requirement to add the mime types to Apache.

The opening lines of my stylesheet are

<?xml version="1.0"?>
<!-- Written by Terry Paddy "terry@rostersetc.com" -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="page">
		<xsl:processing-instruction
name="cocoon-format">type="text/wml"</xsl:processing-instruction>

and the content is delivered fine.

I do find though that ANY syntax or logic error that is not caught is
rendered as "MIME type "text/html" is not supported"

Also I don't use the Nokia Gateway, but WAPLite. It seems there are a lot of
problems with the stability of the Nokia toolkit. Anyway the bottom line is,
look at your own code first - Apache, JServ & Cocoon deliver WAP fine "out
of the box"

Well that's my experience anyway :)

Regards from down under

Terry - Christchurch, New Zealand
http://www.rostersetc.com

-----Original Message-----
From: roropeza [mailto:roropeza]On Behalf Of Rafael Oropeza
Sent: Sunday, 7 May 2000 11:02
To: cocoon-users@xml.apache.org
Subject: Problems with xslt


Hello

Maybe this is a naive question, but here we go...

I'm trying to serve content in HTML and WML formats. My wap toolkit is
Nokia toolkit 1.3 (Win). I made these changes in:

1) cocoon.properties
browser.8 = wap=Nokia-WAP-Toolkit

2) apache-mime.types

text/vnd.wap.wml        wml
image/vnd.wap.wbmp      wbmp
application/vnd.wap.wmlc        wmlc
text/vnd.wap.wmlscript  wmls

3) And my xml file/xls style sheet, according the example in
COCOON_HOME/samples/wap each one, has this sentence:
<?xml-stylesheet href="portfolio-wml.xsl" type="text/xsl" media="wap"?>
<xsl:processing-instruction
name="cocoon-format">type="text/vnd.wap.wml"</xsl:processing-instruction>

In HTML mode, everytihing runs fine, but into the Wap browser I
received:

MIME type "text/html" is not supported (http://myServer/myApp/myApp.xml)

It seems the media type "wap" <?xml-stylesheet href="portfolio-wml.xsl"
type="text/xsl" media="wap"?> or the PI "cocoon-format" with
ype="text/vnd.wap.wml" is not recognized. Any ideas wrong?


--
Rafael Alberto Oropeza Baudet

(42) Until the great mass of the people shall be filled with the sense
of responsibility for each other's welfare, social justice can never be
attained.
Helen Keller



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org