The Open Source Swiss Army Knife

/xml/
/xml/ + sub-categories
http://www.sirfsup.com/
web directory content
    
      

Not logged in
Chat Register Login
return to:  http:/www.sirfsup.com      /xml 
Permalink: value.htm
Title: add
article options : please login   |  print view

Examples

This example creates an paragraph around a car element with a color child element. The paragraph will contain the value of the color child element in the output:
<xsl:template match="car">
  <p>
    <xsl:value-of select="color"/>
  </p>
</xsl:template>

This example writes the string value of the current node to the output:
<xsl:value-of select="."/>

This example writes 10 to the output:
<xsl:value-of select="5+5"/>

This example writes the string value of the first child <book> element of the current node to the output:
<xsl:value-of select="book"/>

This example writes the value of the variable book to the output:
<xsl:value-of select="{$book}"/>

Leave a Reply
Your Name:     anonymous
Your Email:
Website:  
Comments:

The author will be notified of your reply.
return to top