연습:서화작품.xsl: 두 판 사이의 차이
편집 요약 없음 |
편집 요약 없음 |
||
| 5번째 줄: | 5번째 줄: | ||
<head> | <head> | ||
<style> | <style> | ||
. | .work-table { width: 100%; border-collapse: collapse; font-family: "Malgun Gothic", serif; } | ||
. | .work-table th, .work-table td { border: 1px solid #aaa; padding: 15px; text-align: left; } | ||
. | .work-table th { background-color: #e8f0f7; color: #2c3e50; } | ||
.art-image { width: 80px; height: 40px; object-fit: contain; background-color: #f9f9f9; } | |||
.art- | |||
</style> | </style> | ||
</head> | </head> | ||
<body> | <body> | ||
< | <table class="work-table"> | ||
<xsl:for-each select=" | <tr> | ||
< | <th width="20%">작품 이미지</th> | ||
<img class="art-image" src="{iconUrl}" alt="{title}"/> | <th width="20%">작품명</th> | ||
<th width="15%">작가</th> | |||
<th width="30%">설명</th> | |||
<th width="15%">소장처</th> | |||
</tr> | |||
<xsl:for-each select="person_list/person"> | |||
<tr> | |||
</ | <td><img class="art-image" src="{iconUrl}" alt="{title}"/></td> | ||
<td><xsl:value-of select="title"/></td> | |||
<td><xsl:value-of select="creator"/></td> | |||
<td><xsl:value-of select="description"/></td> | |||
<td><xsl:value-of select="location"/></td> | |||
</tr> | |||
</xsl:for-each> | </xsl:for-each> | ||
</ | </table> | ||
</body> | </body> | ||
</html> | </html> | ||
</xsl:template> | </xsl:template> | ||
</xsl:stylesheet> | </xsl:stylesheet> | ||
2026년 2월 26일 (목) 23:06 판
<?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:stylesheet>