home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2003 December
/
PCWorld_2003-12_cd.bin
/
Software
/
komercni
/
alc
/
ep2sr51csy.msi
/
Ep.CAB
/
repx3
< prev
next >
Wrap
Extensible Markup Language
|
2002-05-22
|
13KB
|
333 lines
<?xml version='1.0' encoding="windows-1250" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<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']">
<table width="100%">
<tr>
<td><h1>EvidenΦnφ karta</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">
<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">
<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">
<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: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="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">
<tr>
<td class="Frame"><xsl:value-of select="proplist/prop[kind='Druh']/value"/></td>
<td class="Frame">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><xsl:value-of select="name"/></td>
<xsl:if test="proplist/prop[kind='Inventßrnφ Φφslo']">
<td> </td>
<td>Inv.Φ:<xsl:value-of select="proplist/prop[kind='Inventßrnφ Φφslo']/value"/></td>
</xsl:if>
<xsl:if test="proplist/prop[kind='SΘriovΘ Φφslo']">
<td> </td>
<td>SΘriovΘ Φ:<xsl:value-of select="proplist/prop[kind='SΘriovΘ Φφslo']/value"/></td>
</xsl:if>
</tr>
</table>
</td>
</tr>
</xsl:template>
<xsl:template match="node[proplist/prop[kind='Druh' and value='Procesor']]">
<tr>
<td class="Frame">Procesor</td>
<td class="Frame">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b><xsl:value-of select="name"/></b></td>
<td> </td>
<td>SΘriovΘ Φ: <xsl:value-of select="proplist/prop[kind='SΘriovΘ Φφslo']/value"/></td>
</tr>
</table>
</td>
</tr>
</xsl:template>
<xsl:template match="node[proplist/prop[kind='Druh' and value='Pam∞¥ RAM']]">
<tr>
<td class="Frame">Pam∞¥ RAM</td>
<td class="Frame">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><b><xsl:value-of select="proplist/prop[kind='Velikost']/value"/></b></td>
<xsl:if test="nodelist/node[proplist/prop[kind='Druh' and value='RAM chip']]">
<td>
(<xsl:for-each select="nodelist/node[proplist/prop[kind='Druh' and value='RAM chip']]">
<xsl:value-of select="proplist/prop[kind='Velikost']/value"/><xsl:if test="context()[not(end())]">, </xsl:if>
</xsl:for-each>)
</td>
</xsl:if>
</tr>
</table>
</td>
</tr>
</xsl:template>
<xsl:template match="node[proplist/prop[kind='Druh' and value='Pevn² disk']]">
<tr>
<td class="Frame">Pevn² disk</td>
<td class="Frame"><b><xsl:value-of select="proplist/prop[kind='Velikost']/value"/></b>, <xsl:value-of select="proplist/prop[kind='Nßzev']/value"/></td>
</tr>
</xsl:template>
<xsl:template match="node[proplist/prop[kind='Druh' and value='Grafickß karta']]">
<tr>
<td class="Frame">Grafickß karta</td>
<td class="Frame">
<xsl:value-of select="proplist/prop[kind='Nßzev']/value"/>, <xsl:value-of select="proplist/prop[kind='Velikost RAM']/value"/>
</td>
</tr>
</xsl:template>
<xsl:template match="node[proplist/prop[kind='Druh' and value='Sφ¥ovß karta']]">
<tr>
<td class="Frame">Sφ¥ovß karta</td>
<td class="Frame">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><xsl:value-of select="proplist/prop[kind='Nßzev']/value"/></td>
<td> </td>
<td>IP: <xsl:value-of select="proplist/prop[kind='IP adresa']/value"/></td>
<td> </td>
<td>MAC: <xsl:value-of select="proplist/prop[kind='MAC adresa']/value"/></td>
</tr>
</table>
</td>
</tr>
</xsl:template>
<xsl:template match="node[proplist/prop[kind='Druh' and value='Monitor']]">
<tr>
<td class="Frame"><xsl:value-of select="proplist/prop[kind='Druh']/value"/></td>
<td class="Frame">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><xsl:value-of select="name"/><xsl:if test="proplist/prop[kind='┌hlop°φΦka']">, <xsl:value-of select="proplist/prop[kind='┌hlop°φΦka']/value"/></xsl:if></td>
<xsl:if test="proplist/prop[kind='Inventßrnφ Φφslo']">
<td> </td>
<td>Inv.Φ:<xsl:value-of select="proplist/prop[kind='Inventßrnφ Φφslo']/value"/></td>
</xsl:if>
<xsl:if test="proplist/prop[kind='SΘriovΘ Φφslo']">
<td> </td>
<td>SΘriovΘ Φ:<xsl:value-of select="proplist/prop[kind='SΘriovΘ Φφslo']/value"/></td>
</xsl:if>
</tr>
</table>
</td>
</tr>
</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:template match="node[proplist/prop[kind='Druh' and value='Sestava']]/nodelist">
<table width="100%" border="0" class="Frame">
<tr>
<td colspan="2" class="Frame" bgColor="silver"><b>P°φsluÜenstvφ</b></td>
</tr>
<xsl:apply-templates select="node[proplist/prop[kind='Druh' and value='Monitor']]"/>
<xsl:apply-templates select="node[proplist/prop[kind='Druh' and value='Klßvesnice']]"/>
<xsl:apply-templates select="node[proplist/prop[kind='Druh' and value='MyÜ']]"/>
<xsl:apply-templates select="node[proplist/prop[kind='Druh' and value!='PoΦφtaΦ' and value!='Monitor' and
value!='Klßvesnice' and value!='MyÜ']]"/>
</table>
</xsl:template>
<xsl:template match="report/node">
<table width="100%" border="0" class="Frame">
<tr bgColor="silver">
<td colspan="3" class="Frame"><b><xsl:value-of select="proplist/prop[kind='Druh']/value"/></b></td>
</tr>
<tr>
<td class="Frame">Nßzev: <b><xsl:value-of select="name"/></b></td>
<td class="Frame">Inv.Φ: <b><xsl:value-of select="proplist/prop[kind='Inventßrnφ Φφslo']/value"/></b></td>
<td class="Frame">SΘriovΘ Φ: <b><xsl:value-of select="proplist/prop[kind='SΘriovΘ Φφslo']/value"/></b></td>
</tr>
</table>
</xsl:template>
<xsl:template match="node[proplist/prop[kind='Druh' and value='Sestava']]">
<xsl:apply-templates select="nodelist/node[proplist/prop[kind='Druh' and value='PoΦφtaΦ']]"/>
</xsl:template>
<xsl:template match="node[proplist/prop[kind='Druh' and value='PoΦφtaΦ']]">
<table width="100%" border="0" class="Frame">
<tr bgColor="silver">
<td colspan="3"><b>PoΦφtaΦ</b></td>
<td align="right">
<img id="ToggleDetails" onclick="OnToggleDetails()" style="cursor:hand" alt="zobrazit/skr²t detaily"/>
</td>
</tr>
<tr>
<td colspan="2" class="Frame" width="50%">Inventßrnφ Φφslo: <b><xsl:value-of select="proplist/prop[kind='Inventßrnφ Φφslo']/value"/></b></td>
<td colspan="2" class="Frame">SΘriovΘ Φφslo: <b><xsl:value-of select="proplist/prop[kind='SΘriovΘ Φφslo']/value"/></b></td>
</tr>
<tr>
<td colspan="2" class="Frame">Typ: <xsl:value-of select="proplist/prop[kind='Typ']/value"/></td>
<td colspan="2" class="Frame">TypovΘ oznaΦenφ: <xsl:value-of select="proplist/prop[kind='TypovΘ oznaΦenφ']/value"/></td>
</tr>
<tr id="NakupInfo">
<td colspan="1" class="Frame" width="33%">Dodavatel: <xsl:value-of select="proplist/prop[kind='Dodavatel']/value"/></td>
<td colspan="2" class="Frame" width="33%">Datum nßkupu: <xsl:value-of select="proplist/prop[kind='Datum nßkupu']/value"/></td>
<td class="Frame">Zßruka: <xsl:value-of select="proplist/prop[kind='Zßruka']/value"/></td>
</tr>
</table>
<table id="Detail" width="100%" border="0" class="Frame">
<tr bgColor="silver">
<td colspan="2">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><b>TechnickΘ parametry</b></td>
<td align="right"><img id="CloseDetails" onclick="OnToggleDetails()" style="cursor:hand" alt="skr²t detaily"/></td>
</tr>
</table>
</td>
</tr>
<xsl:apply-templates select="nodelist/node[proplist/prop[kind='Druh' and value='Procesor']]"/>
<xsl:apply-templates select="nodelist/node[proplist/prop[kind='Druh' and value='Pam∞¥ RAM']]"/>
<xsl:apply-templates select="nodelist/node[proplist/prop[kind='Druh' and value='Pevn² disk']]"/>
<xsl:apply-templates select="nodelist/node[proplist/prop[kind='Druh' and value='Grafickß karta']]"/>
<xsl:apply-templates select="nodelist/node[proplist/prop[kind='Druh' and value='Sφ¥ovß karta']]"/>
<xsl:apply-templates select="nodelist/node[proplist/prop[kind='Druh' and value='CD mechanika']]"/>
<xsl:apply-templates select="nodelist/node[proplist/prop[kind='Druh' and value='Disketovß mechanika']]"/>
<xsl:apply-templates select="nodelist/node[proplist/prop[kind='Druh' and value='Zvukovß karta']]"/>
<xsl:apply-templates select="nodelist/node[proplist/prop[kind='Druh' and value='Modem']]"/>
<xsl:apply-templates select="nodelist/node[proplist/prop[kind='Druh' and value!='Procesor' and
value!='Pam∞¥ RAM' and value!='Pevn² disk' and value!='Grafickß karta' and value!='Sφ¥ovß karta' and
value!='CD mechanika' and value!='Disketovß mechanika' and value!='Zvukovß karta' and value!='Modem' and
value!='Seznam instalovanΘho software']]"/>
</table>
<xsl:apply-templates select="ancestor(node[proplist/prop[kind='Druh' and value='Sestava']])/nodelist"/>
<xsl:apply-templates select=".//swlist"/>
</xsl:template>
<xsl:script><![CDATA[
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>