연습:인명록.xsl: 두 판 사이의 차이
새 문서: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <head> <style> .scholars-table { width: 100%; border-collapse: collapse; font-family: "Malgun Gothic", serif; } .scholars-table th, .scholars-table td { border: 1px solid #aaa; padding: 15px; text-align: left; } .scholars-table th { background-color: #... |
편집 요약 없음 |
||
| 5번째 줄: | 5번째 줄: | ||
<head> | <head> | ||
<style> | <style> | ||
. | .person-table { width: 100%; border-collapse: collapse; font-family: "Malgun Gothic", serif; } | ||
. | .person-table th, .person-table td { border: 1px solid #aaa; padding: 15px; text-align: left; } | ||
. | .person-table th { background-color: #e8f0f7; color: #2c3e50; } | ||
.name-cell { font-weight: bold; font-size: 1.1em; color: #d35400; } | .name-cell { font-weight: bold; font-size: 1.1em; color: #d35400; } | ||
.honorific-tag { display: inline-block; background: #eee; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; margin-bottom: 5px; } | .honorific-tag { display: inline-block; background: #eee; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; margin-bottom: 5px; } | ||
| 14번째 줄: | 14번째 줄: | ||
</head> | </head> | ||
<body> | <body> | ||
<table class="person-table"> | |||
<table class=" | |||
<tr> | <tr> | ||
<th width="15%">이름 / 호</th> | <th width="15%">이름 / 호</th> | ||
<th width="15%">생몰년</th> | <th width="15%">생몰년</th> | ||
<th width="40%">설명</th> | <th width="40%">설명</th> | ||
<th width="30%">주요 저작</th> | <th width="30%">주요 저작/작품</th> | ||
</tr> | </tr> | ||
<xsl:for-each select=" | <xsl:for-each select="person_list/person"> | ||
<tr> | <tr> | ||
<td class="name-cell"> | <td class="name-cell"> | ||
2026년 2월 25일 (수) 16:43 판
<?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>