Episode.xsl: 두 판 사이의 차이
편집 요약 없음 |
편집 요약 없음 |
||
| 64번째 줄: | 64번째 줄: | ||
</head> | </head> | ||
<body> | <body> | ||
<div class="card"> | <!--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> | <!==/div--> | ||
</body> | </body> | ||
</html> | </html> | ||
2026년 8월 27일 (목) 00:09 판
<?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>