"사극2.xsl"의 두 판 사이의 차이
(새 문서: <?xml version="1.0" encoding="utf-8"?> <!-- XSL for artwork 1.0 written by DHaein(https://github.com/Esantomi) 2022. 11 --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.or...) |
(차이 없음)
|
2022년 12월 1일 (목) 00:07 기준 최신판
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<xsl:template match="콘텐츠">
사극 콘텐츠
<xsl:value-of select="타이틀"/>
<xsl:apply-templates select="메타데이터"/> |
<img width="200" src="{멀티미디어/사진/@url}"/> |
<xsl:apply-templates select="내용"/>
<xsl:apply-templates select="멀티미디어"/> </xsl:template>
<xsl:template match="메타데이터">
- 유형: <xsl:value-of select="유형"/>
- 상영: <xsl:value-of select="상영"/>
- 방영: <xsl:value-of select="방영"/>
- 배급사: <xsl:value-of select="배급사"/>
- 방송사: <xsl:value-of select="방송사"/>
- 제작자:
- <xsl:value-of select="."/>(<xsl:value-of select="@역할"/>)
- 출연자:
- <xsl:value-of select="."/>(<xsl:value-of select="@캐릭터"/> 役)
- 관련정보: <a> <xsl:attribute name="href"> <xsl:value-of select="//@url"/> </xsl:attribute> <xsl:attribute name="target">_blank</xsl:attribute> <xsl:value-of select="./홈페이지"/> </a>
<xsl:for-each select="제작자/인명">
</xsl:for-each>
<xsl:for-each select="출연자/인명">
</xsl:for-each>
</xsl:template>
<xsl:template match="내용">
⊙ 내용
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="멀티미디어">
⊙ 멀티미디어
<xsl:for-each select="사진"> <img width="150"> <xsl:attribute name="src"> <xsl:value-of select="@url"/> </xsl:attribute> </img> <xsl:value-of select="."/> </xsl:for-each> </xsl:template>
<xsl:template match="인명|인물"> <xsl:choose> <xsl:when test="@id"> <a> <xsl:attribute name="href">http://encykorea.aks.ac.kr/Contents/Item/<xsl:value-of select="@id"/></xsl:attribute> <xsl:attribute name="target">_blank</xsl:attribute> <xsl:value-of select="."/> </a> </xsl:when> <xsl:otherwise> <xsl:value-of select="."/> </xsl:otherwise> </xsl:choose> </xsl:template>
<xsl:template match="text()"> <xsl:value-of select="."/> </xsl:template>
</xsl:stylesheet>