⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mapcompat.xslt

📁 IT projecotr reference design.
💻 XSLT
字号:
<?xml version="1.0" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output indent="yes" method="html" encoding="UTF-8" />
    <xsl:template match="/map_compatibility">
        <html>
            <head>
                <title>DLP Composer(TM) Compatibility Matrix</title>
                <style type="text/css">
                body { background-color: #E8E8E8; text-align: center; }
                table.matrix { border-width: 2px; border-style: solid; border-color: black; border-collapse: collapse; text-align: center; margin-left: auto; margin-right: auto;  }
                table.matrix td { background-color: #f8f8f8; padding: 5px 8px 5px 8px; border-style: solid; border-color: black; border-width: 1px;}
                table.matrix th { color: White; background-color: DimGray; padding: 5px 8px 5px 8px; border-style: solid; border-color: black; border-width: 1px;}
                </style>
            </head>
            <body ID="CompatMatrixDlg">
                <table class="matrix">
                    <thead>
                        <tr>
                            <th>DLP Composer(TM) Release</th>
                            <th>ASIC</th>
                            <th>CFG_REV</th>
                            <th>API</th>
                        </tr>
                    </thead>
                    <xsl:for-each select="composer">
                        <xsl:for-each select="asic">
                            <xsl:variable name="asic-pos" select="position()" />
                            <xsl:choose>
                                <xsl:when test="map">
                                    <xsl:variable name="map-count" select="count(map)" />
                                    <xsl:for-each select="map">
                                        <xsl:variable name="map-pos" select="position()" />
                                        <xsl:variable name="map-num">
                                            <xsl:choose>
                                                <xsl:when test="$map-count &gt; 1">
                                                    <xsl:text> (</xsl:text>
                                                    <xsl:value-of select="position()" />
                                                    <xsl:text>)</xsl:text>
                                                </xsl:when>
                                                <xsl:otherwise />
                                            </xsl:choose>
                                        </xsl:variable>
                                        <xsl:for-each select="version">
                                            <xsl:variable name="version-pos" select="position()" />
                                            <tr>
                                                <xsl:choose>
                                                    <xsl:when test="$asic-pos = 1 and $map-pos = 1 and $version-pos = 1">
                                                        <td>
                                                            <xsl:attribute name="rowspan">
                                                                <xsl:value-of select="count(../asic[not(map)]) + count(../asic/map/version)" />
                                                            </xsl:attribute>
                                                            <xsl:value-of select="../../../release" />
                                                        </td>
                                                    </xsl:when>
                                                    <xsl:otherwise />
                                                </xsl:choose>
                                                <xsl:choose>
                                                    <xsl:when test="$map-pos = 1 and $version-pos = 1 or $map-count > 1">
                                                        <td>
                                                            <xsl:choose>
                                                                <xsl:when test="$map-count = 1">
                                                                    <xsl:attribute name="rowspan">
                                                                        <xsl:value-of select="count(../../map/version)" />
                                                                    </xsl:attribute>
                                                                </xsl:when>
                                                            </xsl:choose>
                                                            <xsl:value-of select="../../type" />
                                                            <xsl:value-of select="$map-num" />
                                                        </td>
                                                    </xsl:when>
                                                    <xsl:otherwise></xsl:otherwise>
                                                </xsl:choose>
                                                <td>
                                                    <xsl:value-of select="cfg_rev" />
                                                </td>
                                                <td>
                                                    <xsl:value-of select="api" />
                                                </td>
                                            </tr>
                                        </xsl:for-each>
                                    </xsl:for-each>
                                </xsl:when>
                                <xsl:otherwise>
                                    <tr>
                                        <xsl:choose>
                                            <xsl:when test="$asic-pos = 1">
                                                <td>
                                                    <xsl:attribute name="rowspan">
                                                        <xsl:value-of select="count(../asic[not(map)]) + count(../asic/map/version)" />
                                                    </xsl:attribute>
                                                    <xsl:value-of select="../release" />
                                                </td>
                                            </xsl:when>
                                            <xsl:otherwise />
                                        </xsl:choose>
                                        <td>
                                            <xsl:value-of select="type" />
                                        </td>
                                        <td colspan="2">No Version Information</td>
                                    </tr>
                                </xsl:otherwise>
                            </xsl:choose>
                        </xsl:for-each>
                    </xsl:for-each>
                </table>
                <div align="right" class="revision">Revision: <xsl:value-of select="revision" /></div>
                <div id="footnote"></div>
            </body>
        </html>
    </xsl:template>
</xsl:stylesheet>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -