I know a foreign language-XSL at the level "I can read with the dictionary." And, most likely, I don’t need more. But here, I would study the principles of building XML + XSL systems. I need it to implement one idea + for self-development.
Probably, without knowing the subject area, I will not be able to formulate “correct and understandable questions”, but I will try. So:
Problem # 1: Conversion of the Program-language hash-array-variable to the XML-format. Are there any requirements for the structure of the array and any formalized algorithms for converting data into XML format so that when creating an XSL template there is a minimum of complexity? Here: “complexity” is most likely “an understanding of the data structure” (perhaps something else).
Problem # 2: Convert XML to a complete HTML page. Here I just lack experience = (And this question is the most difficult to formulate. I see it all like this:
- The server by URI generates the Object-Resource data in XML format. - XSL transformation is superimposed on XML, resulting in a piece of HTML code. - The resulting HTML should be added inside the page template. - The page may contain the HTML code of other Resource Objects. - In the HTML code, there may be data with the same structure. Example: username, link, button, menu item, and anything.
Here I do not want to reinvent the bicycle factory. Could you give some kind of link or share experience how is all this “right” done in terms of organizing patterns, order of transformations, etc.? And I would take it over =) ')
Problem number 3: Converting data into different formats: Perhaps this is not useful, and perhaps it is worth starting already at the design stage of the system.
The problem is that the data must be converted into the same HTML code both on the server and in the browser. Have you encountered algorithms for solving such problems?
- what is XSL1 and JsonTemplate is not yet fully understood - I don't really want to use XSL on the client =)
I really hope for your help (otherwise I will have to do everything “as usual” =)