Describe Flexible Templates with XML Data Description
- Due to the diversity of page styles, the number of columns in the page is not fixed, resulting in a simple two-dimensional database table to describe a page framework, which is difficult to meet the flexibility required by the editor. However, if you can describe the framework of the page with the XML data description function, then the previous problem can be resolved, or the problem is transferred to the maintenance of XML Document.
Use XML Description Page Framework
Based on the principle of "horizontal division page", we cut the page into a few layers stacked (generally each horizontal row is a table element), then divide each line into one or more vertical columns (column The corresponding is a TD cell in Table), and finally each column is subdivided into several layers, the block is considered to be the smallest page module, and he is a set of text, links, and pictures. Such as news lists, graphics, and so on.
hEAD>
Row -> A landscape
Column -> Vertical columns of row
Block -> The most basic page module
Ratio -> The width ratio of each column in the current line
File ->
Page -> <% jsp: incrude Page = "$ Page" flush = "true"%>
ID -> Correspondence News Bar Id
Style -> This column shows style: pure news list, photo album, graphic mix, display news content (similar to static editing)
]]]]
column>
row>
column>
row>
body>
subject>