code 10.2.2.xsl

来自「开发web_xml」· XSL 代码 · 共 42 行

XSL
42
字号
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"
xmlns:fo="http://www.w3.org/TR/WD-xsl/FO" result-ns="fo" indent-result="yes">
   	<xsl:template match = "/">
     		<HTML>
     		<BODY>
        	<xsl:process-children/>
     		</BODY>
     		</HTML>
   		</xsl:template>
   		<xsl:template match="author">
         	<H1>
         	<xsl:process-children/>'s fabulous
        	 </H1>
   		</xsl:template>
   		<xsl:template match = "recipe_name">
      		<H2>
      		<xsl:process-children/>
      		</H2>
   	</xsl:template>
   	<xsl:template match = "meal">
      <TABLE><TR><TD><H3>EAT FOR:</H3></TD>
      <TD><H3><xsl:process-children/></H3></TD>
      </TR></TABLE>
   </xsl:template>
   <xsl:template match = "directions">
      <H4>DIRECTIONS</H4>
      <P>
      <xsl:process-children/>
      </P>
   </xsl:template>
   <xsl:template match = "ingredients">
       <B>INGREDIENTS</B><BR></BR>
       <xsl:process-children/>
   </xsl:template>
   	<xsl:template match = "item">
       	<BR>
      	<xsl:process-children/>
     	 </BR>
   	</xsl:template>
</xsl:stylesheet>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?