摘要 |
PURPOSE: A method for automatically generating an XSL(eXtensible Style Language) style sheet using a gravity layer method is provided to automatically generate the XSL style sheet by sequentially setting a layer grid spacing value and a grid gravity value to the XSL style sheet, and arranging each document object included in an XML(eXtensible Markup Language) document to a proper grid. CONSTITUTION: An XSL editor generates a result tree by receiving a source tree of the XML document from an XML editor. Each document object is recognized as rectangles surrounding the document object. The first layer grids are generated by repeatedly displaying the first virtual vertical/horizontal segment lines to the XSL style sheet. The rectangles are respectively mapped to the first layer grids by using the grid gravity value. The second layer grids are generated by repeatedly displaying the second virtual segment lines quartering the first layer grid. A table including the document object is generated by displaying the grid line of the grid values used in the mapping. The final XSL style sheet is generated by applying the XSL grammar to structure information of the table.
|