C언어 af
<?xml version="1.0" encoding="euc-kr"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<html>
<head><title>XSL 연습 </title></head>
<body>
<center>
<h1> 주 소 록 </h1>
<hr/>
<table border="1">
<tr>
<th rowspan="2"> 번호 </th>
<th rowspan="2"> 이름 </th>
<th rowspan="2"> 생년월일 </th>
<th colspan="2"> 연락처 </th>
<th rowspan="2"> 월저축액 </th>
</tr>
<tr>
<th> 전화번호</th>
<th> 주소</th>
</tr>
<xsl:apply-templates select="주소록/회원"/>
</table>
</center>
</body>
</html>
</xsl:template>
<xsl:template match="회원">
<tr>
<td align="center"><xsl:value-of select="position()"/></td>
<td><xsl:value-of select="이름"/></td>
<td><xsl:value-of select="생일/년"/>.
<xsl:value-of select="생일/월"/>.
<xsl:value-of select="생일/일"/>.</td>
<td><xsl:value-of select="연락처/전화"/></td>
<td><xsl:value-of select="연락처/주소1"/>
<xsl:value-of select="연락처/주소2"/></td>
<td><xsl:value-of select="월저축액"/>/</td>
</tr>
</xsl:template>
</xsl:stylesheet>