English | Français | Deutsch | >> Magyar << | 中文 | Polski adultinternetusers > Tutorials > XSLT Tutorial
>> Oldal 63 << | Előző | Következő | Tartalom | Elem index

A copy és a copy-of instrukciók az elemek másolására szolgálnak. A copy elem csak az aktuális elemet másolja, annak gyerekei és attribútumai nélkül, míg a copy-of mindent másol.

XSLT stíluslap 1

XML forrás
<source>

<p id="a12"> Compare
     <B>these constructs</B>.
</p>

</source>

Kimenet
<DIV>
  <B>copy-of : </B>
  <p id="a12">
Compare <B>these constructs</B>.
</p>
</DIV>
<DIV>
  <B>copy : </B>
  <p/>
</DIV>
<DIV>
  <B>value-of : </B>
Compare these constructs.
</DIV>

HTML nézet
copy-of :

Compare these constructs.

copy :

value-of : Compare these constructs.
XSLT stíluslap
<xsl:stylesheet version = '1.0'
     xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>

<xsl:template match="p">
     <DIV>
          <B>
               <xsl:text>copy-of : </xsl:text>
          </B>
          <xsl:copy-of select="."/>
     </DIV>
     <DIV>
          <B>
               <xsl:text>copy : </xsl:text>
          </B>
          <xsl:copy/>
     </DIV>
     <DIV>
          <B>
               <xsl:text>value-of : </xsl:text>
          </B>
          <xsl:value-of select="."/>
     </DIV>
</xsl:template>


</xsl:stylesheet>


Kevin Carr in Stanton

Natural Skin Care and European Soaps
Kevin Carr
City of Stanton
Internetusers

City Of Stanton | City Of Stanton | Warren Stanton Council and Gary Taylor Stanton | City Of Stanton |



Take a moment to visit 350 chevy engine or see them on twitter at High Performance Water Pump or view them on facebook at hawaiian luxury shoes.

Take a moment to visit True Religion Bobby Jeans or see them on twitter at True Religion Bobby Jeans or view them on facebook at True Religion Bobby Jeans.

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