<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
 XSL do konwertowania listy kontaktow gaim do listy kontaktow gadu-gadu
 Copyright (C) 2003 Krzysztof Rzymkowski <rzymek@users.sourceforge.net>
                                                                                       
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; version 2 of the License
                                                                                       
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
                                                                                       
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-->

<!-- 
Zakladam ze format jest taki:
nazwisko;imie;nick;wyswietl;;grupa;uid;;0;;0;
Ja wypelniam tylko
*) nick, wyswietl (ta sama wartosc, tzn alias w gaim)
*) group
*) uid

W gaim jest tylko nick i uid.
Kontakty z innych protokolow sa ignorowana.
-->


<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" encoding="iso-8859-2" 
	omit-xml-declaration="yes" standalone="yes"/>

<xsl:template match="/gaim/blist/group">
<xsl:apply-templates select="contact/buddy">
<xsl:with-param name="group" select="@name"/>
</xsl:apply-templates>
</xsl:template>

<!-- 11 to chyba numer protokolu gg, oby sie kiedys nie zmnienil -->
<xsl:template match="//contact/buddy[@protocol='11']"><xsl:param name="group"/>;;<xsl:value-of select="alias"/>;<xsl:value-of select="alias"/>;;<xsl:value-of select="$group"/>;<xsl:value-of select="name"/>;;0;;0;
</xsl:template>

<xsl:template match="text()"></xsl:template>

</xsl:stylesheet>
