Proceed to WirelessDevNet Home Page
Publications, e-books, and more! Community Tutorials Store Downloads, tools, & Freebies! IT Career Center News Home
newnav.gif

Newsletters
EMail Address:



   Content
  - Articles
  - Columns
  - Training
  - Library
  - Glossary
 
   Career Center
  - Career Center Home
  - View Jobs
  - Post A Job
  - Resumes/CVs
  - Resource Center
 
   Marketplace
  - Marketplace Home
  - Software Products
  - Wireless Market Data
  - Technical Books
 
   News
  - Daily News
  - Submit News
  - Events Calendar
  - Unsubscribe
  - Delivery Options
 
   Community
  - Discussion Boards
  - Mailing List
  - Mailing List Archives
 
   About Us
  - About WirelessDevNet
  - Wireless Source Disks
  - Partners
  - About MindSites Group
  - Advertising Information
 
INDEX
>Introduction
>Dissecting The ASP Document
>Dissecting The XSL Stylesheet
>Conclusion

Transforming XML into WML (cont.)

Dissecting The XSL Stylesheet

The most notable addition to the stylesheet is the element:

<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output omit-xml-declaration="yes">

In our case, I use the element with the attribute omit-xml-declaration set to "yes". This is important, as the XSLT processor (MSXML3, in this case) will include in the output the XML Processing Instruction:

<?xml version="1.0" encoding="utf-8"?>

And so if element is omitted, the WAP device would receive the following (formatted for easy reading):

<?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <?xml version="1.0" encoding="utf-8"?> <wml> <card id="card1" title="Courses"> <p> <b>Course Title: </b>XML/XSLT - Extensible Markup Language & Extensible Stylesheet Language<br/> <b>Synopsis: </b><i>XML is the language used for describing data. With the advent of WAP, web sites developers are increasingly deploying their sites in XML and using the transformation engine of XSL, which is XSLT, to tailor their web pages to different browsers. Participants will be developing applications that can dynamically adapt to different browsers. </i><br/> <b>Duration: </b>2 days <br/> <b>Fees: </b>S$$800<br/> <b>Dates:</b><br/> 14/10/2000 From 1730hrs to 2130hrs @ Rock Tower - 4Evenings<br/> 21/10/2000 From 0900hrs to 1700hrs @ Developers Unit - 2Full Days<br/> </p> </card> </wml>

The additional PI is going to cause an error since the resultant WML does not adhere to the WML DTD.

Next: Conclusion

Sponsors

Search

Eliminate irrelevant hits with our industry-specific search engine!









Wireless Developer Network - A MindSites Group Trade Community
Copyright© 2000-2010 MindSites Group / Privacy Policy
Send Comments to:
feedback@wirelessdevnet.com