XML and XSL generation class PowerPoint organizational map
Recently, I am here to learn about XML and XSL related technologies, one day, long night, no heart sleep, swearing, I want to try my own time. Because of the hierarchics of the XML data format used daily, the total feelings and the tree structure are similar, while in the work, it is necessary to realize the confusion of an organizational map, so they try to implement one by XML and XSL. The organizational chart of the organizational structure in PowerPoint has been implemented with ASP, and it is not easy to hide, it is not very dark. I want to take the hardships and joy, difficulties and harvests, I hope to be able to begin XML as I am like me, or is a master of master masters. Ok, there is no done, the list is awkward!
The realized organizational structure is shown below:
The main functions achieved by the structural map of the organization are:
There is no correlation between the various layers.
The subordinate layer of the node is expanded or contracted by clicking the " " icon next to each node.
First let's take a look at the relevant file structure
Organize .xml data files are as follows:
XML Version = "1.0" encoding = "UTF-8"?>
xml-stylesheet type = "text / xsl" href = "organize.xsl"?>
Layer>
Layer>
Layer>
......
Layer>
Layer>
......
Layer>
Layer>
Layer>
......
Layer>
......
Root>
Organize.xsl file content is as follows:
XML Version = "1.0" encoding = "UTF-8"?>
hEAD>
......
style>
Organizational Structure Figure span>
xsl: Call-Template>
div>
center>
body>
html>
xsl: template>
... ------ 省 省 i i 图 操作
img>
span>
...... ------ 省 省 样 样 样 样
xsl: Call-Template>
div>