목록으로 2012.11.23. 14:15
C언어

af

youtube

<?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>
 
 
   

 

댓글 0

댓글 작성 권한이 없습니다. 로그인하기

NO
TITLE
섬네일
profile 너에게제공 | 09. 10 | 조회
82
C언어
profile 너에게제공 | 03. 14 | 조회
77
C언어 ㄴㅇ