Warning, /DQM/CSCMonitorModule/data/emuDocumentation.xsl is written in an unsupported language. File is not indexed.
0001 <?xml version="1.0" encoding="ISO-8859-1"?>
0002
0003 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
0004 xmlns:fn="http://www.w3.org/2005/02/xpath-functions">
0005
0006 <xsl:output method="text" omit-xml-declaration="yes" indent="no"/>
0007 <xsl:strip-space elements="*"/>
0008
0009 <xsl:variable name="imgurl" select="'%ATTACHURL%/'"/>
0010
0011 <xsl:template match="/">
0012 <xsl:apply-templates select="/DocLayout/Canvases/Canvas[Prefix='TOP']"/>
0013 <xsl:apply-templates select="/DocLayout/Canvases/Canvas[Prefix='EMU']"/>
0014 </xsl:template>
0015
0016 <xsl:template match="Canvas">
0017
0018 <xsl:text>
0019 ---+++++ </xsl:text><xsl:value-of select="Title"/>
0020 <xsl:text>
0021 </xsl:text>
0022 <xsl:value-of select="normalize-space(Descr)"/>
0023 <xsl:text>
0024 </xsl:text>
0025
0026 <xsl:text>%TABLE{ sort="off" tableborder="0" cellborder="0" valign="top" tablewidth="100%" columnwidths="100%,0%" }%
0027 </xsl:text>
0028
0029 <xsl:for-each select="./*[substring(name(),1,3) = 'Pad' and number(substring(name(),4))]">
0030 <xsl:variable name="histo" select="."/>
0031 <xsl:apply-templates select="//Histogram[Name=$histo]">
0032 <xsl:with-param name="position" select="position()"/>
0033 <xsl:with-param name="canvas_name" select="../Name"/>
0034 </xsl:apply-templates>
0035 </xsl:for-each>
0036
0037 </xsl:template>
0038
0039 <xsl:template match="Histogram">
0040 <xsl:param name="position" value="2"/>
0041 <xsl:param name="canvas_name" value="canv"/>
0042
0043 <xsl:text>| *</xsl:text>
0044
0045 <xsl:text><a name="</xsl:text>
0046 <xsl:value-of select="$canvas_name"/>
0047 <xsl:text>_</xsl:text>
0048 <xsl:value-of select="Name"/>
0049 <xsl:text>"></a></xsl:text>
0050
0051 <xsl:value-of select="Title"/>
0052
0053 <xsl:choose>
0054 <xsl:when test="$position = 1">
0055 <xsl:text>* | <img src="</xsl:text>
0056 <xsl:value-of select="$imgurl"/>
0057 <xsl:value-of select="$canvas_name"/>
0058 <xsl:text>_ref.png" onclick="this.src='</xsl:text>
0059 <xsl:value-of select="$imgurl"/>
0060 <xsl:value-of select="$canvas_name"/>
0061 <xsl:text>.png'" ondblclick="this.src='</xsl:text>
0062 <xsl:value-of select="$imgurl"/>
0063 <xsl:value-of select="$canvas_name"/>
0064 <xsl:text>_ref.png'" /><br/>(click - enlarge; dblclick - back) |
0065 </xsl:text>
0066 </xsl:when>
0067 <xsl:otherwise>
0068 <xsl:text>* |^|
0069 </xsl:text>
0070 </xsl:otherwise>
0071 </xsl:choose>
0072
0073 <xsl:text>| </xsl:text>
0074
0075 <xsl:choose>
0076 <xsl:when test="string-length(normalize-space(Descr)) > 0">
0077 <xsl:value-of select="normalize-space(Descr)"/>
0078 </xsl:when>
0079 <xsl:otherwise>
0080 <xsl:text>(No description)</xsl:text>
0081 </xsl:otherwise>
0082 </xsl:choose>
0083
0084 <xsl:text> |^|
0085 </xsl:text>
0086
0087 </xsl:template>
0088
0089 </xsl:stylesheet>