Use a simple XSL style sheet to convert XML data to HTML. With the continuous evolution of XML specification, it seems necessary to meet each person in the new version; unfortunately, simple conversion has always been plagued. Suppose I have an XML data representing a page content, now I want to convert its content into layout. Here is the XML: XML Version = '1.0'?> < Text> Folder 1 text> file 1 text> string type> 50 length> Some Data value> data> field> fields> file> files> folder> folders> xml> This content represents a set of folders, files and domains . Each folder contains files, each file contains domains for entering data. Each folder in the folder group will behave as a TR element of a TABLE's first row and a TD element. Each file in the file group will represent a TR element of the first row of a Table element nested in the folder TR element and a TD element. Each domain in the domain group will appear as an Input in the relevant file. In order to achieve this, we need to traverse XML then build a table according to XSL.
Here is the XSL: Xml version = "1.0"?> Function getElementCount (nodelist, what) {var RTRN = 0; RTRN = nodelist [0] .parentnode.selectnodes (what) .length; return (RTRN 1); // 1 IS Added for Filler TD} msxsl: script>