home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2003 December
/
PCWorld_2003-12_cd.bin
/
Software
/
komercni
/
alc
/
ep2sr51csy.msi
/
Ep.CAB
/
repx7
< prev
next >
Wrap
Extensible Markup Language
|
2002-05-22
|
12KB
|
325 lines
<?xml version='1.0' encoding="windows-1250" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<xsl:for-each select="report">
<xsl:apply-templates select="."/>
<xsl:if test="context()[not(end())]"><p class="page"></p></xsl:if>
</xsl:for-each>
</xsl:template>
<xsl:template match="report">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><h1>Protokol o p°edßnφ</h1></td>
<td align="right">╚φslo:<br/>
<b><font size="+2"><xsl:value-of select="number"/></font></b>
</td>
</tr>
</table>
<br/>
P°edm∞t:<br/>
<xsl:apply-templates select="device/node"/>
<br/>
<xsl:if test="text">
<table border="0" cellpadding="3" cellspacing="0" width="100%" class="Frame">
<tr>
<td class="Frame"><xsl:value-of select="text"/></td>
</tr>
</table>
<br/>
</xsl:if>
<table border="0" cellpadding="3" cellspacing="0" width="100%" class="Frame">
<tr bgColor="silver">
<td width="30%"> </td>
<td colspan="2" width="35%" align="center" class="Frame"><b>P°edßvajφcφ</b></td>
<td width="35%" align="center" class="Frame"><b>P°φjemce</b></td>
</tr>
<tr>
<td class="Frame">JmΘno:</td>
<td colspan="2" class="Frame"><b><xsl:value-of select="originator/node/proplist/prop[kind='U₧ivatel']/value"/></b></td>
<td class="Frame"><b><xsl:value-of select="receiver/node/proplist/prop[kind='U₧ivatel']/value"/></b></td>
</tr>
<tr>
<td class="Frame">Osobnφ Φφslo:</td>
<td colspan="2" class="Frame"><xsl:value-of select="originator/node/proplist/prop[kind='Osobnφ Φφslo']/value"/></td>
<td class="Frame"><xsl:value-of select="receiver/node/proplist/prop[kind='Osobnφ Φφslo']/value"/></td>
</tr>
<tr>
<td class="Frame">Umφst∞nφ:</td>
<td colspan="2" class="Frame"><xsl:value-of select="originator/place"/></td>
<td class="Frame"><xsl:value-of select="receiver/place"/></td>
</tr>
<tr>
<td class="Frame">Datum p°edßnφ:</td>
<td colspan="3" class="Frame"><xsl:value-of select="transferdate"/></td>
</tr>
<tr>
<td class="Frame">Podpis:</td>
<td colspan="2" class="Frame"><br/><br/></td>
<td class="Frame"></td>
</tr>
<tr>
<td colspan="2" width="50%" valign="top" class="Frame">Protokol vystavil:<br/>
<br/>
<br/>
Datum vystavenφ: <xsl:value-of select="date"/></td>
<td colspan="2" class="Frame"></td>
</tr>
</table>
</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="device/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="device/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>