Text unit sample.xsl: 두 판 사이의 차이

Classics Wiki
편집 요약 없음
편집 요약 없음
1번째 줄: 1번째 줄:
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     <xsl:output method="html" encoding="UTF-8" indent="yes"/>
     <xsl:output method="html" indent="yes" encoding="utf-8"/>


     <xsl:template match="/text_unit">
     <xsl:template match="/">
         <div class="text-container" style="line-height: 1.8; font-size: 1.1em;">
         <html lang="ko">
             <xsl:apply-templates />
            <head>
         </div>
                <meta charset="UTF-8"/>
                <title>용어사전 스타일 쉬트</title>
                <style>
                    table { border-collapse: collapse; width: 96%; margin-left:10px; margin-right-10px; margin-bottom: 2em; table-layout: fixed; }
                    th, td { border: 1px solid #ccc; padding: 8px; text-align: left; }
                    th { background-color: #f2f2f2; }
                    .section { margin-bottom: 30px; }
                </style>
            </head>
             <body>
                <xsl:template match="/text_unit">
            </body>
         </html>
     </xsl:template>
     </xsl:template>



2026년 4월 27일 (월) 00:55 판

<?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="/">
       
            
                
                용어사전 스타일 쉬트
                
            
            
                
            
        
   </xsl:template>
   <xsl:template match="hanmun_text | translation">
           <xsl:apply-templates/>
   </xsl:template>
   <xsl:template match="glossary">
<thead> </thead> <tbody> <xsl:apply-templates select="glossary/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>