Transforming XML into WML (cont.)
Dissecting The XSL Stylesheet
The most notable addition to the stylesheet is the element:
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:
And so if element is omitted, the WAP device would receive the following (formatted for easy reading):
|
Course Title: XML/XSLT - Extensible Markup Language & Extensible Stylesheet Language
Synopsis: 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.
Duration: 2 days
Fees: S$$800
Dates:
14/10/2000
From 1730hrs to 2130hrs
@ Rock Tower -
4Evenings
21/10/2000
From 0900hrs to 1700hrs
@ Developers Unit -
2Full Days
|
The additional PI is going to cause an error since the resultant WML does not adhere to the WML DTD.
Next: Conclusion