TAMINOLIB.JS transforming into WML format

Hello ALL!

My software is:
1) Windows 2000 Professional POLISH edition
2) Internet Explorer 6.0 POLISH edition
3) Apache Web Server 1.3.22
4) Tamino 3.1.1.1
5) Nokia Mobile Toolkit 3.0

I want to :
1) load xml data which were stored in TAMINO
2) and transform these data using xsl stylesheet

and after THEN transform it into WML format using:
1) tag
2) tag
3) tag … (for example!)

How can I do it? Any examples will be VERY appreciated! Thanks a lot for support!

Best Regards
Dariusz Baumann
POLAND

Hello!

On official Software AG documentation I found ONLY two separate topic. Here these are:

1) XSLT summary
Advantages
XSLT stylesheets can convert XML into almost any output format, from HTML over XHTML to WML, SVG, SMIL, etc. This allows support not only for HTML clients but also for mobile clients, and for multimedia applications.

2)Introduction into XSLT
XSLT can, for example, be used to transform presentation neutral XML data into presentation formats such as HTML, XHTML, XForms, WML, SMIL, SVG, etc.


It is ONLY teoritical text WITHOUT any practical examples. :frowning: :frowning: :frowning: :frowning: :frowning:

Can anybody share with me your samples about transforming XML data (stored in Tamino) into WML format using XSL stylesheet?

Any samples will be VERY VERY VERY appreciated!

Thanks a lot for support and helping hand.

Best Regards
Dariusz Baumann
POLAND

Hi,
I have assumed this post is related to the other one at http://tamino.forums.softwareag.com/viewtopic.php?p=6749.

The problem with encoding is caused by MSXML always appending ‘encoding=“UTF-16”’ to the xml header in the transformNode output. This conflicts with the wml content type and produces your error.

To get around the problem I coded:

code:

Response.Write “<?xml version=""1.0""?>”
Response.Write “<!DOCTYPE wml PUBLIC ""-//WAPFORUM//DTD " & _
“WML 1.1//EN”” ““http://www.wapforum.org/DTD/wml_1.1.xml””>"
Response.Write xmldoc.transformNode(xsldoc.documentElement)


in the asp page and
code:

<xsl:output media-type=“text/vnd.wap.wml”
method=“xml”
omit-xml-declaration=“yes”/>


in the stylesheet. This worked for me.
The complete stylesheet and asp page are attached.

Hope it helps.
WML.zip (1.12 KB)