문화유산:장소목록.xsl: 두 판 사이의 차이

Classics Wiki
편집 요약 없음
편집 요약 없음
 
(다른 사용자 한 명의 중간 판 5개는 보이지 않습니다)
1번째 줄: 1번째 줄:
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     <xsl:template match="/">
     <xsl:template match="/">
         <html>
         <html>
         <head>
         <head>
            <title>문화유산:장소목록</title>
             <style>
             <style>
                 .place-table { width: 100%; border-collapse: collapse; font-family: "Malgun Gothic", serif; }
                 .place-table { width: 100%; border-collapse: collapse; font-family: "Malgun Gothic", serif; }
                 .place-table td { border: 1px solid #aaa; padding: 15px; text-align: left; }
                 .place-table td { border: 1px solid #aaa; padding: 15px; text-align: left; }
                 .place-table th { border: 1px solid #aaa; padding: 15px; background-color: #e8f0f7; color: #2c3e50; text-align: center; }
                 .place-table th { border: 1px solid #aaa; padding: 15px; background-color: #e8f0f7; color: #2c3e50; text-align: center; }
                .name-cell { font-weight: bold; font-size: 1.1em; color: #0054d3; }
                .description { margin: 0; padding-left: 20px; color: #2980b9; }
             </style>
             </style>
         </head>
         </head>
16번째 줄: 15번째 줄:
                 <tr>
                 <tr>
                     <th width="10%">명칭</th>
                     <th width="10%">명칭</th>
                     <th width="10%">위치</th>
                     <th width="10%">주소</th>
                     <th width="10%">건립</th>
                     <th width="10%">건립</th>
                     <th width="70%">설명</th>
                     <th width="70%">설명</th>
22번째 줄: 21번째 줄:
                 <xsl:for-each select="/place_list/place">
                 <xsl:for-each select="/place_list/place">
<tr>
<tr>
<!--명칭-->
<td> <!--명칭-->
<td>
<xsl:value-of select="name/korean"/><br/>
<xsl:value-of select="name/korean"/>
<xsl:value-of select="name/hanja"/><br/>
<xsl:value-of select="name/hanja"/>
<xsl:value-of select="name/english"/><br/>
<xsl:value-of select="name/english"/>
                            <xsl:if test="alias">
                                <br/><br/>
                                <span style="color:#666;">별칭:</span><br/>
                                <xsl:value-of select="alias/korean"/><br/>
                                <xsl:value-of select="alias/hanja"/><br/>
                                <xsl:value-of select="alias/english"/>
                            </xsl:if>
</td>
</td>
<!--위치-->
<td>
<td> <!--주소-->
<xsl:value-of select="address"/>
<xsl:value-of select="address"/>
<xsl:value-of select="coordinates/latitude"/>
    <!--
<xsl:value-of select="coordinates/longitude"/>
<xsl:value-of select="coordinates/latitude"/><br/>
<xsl:value-of select="coordinates/altitude"/>
<xsl:value-of select="coordinates/longitude"/><br/>
<xsl:value-of select="coordinates/altitude"/><br/>
    -->
</td>
</td>
<!--건립-->
<td>
<td> <!--건립-->
<xsl:value-of select="established/year"/>
<xsl:value-of select="established/year"/><br/>
<xsl:value-of select="established/reign_year"/>
<xsl:value-of select="established/reign_year"/><br/>
</td>
</td>
<!--해설-->
<td>
<td> <!--해설-->
<xsl:for-each select="description/p">
<xsl:for-each select="description/p">
<xsl:value-of select="."/>
<xsl:value-of select="."/>
54번째 줄: 61번째 줄:
         </html>
         </html>
     </xsl:template>
     </xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>


==오류 검사==
==오류 검사==

2026년 4월 6일 (월) 01:24 기준 최신판

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:template match="/">
       
        
            문화유산:장소목록
            
        
        
            
					
명칭 주소 건립 설명





별칭:




</xsl:template> </xsl:stylesheet>

오류 검사

🔍 XML 유효성 검사기: 문화유산:장소목록.xsl