source: topdoc/src/discover/config.xsl @ 406

Last change on this file since 406 was 406, checked in by jemian, 12 years ago

build a config.xml file for TopDoc? - must run while at APS network

  • Property svn:executable set to *
File size: 2.2 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2
3<!--
4  Stylesheet to provide a view of a configuration for use by
5  the TopDoc project.
6  <?xml-stylesheet type="text/xsl" href="config.xsl" ?>
7 
8  ########### SVN repository information ###################
9  # $Date: 2011-03-19 11:54:18 -0500 (Sat, 19 Mar 2011) $
10  # $Author: jemian $
11  # $Revision: 399 $
12  # $HeadURL: https://subversion.xor.aps.anl.gov/bcdaext/topdoc/src/TopDoc/config.xsl $
13  # $Id: config.xsl 399 2011-03-19 16:54:18Z jemian $
14  ########### SVN repository information ###################
15-->
16
17<xsl:stylesheet 
18        xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
19        version="1.0"
20>
21 
22  <xsl:output method="html"/>
23 
24  <xsl:template match="/">
25    <xsl:apply-templates select="TopDoc-config"/>
26  </xsl:template>
27 
28  <xsl:template match="TopDoc-config">
29    <html>
30      <body>
31        <small>
32          version: <xsl:value-of select="@version"/>
33        </small>
34        <h1>Configuration for Documenting EPICS IOCs using TopDoc</h1>
35        <table border="2">
36          <tr>
37            <th bgcolor="lightgray">rootDir</th>
38            <th bgcolor="lightgray">docsDir</th>
39            <th bgcolor="lightgray">IOCs</th>
40          </tr>
41          <xsl:apply-templates select="top"/>
42        </table>
43        <hr />
44        <center>
45          <small>
46            Report rendered by $Id: config.xsl 399 2011-03-19 16:54:18Z jemian $
47          </small>
48        </center>
49      </body>
50    </html>
51  </xsl:template>
52 
53  <xsl:template match="top">
54    <tr valign="top">
55      <td><tt><xsl:value-of select="rootDir"/></tt></td>
56      <td><tt><xsl:value-of select="docsDir"/></tt></td>
57      <td><xsl:apply-templates select="iocs"/></td>
58    </tr>
59  </xsl:template>
60 
61  <xsl:template match="iocs">
62    <xsl:apply-templates select="ioc"/>
63  </xsl:template>
64 
65  <xsl:template match="ioc">
66    <xsl:if test="position()>1">
67      <hr />
68    </xsl:if>
69    iocDir_<xsl:value-of select="position()"/>:
70      <tt><xsl:value-of select="@iocDir"/></tt> <br />
71    cmdFile_<xsl:value-of select="position()"/>:
72      <tt><xsl:value-of select="@cmdFile"/></tt>
73  </xsl:template>
74
75</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.