연습:서화작품.xsl: 두 판 사이의 차이

Vaquita Wiki
편집 요약 없음
편집 요약 없음
 
(같은 사용자의 중간 판 7개는 보이지 않습니다)
5번째 줄: 5번째 줄:
         <head>
         <head>
             <style>
             <style>
                 .work-table { width: 100%; border-collapse: collapse; font-family: "Malgun Gothic", serif; }
                 .work-table { width: 100%; border-collapse: collapse; font-family: "Malgun Gothic", serif; font-size:14; }
                 .work-table td { border: 1px solid #aaa; padding: 15px; text-align: left; }
                 .work-table td { border: 1px solid #aaa; padding: 15px; text-align: left; }
                 .work-table th { border: 1px solid #aaa; padding: 15px; background-color: #e8f0f7; color: #2c3e50; text-align: center; }
                 .work-table th { border: 1px solid #aaa; padding: 15px; background-color: #e8f0f7; color: #2c3e50; text-align: center; }
                 .art-image { width: 80px; height: 40px; object-fit: contain; background-color: #f9f9f9; }
                 .art-image { width: 100px; height: 100px; object-fit: contain; background-color: #f9f9f9; }
             </style>
             </style>
         </head>
         </head>
14번째 줄: 14번째 줄:
             <table class="work-table">
             <table class="work-table">
                 <tr>
                 <tr>
                     <th width="20%">작품 이미지</th>
                     <th width="15%">작품 이미지</th>
                     <th width="20%">작품명</th>
                     <th width="20%">작품명</th>
                     <th width="15%">작가</th>
                     <th width="15%">작가</th>
                     <th width="30%">설명</th>
                     <th width="35%">설명</th>
                     <th width="15%">소장처</th>
                     <th width="15%">소장처</th>
                 </tr>
                 </tr>
                 <xsl:for-each select="person_list/person">
                 <xsl:for-each select="work_list/work">
                     <tr>
                     <tr>
                         <td><img class="art-image" src="{iconUrl}" alt="{title}"/></td>
                         <td><a href="{iconUrl}"><img class="art-image" src="{iconUrl}" alt="{title}"/></a></td>
                         <td><xsl:value-of select="title"/></td>
                         <td><xsl:value-of select="title"/></td>
                         <td><xsl:value-of select="creator"/></td>
                         <td><xsl:value-of select="creator"/></td>
34번째 줄: 34번째 줄:
     </xsl:template>
     </xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>
==Style 적용 예시==
==오류 검사==
{{ ValidateXml | xml=연습:서화작품.xsl }}
[[분류:Xml]] [[분류:김현]]

2026년 3월 1일 (일) 23:34 기준 최신판

<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

   <xsl:template match="/">
       
        
            
        
        
            
                    
작품 이미지 작품명 작가 설명 소장처
{title}
</xsl:template>

</xsl:stylesheet>

Style 적용 예시[편집]

오류 검사[편집]

🔍 XML 유효성 검사기: 연습:서화작품.xsl