TwlToolsRED/build/tools/MasterEditor/MasterEditorTWLChecker/Debug/extract_sheet.xsl
nishikawa_takeshi 284c4ae675 マスタエディタの出力ファイルチェッカ:SRLと提出確認書が正しいかどうかをファイル名をもとに調べる。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlToolsRED@162 7061adef-622a-194b-ae81-725974e89856
2009-02-12 11:15:13 +00:00

56 lines
1.9 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet">
<xsl:template match="/">
<Sheet>
<xsl:apply-templates select="ss:Workbook/ss:Worksheet/ss:Table/ss:Row/ss:Cell" />
</Sheet>
</xsl:template>
<xsl:template match="*">
<xsl:apply-templates />
</xsl:template>
<!-- 特定のセルだけ抜き出して新たにタグづけする -->
<xsl:template match="ss:Cell">
<!-- NamedCellードの名前を変数に代入 -->
<xsl:variable name="tag">
<xsl:apply-templates select="ss:NamedCell" />
</xsl:variable>
<!-- NamedCellードの名前がRegionのときのみ出力 -->
<xsl:if test="$tag='Region'">
<Region><xsl:value-of select="ss:Data" /></Region>
</xsl:if>
<xsl:if test="$tag='RatingCERO'">
<RatingCERO><xsl:value-of select="ss:Data" /></RatingCERO>
</xsl:if>
<xsl:if test="$tag='RatingESRB'">
<RatingESRB><xsl:value-of select="ss:Data" /></RatingESRB>
</xsl:if>
<xsl:if test="$tag='RatingUSK'">
<RatingUSK><xsl:value-of select="ss:Data" /></RatingUSK>
</xsl:if>
<xsl:if test="$tag='RatingPEGI'">
<RatingPEGI><xsl:value-of select="ss:Data" /></RatingPEGI>
</xsl:if>
<xsl:if test="$tag='RatingPEGIPRT'">
<RatingPEGIPRT><xsl:value-of select="ss:Data" /></RatingPEGIPRT>
</xsl:if>
<xsl:if test="$tag='RatingPEGIBBFC'">
<RatingPEGIBBFC><xsl:value-of select="ss:Data" /></RatingPEGIBBFC>
</xsl:if>
<xsl:if test="$tag='RatingOFLC'">
<RatingOFLC><xsl:value-of select="ss:Data" /></RatingOFLC>
</xsl:if>
<xsl:if test="$tag='IsUnnecessaryRating'">
<IsUnnecessaryRating><xsl:value-of select="ss:Data" /></IsUnnecessaryRating>
</xsl:if>
</xsl:template>
<!-- NamedCellードの名前(属性で指定されている)を取得 -->
<xsl:template match="ss:NamedCell">
<xsl:value-of select="@ss:Name" />
</xsl:template>
</xsl:stylesheet>