Text unit sample.xsl: 두 판 사이의 차이
편집 요약 없음 |
편집 요약 없음 |
||
| 16번째 줄: | 16번째 줄: | ||
<xsl:template match="hanmun_text | translation"> | <xsl:template match="hanmun_text | translation"> | ||
<div style="margin-top: 20px; padding: 15px; background-color: #f9f9f9; border-left: 5px solid #ccc;"> | <!-- <div style="margin-top: 20px; padding: 15px; background-color: #f9f9f9; border-left: 5px solid #ccc;"> --> | ||
<strong style="display:block; margin-bottom: 10px; color: #555;"> | <strong style="display:block; margin-bottom: 10px; color: #555;"> | ||
[<xsl:value-of select="name()"/>] | [<xsl:value-of select="name()"/>] | ||
| 23번째 줄: | 23번째 줄: | ||
<xsl:apply-templates/> | <xsl:apply-templates/> | ||
<!-- </div> --> | <!-- </div> --> | ||
</div> | <!-- </div> --> | ||
</xsl:template> | </xsl:template> | ||
| 64번째 줄: | 64번째 줄: | ||
<xsl:template match="heading"> | <xsl:template match="heading"> | ||
<span style="color: darkcyan; font-size: 1.25em; font-weight: normal;"> | <span style="color: darkcyan; font-size: 1.25em; font-weight: normal;"> | ||
○ <xsl:apply-templates/><br/> | |||
</span> | </span> | ||
</xsl:template> | </xsl:template> | ||
2026년 4월 27일 (월) 02:10 판
<?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="/text_unit">
ID: <xsl:value-of select="@id"/>
<xsl:apply-templates select="hanmun_text"/>
<xsl:apply-templates select="glossary"/>
<xsl:apply-templates select="translation"/>
</xsl:template>
<xsl:template match="hanmun_text | translation">
[<xsl:value-of select="name()"/>]
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="glossary">
[Glossary]<thead> </thead> <tbody> <xsl:for-each select="term"> </xsl:for-each> </tbody>
| type | hanmun | korean | scope | definition | sense_note |
|---|---|---|---|---|---|
| <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="이두">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="*">
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>