Text unit.xsl

Vaquita Wiki
Tutor (토론 | 기여)님의 2026년 8월 26일 (수) 16:17 판 (새 문서: <?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"> <html lang="ko"> <head> <meta charset="UTF-8" /> <title>Text Unit</title> </head> <body> <!-- 1. 한문 텍스트 섹션 --> <section id="hanmun-section"> <h2>한문 텍스트 (Hanmun Text)</h2>...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

<?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">
   
      
        
        Text Unit
      
      
        
        

한문 텍스트 (Hanmun Text)


어휘 풀이 (Glossary)


번역 (Translation)

</xsl:template>
 <xsl:template match="term">

<xsl:value-of select="lemma/hanmun" /> (<xsl:value-of select="lemma/korean" />) [<xsl:value-of select="@type" />]

  • 정의: <xsl:value-of select="sense/definition" />
  • <xsl:if test="sense/sense_note">
  • 비고: <xsl:value-of select="sense/sense_note" />
  • </xsl:if>
 </xsl:template>
   <xsl:template match="translation">
           
               [<xsl:value-of select="name()"/>]
           
               <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="annotation">
       
           【<xsl:apply-templates/>】
       
   </xsl:template>
   <xsl:template match="이두">
       
           <xsl:apply-templates/>
       
   </xsl:template>
   <xsl:template match="*">
       <xsl:apply-templates/>
   </xsl:template>


</xsl:stylesheet>