English | Français | Deutsch | Magyar | >> 中文 << | Polski adultinternetusers > Tutorials > XSLT Tutorial
>> 页 45 << | 上一条 | 下一条 | 目录 | 元素索引

当你需要再程序中做条件判断的时候,函数 true() 和 false() 就有用了。

XSLT stylesheet 1

XML源码
<source>

<number>0</number>
<number>1</number>

</source>

输出
<P>true not false</P>

<P>true not false</P>

用HTML察看

true not false

true not false

XSLT stylesheet
<xsl:stylesheet version = '1.0'
     xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>

<xsl:template match="number">
     <P>
          <xsl:if test="true()">
               <xsl:text>true </xsl:text>
          </xsl:if>
          <xsl:if test="not(false())">
               <xsl:text>not false</xsl:text>
          </xsl:if>
     </P>
</xsl:template>


</xsl:stylesheet>


Kevin Carr in Stanton

Natural Skin Care and European Soaps
Kevin Carr
Mayor Dave Shawver Stanton
Internetusers

Dave Shawver Stanton | City Of Stanton Election 2019 Voting Information | Warren Stanton Council and Gary Taylor Stanton | Mayor Dave Shawver Stanton |



Take a moment to visit men's western boots or see them on twitter at cowboy boots mens or view them on facebook at hawaiian luxury shoes.

Take a moment to visit cowboy boots and free stock videos or see them on twitter at cowboy boots and free stock videos or view them on facebook at cowboy boots and free stock videos.

You can also get Organic Skin Care products from Bliss Bath Body and you must check out their Natural Body Lotions and bath soaps

Now if you are looking for the best deals on surf clothing from Quiksilver and Roxy then you have to check these amazing deals here:

Hey, check out this Organic Skin Care European Soaps along with Natural Lavender Body Lotion and shea butter

and we can get surf t shirts surfing shirt and And you must check out this website swim suit swimming suit and swim trunks