Episode.xsl: 두 판 사이의 차이
편집 요약 없음 |
편집 요약 없음 |
||
| 37번째 줄: | 37번째 줄: | ||
.card { | .card { | ||
background: #ffffff; | background: #ffffff; | ||
max-width: | max-width: 90%; | ||
width: 100%; | width: 100%; | ||
/* | |||
border-radius: 12px; | border-radius: 12px; | ||
border: 1px solid #e2e8f0; | border: 1px solid #e2e8f0; | ||
padding: 30px; | padding: 30px; | ||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); | box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); | ||
*/ | |||
} | } | ||
h1 { | h1 { | ||
| 64번째 줄: | 66번째 줄: | ||
</head> | </head> | ||
<body> | <body> | ||
< | <div class="card"> | ||
<h1><xsl:value-of select="title"/></h1> | <h1><xsl:value-of select="title"/></h1> | ||
<p class="narrative"><xsl:value-of select="narrative"/></p> | <p class="narrative"><xsl:value-of select="narrative"/></p> | ||
< | </div> | ||
</body> | </body> | ||
</html> | </html> | ||
2026년 8월 27일 (목) 00:15 판
<?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="/episode">
<xsl:variable name="direction">
<xsl:choose>
<xsl:when test="@lang = 'Arabic'">rtl</xsl:when>
<xsl:otherwise>ltr</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="htmlLang">
<xsl:choose>
<xsl:when test="@lang = 'Arabic'">ar</xsl:when>
<xsl:otherwise>ko</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:value-of select="title"/>
</xsl:template>
</xsl:stylesheet>