Advertisement
cd62131

food.xsl

May 18th, 2018
342
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.61 KB | None | 0 0
  1. <xsl:stylesheet
  2.  version="2.0"
  3.  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  4.   <xsl:output method="xml" encoding="utf-8"/>
  5.   <xsl:template match="node()|@*">
  6.     <xsl:copy>
  7.       <xsl:apply-templates select="node()|@*"/>
  8.     </xsl:copy>
  9.   </xsl:template>
  10.   <xsl:template match="type[@name='りんご']//en/text()[.='50']">200</xsl:template>
  11.   <xsl:template match="type[@name='バナナ']//en/text()[.='100']">200</xsl:template>
  12.   <xsl:template match="type[@name='鳥']//en/text()[.='200']">300</xsl:template>
  13.   <xsl:template match="type[@name='豚']//en/text()[.='200']">100</xsl:template>
  14. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement