Microsoft Word Applied xml a toolkit for Programmers Wiley doc




Download 2,96 Mb.
Pdf ko'rish
bet32/131
Sana14.05.2024
Hajmi2,96 Mb.
#232039
1   ...   28   29   30   31   32   33   34   35   ...   131
Bog'liq
Ceponkus, Hoodbhoy - Applied XML - Toolkit for Programmers


Parts II
and 
III
of this book; for now, we skim over much of the technical detail to put 
things in perspective. One of the more interesting working drafts under deliberation at the 
W3C is the XML Stylesheet Language (XSL). XSL Stylesheets are used for providing a 
simple, yet powerful set of tools for formatting XML cascading style sheets (CSS) except 
that the syntax is XML-based and fairly easy to use. The idea is for users to perform a 
one-time download of a stylesheet that will help them display information from the original 
content provider (for example, your news agency or broker). Once that stylesheet is 
downloaded and cached on the client’s PC, then the content provider’s server serves 
only raw XML data to the client. The client then has enough information to render (that is, 
generate a view of) the information in their browser. Figure 2.9 summarizes this process.
Figure 2.9:
Using XML with XSL to reduce client/server interaction.


- 29 -
The benefits accrued to both the client and the content provider are enormous.
From the client’s perspective the benefits include the following:

Download time is minimized. Once the stylesheet is downloaded and cached, you only 
need to download a few kilobytes of information. This can improve your download time 
by orders of magnitude 
while using your existing connection
.

You can have several stylesheets, each of which displays the same information in a 
different way (for example, with tabular formatting versus paragraph or with charts and 
graphs).

Once information is downloaded, you don’t have to remain online to perform further 
manipulation of data. If you have the right stylesheets or applets downloaded/cached, 
you can make use of your PC’s standalone strengths, that is, perform client-side 
processing.

You can perform intelligent rearrangement of your data at the client’s side (for 
example, sort by highest gains).
From a content provider’s perspective the benefits include the following:

The server is taxed less. Your server only has to deliver smaller portions of data to 
your clients, therefore your server is taxed less and can perform faster.

The server doesn’t need to develop HTML pages. All it does is forward raw XML 
information to the client, and the stylesheet takes care of all formatting issues.

Because XML is Unicode compliant (that is, tags can be in virtually any language) you 
can create separate stylesheets in different languages (for example, French or 
German) and continue to serve only data to clients around the world. To put this in 
simpler words, you can make your services accessible to anyone in the world, no 
matter what language they speak, with very little overhead.

Download 2,96 Mb.
1   ...   28   29   30   31   32   33   34   35   ...   131




Download 2,96 Mb.
Pdf ko'rish

Bosh sahifa
Aloqalar

    Bosh sahifa



Microsoft Word Applied xml a toolkit for Programmers Wiley doc

Download 2,96 Mb.
Pdf ko'rish