home *** CD-ROM | disk | FTP | other *** search
- <?xml version='1.0' encoding="windows-1250" ?>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
-
- <xsl:template match="sw">
- <xsl:if expr="StartLine()">
- <xsl:element name="tr"/>
- </xsl:if>
- <td class="Frame" width="50%">
- <xsl:value-of select="."/>
- </td>
- <xsl:if expr="EndLine()">
- <xsl:element name="/tr"/>
- </xsl:if>
- </xsl:template>
-
- <xsl:template match="prop">
- <xsl:value-of select="kind"/>: <xsl:value-of select="value"/><br/>
- </xsl:template>
-
- <xsl:template match="prop[kind='U₧ivatel']">
- <xsl:value-of select="kind"/>: <b><xsl:value-of select="value"/></b><br/>
- </xsl:template>
-
- <xsl:template match="node[proplist/prop[kind='Druh']/value='Sestava']">
- <table width="100%">
- <tr>
- <td><h1>Nainstalovan² software</h1></td>
- <td>Nßzev sestavy:<br/>
- <font size="+2"><b><xsl:value-of select="proplist/prop[kind='Nßzev sestavy']/value"/></b></font>
- </td>
- <xsl:if test="proplist/prop[kind='Inventßrnφ Φφslo']/value">
- <td>Inv.Φφslo sestavy:<br/>
- <font size="+2"><b><xsl:value-of select="proplist/prop[kind='Inventßrnφ Φφslo']/value"/></b></font><br/>
- </td>
- </xsl:if>
- <xsl:if test=".//node[proplist/prop[kind='Druh']/value='PoΦφtaΦ']/proplist/prop[kind='Inventßrnφ Φφslo']/value">
- <td>Inv.Φφslo poΦφtaΦe:<br/>
- <font size="+2"><b><xsl:value-of select=".//node[proplist/prop[kind='Druh']/value='PoΦφtaΦ']/proplist/prop[kind='Inventßrnφ Φφslo']/value"/></b></font><br/>
- </td>
- </xsl:if>
- </tr>
- </table>
- <table width="100%" class="Frame">
- <tr>
- <td class="Frame" valign="top" bgcolor="#d8e4d8">
- <xsl:apply-templates select="proplist/prop[kind='U₧ivatel']"/>
- <xsl:apply-templates select="proplist/prop[kind='Osobnφ Φφslo']"/>
- <xsl:apply-templates select="proplist/prop[kind='Nßzev organizace']"/>
- <xsl:apply-templates select="proplist/prop[kind='Zßvod']"/>
- <xsl:apply-templates select="proplist/prop[kind='Zßvod1']"/>
- <xsl:apply-templates select="proplist/prop[kind='Zßvod2']"/>
- <xsl:apply-templates select="proplist/prop[kind='Zßvod3']"/>
- <xsl:apply-templates select="proplist/prop[kind='┌sek']"/>
- <xsl:apply-templates select="proplist/prop[kind='┌sek1']"/>
- <xsl:apply-templates select="proplist/prop[kind='┌sek2']"/>
- <xsl:apply-templates select="proplist/prop[kind='┌sek3']"/>
- <xsl:apply-templates select="proplist/prop[kind='St°edisko']"/>
- <xsl:apply-templates select="proplist/prop[kind='St°edisko1']"/>
- <xsl:apply-templates select="proplist/prop[kind='St°edisko2']"/>
- <xsl:apply-templates select="proplist/prop[kind='St°edisko3']"/>
- <xsl:apply-templates select="proplist/prop[kind='┌tvar']"/>
- <xsl:apply-templates select="proplist/prop[kind='┌tvar1']"/>
- <xsl:apply-templates select="proplist/prop[kind='┌tvar2']"/>
- <xsl:apply-templates select="proplist/prop[kind='┌tvar3']"/>
- <xsl:apply-templates select="proplist/prop[kind='Odd∞lenφ']"/>
- </td>
- <td class="Frame" valign="top" bgcolor="#d8e4d8">
- <xsl:apply-templates select="proplist/prop[kind='Budova']"/>
- <xsl:apply-templates select="proplist/prop[kind='Poschodφ']"/>
- <xsl:apply-templates select="proplist/prop[kind='Mφstnost']"/>
- <xsl:apply-templates select="proplist/prop[kind='Umφst∞nφ']"/>
- </td>
- <xsl:if test="proplist/prop[kind='Nßzev sφt∞' or kind='Nßzev podsφt∞' or kind='Nßzev v∞tve sφt∞']">
- <td class="Frame" valign="top" bgcolor="#d8e4d8">
- <xsl:apply-templates select="proplist/prop[kind='Nßzev sφt∞']"/>
- <xsl:apply-templates select="proplist/prop[kind='Nßzev podsφt∞']"/>
- <xsl:apply-templates select="proplist/prop[kind='Nßzev v∞tve sφt∞']"/>
- </td>
- </xsl:if>
- </tr>
- </table>
-
- <xsl:if test=".//swlist/sw[@cat='1']">
- <h3>OperaΦnφ systΘm</h3>
- <xsl:for-each select=".//swlist/sw[@cat='1']">
- <xsl:value-of/><br/>
- </xsl:for-each>
- </xsl:if>
-
- <xsl:if test=".//swlist/sw[@cat='0' and @type='1']">
- <h3>KomerΦnφ software</h3>
- <table width="100%" class="Frame">
- <xsl:eval>InitLine()</xsl:eval>
- <xsl:apply-templates select=".//swlist/sw[@cat='0' and @type='1']"/>
- </table>
- </xsl:if>
-
- <xsl:if test=".//swlist/sw[@cat='0' and @type='3']">
- <h3>Shareware/Trial</h3>
- <table width="100%" class="Frame">
- <xsl:eval>InitLine()</xsl:eval>
- <xsl:apply-templates select=".//swlist/sw[@cat='0' and @type='3']"/>
- </table>
- </xsl:if>
-
- <xsl:if test=".//swlist/sw[@cat='0' and @type='2']">
- <h3>Freeware</h3>
- <table width="100%" class="Frame">
- <xsl:eval>InitLine()</xsl:eval>
- <xsl:apply-templates select=".//swlist/sw[@cat='0' and @type='2']"/>
- </table>
- </xsl:if>
-
- </xsl:template>
-
- <xsl:template match="/">
- <xsl:choose>
- <xsl:when test=".//node[proplist/prop[kind='Druh']/value='Sestava']">
- <xsl:for-each select=".//node[proplist/prop[kind='Druh']/value='Sestava']">
- <xsl:apply-templates select="."/>
- <xsl:if test="context()[not(end())]"><p class="page"></p></xsl:if>
- </xsl:for-each>
- </xsl:when>
- <xsl:otherwise>
- Vybran² objekt neobsahuje ₧ßdou poΦφtaΦovou Sestavu.
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="swlist">
- <table id="Detail" width="100%" border="0" class="Frame">
- <tr bgColor="silver">
- <td><b>Software</b></td>
- <td align="right">
- <img id="CloseDetails" onclick="OnToggleDetails()" style="cursor:hand" alt="skr²t detaily"/>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <table border="0" cellspacing="0" cellpadding="2">
- <tr>
- <td><b>OperaΦnφ systΘm:</b> <xsl:value-of select="./sw[@cat='1']"/></td>
- </tr>
- <tr>
- <td><b>Aplikace:</b>
- <xsl:for-each select="./sw[@cat!='1']">
- <xsl:value-of select="."/><xsl:if test="context()[not(end())]">, </xsl:if>
- </xsl:for-each>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </xsl:template>
-
-
- <xsl:script><![CDATA[
-
- var g_ColumnCount=2;
- var g_Column;
-
- function InitLine()
- {
- g_Column=g_ColumnCount;
- }
-
- function StartLine()
- {
- if ( g_Column >= g_ColumnCount ) {
- g_Column=0;
- return true;
- }
-
- return false;
- }
-
- function EndLine()
- {
- if ( ++g_Column >= g_ColumnCount )
- return true;
-
- return false;
- }
-
- function MakePatternString(s)
- {
- var st;
- st=s;
- st=st.replace("&","&");
- st=st.replace("\"",""");
- st=st.replace("<",">");
- st=st.replace(">","<");
- st=st.replace("'","\\'");
- return st;
- }
-
- ]]></xsl:script>
-
- </xsl:stylesheet>