Text.xsl: 두 판 사이의 차이
편집 요약 없음 |
편집 요약 없음 |
||
| (사용자 2명의 중간 판 3개는 보이지 않습니다) | |||
| 15번째 줄: | 15번째 줄: | ||
</xsl:template> | </xsl:template> | ||
<xsl:template match="title | <xsl:template match="title"> | ||
<span style="color: navy; font-size: 1. | <span style="color: navy; font-size: 1.5em; vertical-align: baseline; margin: 0 2px;"> | ||
§ <xsl:apply-templates/><br/> | |||
</span> | </span> | ||
</xsl:template> | </xsl:template> | ||
<xsl:template match="annotation"> | <xsl:template match="heading"> | ||
<span style="color: darkcyan; font-size: 1.25em; vertical-align: baseline; margin: 0 2px;"> | |||
<br/>○ <xsl:apply-templates/><br/> | |||
</span> | |||
</xsl:template> | |||
<!-- | |||
<xsl:template match="commentary|annotation"> | |||
<span style="color: olive; font-size: 0.75em; vertical-align: baseline; margin: 0 2px;"> | <span style="color: olive; font-size: 0.75em; vertical-align: baseline; margin: 0 2px;"> | ||
【<xsl:apply-templates/>】 | 【<xsl:apply-templates/>】 | ||
</span> | |||
</xsl:template> | |||
--> | |||
<xsl:template match="commentary|annotation"> | |||
<span style="color: olive; font-size: 0.75em; vertical-align: baseline; margin: 0 2px;"> | |||
<xsl:text>【</xsl:text> | |||
<xsl:choose> | |||
<xsl:when test="@commentator or @annotator"> | |||
<xsl:value-of select="@commentator | @annotator"/> | |||
<xsl:text>: </xsl:text> | |||
</xsl:when> | |||
</xsl:choose> | |||
<xsl:apply-templates/> | |||
<xsl:text>】</xsl:text> | |||
</span> | </span> | ||
</xsl:template> | </xsl:template> | ||
<xsl:template match="note"> | <xsl:template match="note|이두"> | ||
<span style="color: orange; font-size: 0.75em; vertical-align: baseline; margin: 0 2px;"> | <span style="color: orange; font-size: 0.75em; vertical-align: baseline; margin: 0 2px;"> | ||
〔<xsl:apply-templates/>] | 〔<xsl:apply-templates/>] | ||
2026년 6월 25일 (목) 22:57 기준 최신판
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<xsl:apply-templates select="//hanmun_text | //translation"/>
</xsl:template>
<xsl:template match="hanmun_text | translation">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="title">
§ <xsl:apply-templates/>
</xsl:template>
<xsl:template match="heading">
○ <xsl:apply-templates/>
</xsl:template>
<xsl:template match="commentary|annotation">
<xsl:text>【</xsl:text>
<xsl:choose>
<xsl:when test="@commentator or @annotator">
<xsl:value-of select="@commentator | @annotator"/>
<xsl:text>: </xsl:text>
</xsl:when>
</xsl:choose>
<xsl:apply-templates/>
<xsl:text>】</xsl:text>
</xsl:template>
<xsl:template match="note|이두">
〔<xsl:apply-templates/>]
</xsl:template>
<xsl:template match="*">
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>