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

函数 string() 将其输入参数转换为字符串。这个函数并不经常在样式表中直接使用,因为通常他会被默认调用。 XSLT stylesheet 1 演示了数字转化为字符串的例子。注意零除的结果。

XSLT stylesheet 1




<P>9/0 = Infinity</P>
<P>-9/0 = -Infinity</P>
<P>0/0 = NaN</P>




9/0 = Infinity

-9/0 = -Infinity

0/0 = NaN

XSLT stylesheet
<xsl:stylesheet version = '1.0'

<xsl:variable name="A" select="number(//number[1])"/>
<xsl:variable name="B" select="number(//number[2])"/>
<xsl:variable name="C" select="number(//number[3])"/>
<xsl:variable name="D" select="number(//number[4])"/>
<xsl:template match="/">
          <xsl:value-of select="string(number($A))"/>
          <xsl:value-of select="string(number($D))"/>
          <xsl:value-of select="$A"/>
          <xsl:value-of select="$B"/>
          <xsl:text> = </xsl:text>
          <xsl:value-of select="string($A div $B)"/>
          <xsl:value-of select="$C"/>
          <xsl:value-of select="$B"/>
          <xsl:text> = </xsl:text>
          <xsl:value-of select="string($C div $B)"/>
          <xsl:value-of select="$B"/>
          <xsl:value-of select="$B"/>
          <xsl:text> = </xsl:text>
          <xsl:value-of select="$B div $B"/>


Kevin Carr in Stanton

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

City Of Stanton | City Of Stanton | Warren Stanton Council and Gary Taylor Stanton | City Of 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