Episode.xsl
<?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>