Text unit sample.xsl: 두 판 사이의 차이
새 문서: <?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="/"> <div class="text-container" style="line-height: 1.8; font-size: 1.1em;"> <xsl:apply-templates select="//hanmun_text | //translation/ | //glossary"> </div> </xsl:template> <xsl:template match="hanmun_text | translation"> <div cl... |
편집 요약 없음 |
||
| 5번째 줄: | 5번째 줄: | ||
<xsl:template match="/"> | <xsl:template match="/"> | ||
<div class="text-container" style="line-height: 1.8; font-size: 1.1em;"> | <div class="text-container" style="line-height: 1.8; font-size: 1.1em;"> | ||
<xsl:apply-templates select="//hanmun_text | //translation/ | //glossary"> | <xsl:apply-templates select="//hanmun_text | //translation/ | //glossary" /> | ||
</div> | </div> | ||
</xsl:template> | </xsl:template> | ||
2026년 4월 27일 (월) 00:50 판
<?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/ | //glossary" />
</xsl:template>
<xsl:template match="hanmun_text | translation">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="glossary">
| type | hanmun | korean | scope | definition | sense_note |
|---|
</xsl:template>
<xsl:template match="term">
<xsl:value-of select="@type"/>
<xsl:value-of select="lemma/hanmun"/>
<xsl:value-of select="lemma/korean"/>
<xsl:value-of select="sense/@scope"/>
<xsl:value-of select="sense/definition"/>
<xsl:value-of select="sense/sense_note"/>
</xsl:template>
<xsl:template match="title">
§ <xsl:apply-templates/>
</xsl:template>
<xsl:template match="heading">
○ <xsl:apply-templates/>
</xsl:template>
<xsl:template match="annotation">
【<xsl:apply-templates/>】
</xsl:template>
<xsl:template match="note|이두">
〔<xsl:apply-templates/>]
</xsl:template>
<xsl:template match="*">
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>