<?xml version="1.0" encoding="UTF-8"?>
<!-- 
   Title: Mosiej family data converter
   Data: 22.11.2003
   Author: Tomasz Mosiej (email: tomek@mosiej.net)
-->
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:family="http://www.mosiej.net/rdf/familyNS.rdf#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#'
xmlns:vCard="http://www.w3.org/2001/vcard-rdf/3.0#" 
exclude-result-prefixes="vCard rdfs rdf xsl fo family"
>

<xsl:output method="xml" indent="no" encoding="iso-8859-2"/>

<xsl:template match="/">

<html>
<head>
	<title>mosiej.net</title>
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-2" />
	<meta http-equiv="author" content="Tomasz Mosiej" />
	<meta name="resource-type" content="document" />
	<meta name="distribution" content="global" />
	<meta name="keywords" content="Mosiej Tomasz strona domowa homepage UW MIMUW Warszawa Polska Poland" />
	<link rel="stylesheet" href="../css/tmm.css" type="text/css" />
    <link rel="shortcut icon" href="../img/index.ico" />
</head>

<body>
  <div class="lang" align="right"> <a href="../index.htm">Polish</a>|English</div>

 <table width="100%">
 <tr>
 <td width="120" align="center" valign="top">
  <img src="img/blind.gif" width="0" height="130" border="0" alt=""/>
  
  <a href="http://www.mosiej.net/en">Info</a><br/>
  <a href="links.htm">Links</a><br/><br/>
<a href="http://java.sun.com/getjava/"><img src="../img/logo/get_java_red_button.gif" alt="Get Java" width="88" height="31" vspace="6" border="0" /></a>
<!--  <a href="tomek/index.htm">O autorze</a>-->
 </td>
<td>
 <div class="header">
  <h1>mosiej.net</h1>   
 </div>
 <hr/>
 <div class="content" align="left">
<h2>&nbsp;&nbsp;&nbsp;Family graph</h2>

<applet code="Graph.class" width="500" height="400" codebase="../classes">
    <PARAM NAME ="codebase" VALUE = "../classes" />    
    <PARAM NAME ="CODE" VALUE = "Graph.class" />
    <PARAM NAME = "type" VALUE = "application/x-java-applet;jpi-version=1.4.2_02"/>
    <PARAM NAME = "scriptable" VALUE = "false"/>


 <PARAM NAME = "edges">
 <xsl:attribute name="VALUE">
<xsl:for-each select="//family:Person">
<xsl:if test="./family:hasMother/@rdf:resource">M:<xsl:value-of select="substring(@rdf:about,30)"/>-<xsl:value-of select="substring(./family:hasMother/@rdf:resource,30)"/>,</xsl:if>
<xsl:if test="./family:hasFather/@rdf:resource">F:<xsl:value-of select="substring(@rdf:about,30)"/>-<xsl:value-of select="substring(./family:hasFather/@rdf:resource,30)"/>,</xsl:if></xsl:for-each>
</xsl:attribute>
</PARAM>
 <xsl:apply-templates select="//family:Person"/>
 
alt="Your browser understands the &lt;APPLET&gt; tag but isn't running the applet, for some reason."
	Your browser is completely ignoring the &lt;APPLET&gt; tag!

</applet>


 </div>
</td>
</tr>
<tr>
 <td align="left" valign="bottom">

 <div class="footer" > 
 &copy;2003 <a href="mailto:tomek@mosiej.net">Tomasz Mosiej</a><br/>
Created: 2003-11-07
<br/>&nbsp;<img alt="counter" border="0" src="http://mosiej.net/counterP.php" width="40" height="12"/>
 </div>
</td>
 <td class="footer" align="right" valign="bottom">
  <a href="../rdf/data.rdf"> RDF Date</a> |  <a href="../rdf/conv_en.xsl">XSL Style</a>
 <hr/>
  </td>
</tr>
</table>



</body>
</html>

 
</xsl:template>

<xsl:template match="//rdfs:label">
  Label:  <xsl:value-of select="text()"/>
</xsl:template>

<xsl:template match="family:Person">
<PARAM>
<xsl:attribute name="NAME">#<xsl:value-of select="substring(@rdf:about,30)"/></xsl:attribute>
<xsl:attribute name="VALUE">
<xsl:value-of select="vCard:Given"/>,<xsl:value-of select="vCard:Family"/>,<xsl:value-of select="vCard:BDAY"/>,<xsl:value-of select="family:BPLACE"/>,<xsl:value-of select="vCard:ADR/vCard:Country"/>
</xsl:attribute>
</PARAM>
</xsl:template>

<!--
<xsl:template match="text()">
	<xsl:value-of select="normalize-space()"/>
</xsl:template>


<xsl:template match="//*">
 <xsl:value-of select="name(.)"/>
 <xsl:value-of select="text()"/>
</xsl:template>
-->


</xsl:stylesheet>