cheap nfl jerseys china cheap nfl jerseys free shipping wholesale nfl jerseys china wholesale jerseys from china cheap nfl jerseys free shipping cheap nfl jerseys for sale cheap jerseys free shipping wholesale nfl jerseys from china cheap nfl jerseys sale cheap nike nfl jerseys china wholesale jerseys free shipping cheap nfl jerseys wholesale wholesale nfl jerseys online cheap nfl jerseys wholesale china jerseys wholesale cheap coach handbags outlet authentic designer handbags cheap coach handbags outlet cheap coach purses outlet discount coach bags coach bags sale coach purse outlet cheap real coach purses coach handbags sale online coach purse outlet michael kors outlet online store cheap michael kors bags cheap michael kors purse michael kors factory outlet online cheap michael kors handbags cheap michael kors purses michael kors bags outlet online cheap michael kors purse michael kors handbags discount cheap michael kors purse michael kors handbags discount
cheap nfl jerseys china cheap nfl jerseys free shipping wholesale nfl jerseys china wholesale jerseys from china cheap nfl jerseys free shipping cheap nfl jerseys for sale cheap jerseys free shipping wholesale nfl jerseys from china cheap nfl jerseys sale cheap nike nfl jerseys china wholesale jerseys free shipping cheap nfl jerseys wholesale wholesale nfl jerseys online cheap nfl jerseys wholesale china jerseys wholesale cheap coach handbags outlet authentic designer handbags cheap coach handbags outlet cheap coach purses outlet discount coach bags coach bags sale coach purse outlet cheap real coach purses coach handbags sale online coach purse outlet michael kors outlet online store cheap michael kors bags cheap michael kors purse michael kors factory outlet online cheap michael kors handbags cheap michael kors purses michael kors bags outlet online cheap michael kors purse michael kors handbags discount cheap michael kors purse michael kors handbags discount
>> pag. 5 << | indietro | avanti | indice | indice analitico

5.

Abbiamo detto che un processore XSL scorre il sorgente e cerca il tag specificato nella regola template. Se lo trova, valuta le istruzioni contenute e scrive il risultato sull'output.

XSLT stylesheet 1

XML Source
<source>

<bold>Hello, world.</bold>
<red>I am </red>
<italic>fine.</italic>

</source>

Output
<p>
  <b>Hello, world.</b>
</p>

<p style="color:red">I am </p>

<p>
  <i>fine.</i>
</p>

HTML view

Hello, world.

I am

fine.

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

<xsl:template match="bold">
     <p>
          <b>
               <xsl:value-of select="."/>
          </b>
     </p>
</xsl:template>

<xsl:template match="red">
     <p style="color:red">
          <xsl:value-of select="."/>
     </p>
</xsl:template>

<xsl:template match="italic">
     <p>
          <i>
               <xsl:value-of select="."/>
          </i>
     </p>
</xsl:template>


</xsl:stylesheet>