[thelist] WAP gateway issues
Åhman Jens
jeahm at wmdata.com
Mon Feb 5 09:09:37 CST 2001
Sometimes it can be a problem with whitespace/blanklines in the beginning of
the WML Document.
You always start with a DTD- Declaration similar to this;
Example;
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.1//EN"
"http://www.phone.com/dtd/wml11.dtd" >
In some gateways you cant have whitespace or a blank line before the DTD
declaration. If you are using ASP to develop WAP Sites, it might look
something like this;
<%@ Language=VBScript%>
<%
Some magic mumbojumbo ASP- Code here
%>
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.1//EN"
"http://www.phone.com/dtd/wml11.dtd" >
As you can see from this example the WML generated will start with a blank
line, no good.
It should look like this;
<%@ Language=VBScript%>
<%
Some magic mumbojumbo ASP- Code here
%><?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.1//EN"
"http://www.phone.com/dtd/wml11.dtd" >
Now, there will be no whitespace or blank lines before the declaration of
the DTD.
Hope this is somewhat useful!
Kind regards,
Jens Åhman
More information about the thelist
mailing list