Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (115.55 KB, 3 trang )
8.6EvolutionofWebApplications
ThepotentialofXML-enabledWebapplicationscanbeillustratedbythe
verysimpleTravelPlanningapplicationthatwedevelopedinthischapter.
Airlineandhotelcompanieshaveinvestedalottomaketheirexisting
backendsystems(typicallybasedonLotusNotes,SAP,andsoon)
accessiblefromWebbrowsers.Thishasbeenatremendoussuccess,
nowexertinggreaterreachtoendusersallovertheworld.However,that
reachislimitedtobrowsers(andthustohumanusers)becauseHTMLis
goodonlyfordisplayingonthescreen.Forexample,atravelagentwho
wantstoputtheflightinformationinaspreadsheettocombineitwith
otherinformationforacustomermustmanuallycutandpasteindividual
piecesofinformationbetweentheWebbrowserandthespreadsheet
application.
8.6.1BrowserClients
Figure8.10depictsapossiblescenariooftheevolutionofaWebsite
poweredbyXML.ExistingWebapplicationsaretypicallydesignedto
generateHTMLpagesdirectlyfromadatabase.Thefirststeptoestablish
anXML-enabledWebsiteistogeneratealogicalandpresentationneutralrepresentationinXML/DOM,whichistobeconvertedintoHTML,
asshownincase(1)inFigure8.10.Thiscoversallofthebrowserbasedclients.
Figure8.10XML-poweredWebsite
8.6.2officeClients
Thesecondstepistoconvertthepresentation-neutralrepresentationinto
aformatthatissupportedbyofficeproducts.Forexample,ifthetravel
agentreceivestheflightinrormationinXMLthatiscompatiablewithoffice
products,thatinformationcanbefedintoaspreadsheet,thereby
eliminatingtediouscut-and-pasteoperations.Thisisshownincase(2)in
Figure8.10.MicrosoftandLotusarequicklymovingtowardssupporting
XMLintheirofficeproducts.Forexample,Lotuse-SuiteisalreadyXMLenabled,soyoucancreateanXMLdocumentthatisdirectlyloadableto
ane-Suitespreadsheet.