Text unit sample.xsl: 두 판 사이의 차이
편집 요약 없음 |
편집 요약 없음 |
||
| 7번째 줄: | 7번째 줄: | ||
<head> | <head> | ||
<meta charset="UTF-8"/> | <meta charset="UTF-8"/> | ||
<title> | <title>CCTI Text Unit Stylesheet</title> | ||
<style> | <style> | ||
table { border-collapse: collapse; width: 96%; margin-left:10px; margin-right-10px; margin-bottom: 2em; table-layout: fixed; } | table { border-collapse: collapse; width: 96%; margin-left:10px; margin-right-10px; margin-bottom: 2em; table-layout: fixed; } | ||
| 22번째 줄: | 22번째 줄: | ||
<xsl:template match="hanmun_text | translation"> | <xsl:template match="hanmun_text | translation"> | ||
<xsl:apply-templates/> | <xsl:apply-templates/> | ||
</xsl:template> | </xsl:template> | ||
<xsl:template match="glossary"> | <xsl:template match="glossary"> | ||
<table> | <table> | ||
<thead> | <thead> | ||
| 41번째 줄: | 38번째 줄: | ||
</thead> | </thead> | ||
<tbody> | <tbody> | ||
<xsl:apply-templates select=" | <xsl:apply-templates select="term"/> | ||
</tbody> | </tbody> | ||
</table> | </table> | ||
</xsl:template> | </xsl:template> | ||
2026년 4월 27일 (월) 00:59 판
<?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" indent="yes" encoding="utf-8"/>
<xsl:template match="/">
CCTI Text Unit Stylesheet
</xsl:template>
<xsl:template match="hanmun_text | translation">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="glossary"><thead> </thead> <tbody> <xsl:apply-templates select="term"/> </tbody>
| 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>