mirror of
https://github.com/rvtr/TwlToolsRED.git
synced 2025-10-31 06:41:18 -04:00
マスタエディタ:提出確認書から提出バージョンを抽出するXSLTを追加。
git-svn-id: file:///Users/lillianskinner/Downloads/platinum/twl/TwlToolsRED@42 7061adef-622a-194b-ae81-725974e89856
This commit is contained in:
parent
3962a8ec39
commit
4512c22a62
32
build/tools/MasterEditor/MasterEditorTWL/submitversion.xsl
Normal file
32
build/tools/MasterEditor/MasterEditorTWL/submitversion.xsl
Normal file
@ -0,0 +1,32 @@
|
||||
<?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:output method="text" encoding="UTF-8" />
|
||||
|
||||
<xsl:template match="/">
|
||||
<xsl:apply-templates select="ss:Workbook/ss:Worksheet/ss:Table/ss:Row/ss:Cell" />
|
||||
</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ノードの名前がSubmitVersionのときのみ出力 -->
|
||||
<xsl:if test="$tag='SubmitVersion'">
|
||||
<submit_version>
|
||||
<xsl:value-of select="ss:Data" />
|
||||
</submit_version>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!-- NamedCellノードの名前(属性で指定されている)を取得 -->
|
||||
<xsl:template match="ss:NamedCell">
|
||||
<xsl:value-of select="@ss:Name" />
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
Loading…
Reference in New Issue
Block a user