English | >> Français << | Deutsch | Magyar | 中文 | Polski adultinternetusers > Tutorials > XSLT Tutorial
>> Page 49 << | Précédent | Suivant | Contenu | Index des éléments

La fonction starts-with() renvoie true si la première chaîne d'argument commence par la seconde chaîne d'argument, et false dans le cas contraire. La fonction contains() renvoie true si la première chaîne d'argument contient la seconde chaîne d'argument, et false dans le cas contraire.

Feuille de style XSLT 1

Source Surf
<source>

<text>Welcome to XSL world.</text>
<string>Welcome</string>
<string>XSL</string>
<string>XML</string>

</source>

Sortie
<TABLE border="1">
  <TR>
     <TH colspan="3">Welcome to XSL world.</TH>
  </TR>
  <TR>
     <TH>string</TH>
     <TH>starts-with</TH>
     <TH>contains</TH>
  </TR>
  <TR>
     <TD>Welcome</TD>
     <TD>true</TD>
     <TD>true</TD>
  </TR>
  <TR>
     <TD>XSL</TD>
     <TD>false</TD>
     <TD>true</TD>
  </TR>
  <TR>
     <TD>XML</TD>
     <TD>false</TD>
     <TD>false</TD>
  </TR>
</TABLE>

Vue HTML
Welcome to XSL world.
string starts-with contains
Welcome true true
XSL false true
XML false false
Feuille de style XSLT
<xsl:stylesheet version = '1.0'
     xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>

<xsl:template match="/">
     <TABLE border="1">
          <TR>
               <TH colspan="3">
                    <xsl:value-of select="//text"/>
               </TH>
          </TR>
          <TR>
               <TH>string</TH>
               <TH>starts-with</TH>
               <TH>contains</TH>
          </TR>
          <xsl:for-each select="//string">
               <TR>
                    <TD>
                         <xsl:value-of select="."/>
                    </TD>
                    <TD>
                         <xsl:value-of select="starts-with(//text,.)"/>
                    </TD>
                    <TD>
                         <xsl:value-of select="contains(//text,.)"/>
                    </TD>
               </TR>
          </xsl:for-each>
     </TABLE>
</xsl:template>


</xsl:stylesheet>


Kevin Carr in Stanton

Natural Skin Care and European Soaps
TickTalk 5
city of stanton
internetusers

Dave Shawver Stanton | City Of Stanton Election 2022 Voting Information | Warren Stanton Council and Gary Taylor Stanton | city of stanton |



Take a moment to visit obey clothing or see them on twitter at march madness tournament or view them on facebook at hawaiian luxury shoes.

Take a moment to visit Men's Clothing Product Reviews and free stock videos or see them on twitter at Men's Clothing Product Reviews and free stock videos or view them on facebook at Men's Clothing Product Reviews and free stock videos.

Don't forget to check out the following links. You'll be glad you did:

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