Use XML/XSL for the publication in Web

With development of Internet-technologies more and more actual there is a problem of performance of the same document in various forms and formats. If in usual Web-? it is enough to write only one HTML-document which it will be quite comprehensible it is displayed by conducting{leading} browsers the situation in mobile Web-? is a little more complex{difficult}.


Popularity of mobile devices grows every day, the number of users of mobile devices increases promptly. In the countries where the number of mobile devices reaches{achieves} 80 % on 100 % of the population (Japan, J.Koreja, Taiwan, Hong Kong, Indonesia), the web designer and webs - developers have already faced this problem.


Use of mobile devices is not a craze or to prestige, it first of all a tribute to convenience. In Europe and America users while the price and complexity in job of these devices, and also - stops only disorder in standards and methods of performance of the information. Due to the decision of these problems popularity of mobile devices so is high in Asia. Experience of Asia already starts to be applied in Europe and in America. Hence soon and there web designers should solve a problem which already faces to web designers of Asia.


In mobile Web-? for the present there is no uniform standard of performance of the information. Practically each manufacturer of the mobile device, starting{beginning} from mobile phone and finishing naladonnymi computers, supports any own standard of performance of the information, for example, WML (for WAP), MML (J-Phone), HDML (for EZweb), CHTML (for DoCoMo), simplified HTML (for PDA). Almost all these formats are incompatible with each other - WAP-phone cannot show the page written in CHTML, and PDA iPAQ cannot show the page written on WML for WAP-phone. And some related variants - MML and CHTML - have small specific differences. Transformation of one format to another rather labour-intensive process. And if to take into account that the mobile devices using the same technology of performance of the information, can differ even in the sizes of the screen, depth of color and a format of graphic files the number of combinations of various variants of pages which you should write manually, reaches{achieves} astronomical size. Still the big difficulties arise at support of all this heap of variants of pages. For modifying in the maintenance{contents} of the text you should change ALL variants of pages that can turn to a nightmare.


There is a set of approaches to the decision of this problem, but one of the most attractive is the XML/XSL-technology. She will consist in separating the data (maintenance{contents}) from their visual performance (the form and a format).

XML/XSL


The circuit of job of the XML/XSL-application can look so:


All this works simply enough: what to transform the XML-document under the XSL-table it would be necessary to take the XSL-processor, to give him on an input{entrance} two files and on an output{exit} the result will turn out.


Now let's consider in more detail all process consisting of three steps:


1. Creation of a XML-code. The owner of information filling creates and develops XML-files. He should not know anything about how the content is processed and represented. So more modern publishing systems, however the majority of means of the publication in Web address with a content do not work in such manner. Instead of it owners of a content and encoders HTML often do{make} job each other.


As a rule, this part of a cycle is carried out with the help of usual text editors though are available and the specialized editors of a XML-code a little bit simplifying job. Some suppliers SUBD have equipped the products with function of direct generation of a XML-code in reply to input of the operator select.

2. Creation of XSL-tables.


All logic of processing and conclusion of the XML-document consists here. A problem{task} of creation of the XSL-table not trivial, therefore XSL-tables are created by the manager - programmer and after creation vary already seldom.

3. Imposing style tables XSL.


On the document generated on a step 1, then style tables XSL (a step 2) are imposed. Thus concrete rules of formatting are carried out, giving out in result the document corresponding to the requesting client. Into number of possible{probable} target formats enter HTML, PDF, WML and XML.