diff options
Diffstat (limited to 'description.xsl')
-rwxr-xr-x | description.xsl | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/description.xsl b/description.xsl new file mode 100755 index 0000000..56c7be8 --- /dev/null +++ b/description.xsl @@ -0,0 +1,117 @@ +<?xml version="1.0" encoding="utf-8"?> + +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + <xsl:template match="/"> + <html> + <head> + <style type="text/css"> + html,body { + font-family:Arial; + margin: 0px; + } + td + { + font-size:13px; + } + .samplename + { + font-size:16px; + color:#ffffff; + height:26px; + background-color:#5a78b1; + } + .category + { + font-size:16px; + color:#ffffff; + height:30px; + background-color:#5a78b1; + } + .contents + { + padding: 6px 10px 14px 10px; + } + table#widgets td + { + border: solid 1px #5a78b1; + border-collapse: collapse; + } + .widgetname + { + font-weight: bold; + text-align: center; + width: 20%; + word-break:break-all; + } + table#references td + { + width: 100%; + border: 0px; + border-spacing: 0px; + padding: 5px; + } + .refname + { + width: 100%; + font-weight: bold; + } + </style> + </head> + <body> + <table width="380px" border="0" cellspacing="0"> + <tr> + <td class="samplename" align="center"> + <xsl:value-of select="Overview/SampleName" /> + <xsl:text disable-output-escaping="yes"><![CDATA[ ]]></xsl:text> + </td> + </tr> + <tr bgcolor="#FFFFFF"> + <td class="contents"> + <p> + <xsl:value-of select="Overview/Description" /> + </p> + </td> + </tr> + <tr bgcolor="#FFFFFF"> + <td class="contents"> + <table width="380px" id="references" cellspacing="0"> + <xsl:for-each select="Overview/TechnologyList/Technology"> + <tr bgcolor="#cfcfcf"> + <td class="refname"> + <xsl:value-of select="Name" /> + </td> + </tr> + <tr bgcolor="#f3f3f3"> + <td width="100%"> + <pre> + <xsl:value-of select="Info" /> + </pre> + </td> + </tr> + <tr bgcolor="#f3f3f3"> + <td width="100%"> + <a href="{Url}" target="_blank"> + <xsl:value-of select="Url" /> + </a> + </td> + </tr> + </xsl:for-each> + </table> + </td> + </tr> + <tr> + <td align="center" bgcolor="#FFFFFF" height="260px"> + <img> + <xsl:attribute name="src"> + <xsl:value-of select="Overview/Preview" /> + </xsl:attribute> + </img> + </td> + </tr> + </table> + </body> + </html> + </xsl:template> + +</xsl:stylesheet> |