Skip to content

Instantly share code, notes, and snippets.

@zeero
Created April 11, 2013 12:22
Show Gist options
  • Save zeero/5362949 to your computer and use it in GitHub Desktop.
Save zeero/5362949 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="Shift_JIS"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!--出力方法の指定-->
<xsl:output method="text" encoding="Shift_JIS"/>
<xsl:strip-space elements="*"/>
<xsl:template match="/">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="/UpgradeLog/Issue">
<xsl:value-of select="/UpgradeLog/Settings/Setting[@Name='ProjectName']/@Value"/>,,,,<xsl:value-of select="@Type"/>,<xsl:value-of select="@Number"/>,<xsl:value-of select="text()"/>
<xsl:text>
</xsl:text>
</xsl:template>
<xsl:template match="/UpgradeLog/File/Issue">
<xsl:value-of select="/UpgradeLog/Settings/Setting[@Name='ProjectName']/@Value"/>,<xsl:value-of select="../@OldPath"/>,<xsl:value-of select="../@NewPath"/>,,<xsl:value-of select="@Type"/>,<xsl:value-of select="@Number"/>,<xsl:value-of select="text()"/>
<xsl:text>
</xsl:text>
</xsl:template>
<xsl:template match="/UpgradeLog/File/Section/Issue">
<xsl:value-of select="/UpgradeLog/Settings/Setting[@Name='ProjectName']/@Value"/>,<xsl:value-of select="../../@OldPath"/>,<xsl:value-of select="../../@NewPath"/>,<xsl:value-of select="../@Name"/>,<xsl:value-of select="@Type"/>,<xsl:value-of select="@Number"/>,<xsl:value-of select="text()"/>
<xsl:text>
</xsl:text>
</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment