XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old October 31st, 2002, 12:15 AM
ads ads is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: India
Posts: 192 ads User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 12 m 27 sec
Reputation Power: 7
How to create page which can be viewed Handhelds like Mobile communicator OR PDA.

Hi Friends,
All these days I am using PHP and MySql, very cool stuff for

Web site development. I would like to develope a site which can

be viewed by Handheld devices such as Mobile Communicators,

PDA
having PalmOS OR PocketPC OR Windows CE as OS. I think

only change will be in creating display page. I think display page

must be in some format of XML. I am not getting any clue exactly

what type of XML these OS support. I am absolute new to XML.
I will be thankful if you give me any article link which will be give

me this information.
Are their any editor avilable (xmlspy?)which creates XML pages

for PalmOS OR PocketPC OR Windows CE as OS.
Visualstudio.net creates display page for PocketPC OR Windows

CE but it is very expensive for me. Also It will not create page for

PalmOS.
Help appreciated.

Reply With Quote
  #2  
Old October 31st, 2002, 03:10 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
Well, WML is the language you're looking for. Although I think most of those browsers will display simple html, too.

One thing to look into might be creating your pages in xml, then using xslt to create the html or wml depending on which browser hits it.
__________________
-james

Reply With Quote
  #3  
Old October 31st, 2002, 11:59 PM
ads ads is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: India
Posts: 192 ads User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 12 m 27 sec
Reputation Power: 7
Hi,
There is an article at "http://www.devarticles.com/content.php?articleId=105&page=1" which gives following information.
It says:
"Microsoft released version 2.2 of its XSL ISAPI filter at the beginning of March 2002. This version replaces the previous version, 2.1, which was released in February of 2001. The XSL ISAPI filter is an extension to Microsoft's Internet Information Services (IIS) that simplifies the deployment of server-side XSL stylesheets. It automatically runs on the server whenever a special type of file (.pasp) is requested. It supports multiple device types including the web browser, WAP enabled phone, PDA, etc. XSL is used to transform XML at the presentation level, and the output from an XSL stylesheet can be formatted according to the device type requesting it.

The XSL ISAPI filter uses XSL stylesheets to automatically format dynamically generated XML content (via ASP) for the correct device type (HTML, WML, etc), as shown in the diagram below:
"

1) If this can be done with ASP then why not with PHP?
2) It says that XSL is used to transform XML at the presentation level, and the output from an XSL stylesheet can be formatted according to the device type requesting it.

I think If one can guide me to create XML page using PHP & MySQL. And if XML can be converted to XSL and if XSL stylesheet is formatted as per device type OR OS type. One can do this without Visual Studio.Net
and then web pages can be viewed with any OS and any mobile device.
Thanks
Help Appreciated.

Reply With Quote
  #4  
Old November 4th, 2002, 04:57 AM
ads ads is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: India
Posts: 192 ads User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 12 m 27 sec
Reputation Power: 7
Hi bricker42,
Your links have given me good start in learning XML, XSL and a bit of Sablotron XSLT processor for PHP. Great help.

As I understood. Now flow is as follows.
1) Create aa.XML file.
2) Create bb. xsl file.
3) Upload both files on web server having PHP with Sablotron extension activated.

Using PHP script as follows to convert XML & XSL as follws:

Use xslt_run() function to read and process the XML and XSLT files, and store the results of
the processing in the default result buffer.

xslt_run($xslthandler, $xslfile, $xmlfile);

Once the processing is complete and the output dumped into the default result buffer, use
xslt_fetch_result() function to fetch the contents of the buffer and print it to the browser.

echo xslt_fetch_result($xslthandler);
So far O.K.

My query is how will I know whether output file is '.html file OR wap file or file type used for PDA. Does 'Sablotron' has got options for desired output for browser/wap/PDA outpur format?

What output file format PDA supports?
Whether all mobile phone support (Nokia, Ericsson, samsung, motorala, etc) same wap output format?
What about .html output?

I went through sablotron documentation but could not get information about outpur formats.
Help appreciated.

Thanks.

Reply With Quote
  #5  
Old November 4th, 2002, 10:06 AM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
You'll have to detect the browser yourself. Do that first, then use a different xsl file based on what kind of output you want.

I'm not very familiar with wml, but as far as I know it is a standard, so between that and html you should be able to hit everything.

All of the pda browsers I've seen support html. Try out your page in a text only browser to get an idea of how it will appear (without images, of course).

Reply With Quote
  #6  
Old November 4th, 2002, 10:46 AM
ads ads is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2001
Location: India
Posts: 192 ads User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 12 m 27 sec
Reputation Power: 7
Thanks for your support. Great help.
Can you guide me How to detect browser? Suggest me link which will give me idea to detect browser.
Thanks.

Reply With Quote
  #7  
Old November 5th, 2002, 12:04 AM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
This oughta help.
http://www.phpbuilder.com/columns/t...821.php3?page=2

Here's a list of user-agent strings. Maybe you can pull something useful out of here, too.
http://www.pgts.com.au/pgtsj/pgtsj0208c.html

And, if you feel like interpreting asp, here's a useful page.
http://www.wirelessdevnet.com/chann...rt/default.html

Last edited by bricker42 : November 5th, 2002 at 12:10 AM.

Reply With Quote
  #8  
Old November 11th, 2002, 06:01 PM
alba5 alba5 is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 68 alba5 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 35 m
Reputation Power: 7
Hi,

All the above comments are all well and good, but I dont understand where the actual XML document comes from (the one that i couple with the XSLT stylesheet to produce my output).

I am using PHP and MySQL, how do I produce my XML file on the fly using data from my MySQL database as i would when generating regular HTML pages?

Alba

Reply With Quote
  #9  
Old November 11th, 2002, 08:40 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
Instead of output html, you output xml. They're the same thing, you just use different tags.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > How to create page which can be viewed Handhelds like Mobile communicator OR PDA.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway