Previous | Next | Indexes
adultinternetusers > Tutorials > XSLT 2.0 Tutorial > Value-of (4/6) >

Alternative to select attribute for xsl:value-of

In XSLT 2.0 select is not mandatory on xsl:value-of element. If it is not given the xsl:value-of element must not be empty and its contents is used to calculate the output.

XSLT

      <xsl:stylesheet
                  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                  version="2.0">
            <xsl:output  method="xml"
                        indent="yes"
                        omit-xml-declaration="yes"/>

            <xsl:template  match="/aaa">
                  <xsl:value-of>
                        <ooo>1</ooo>
                        <xsl:value-of  select="2"/>
                        <zzz>3</zzz>
                  </xsl:value-of>
            </xsl:template>

      </xsl:stylesheet>
XML

      <aaa/>
Output
123


Previous chapter: Sequence Combinations
Next chapter: Modes
Previous page: Numbers and separators
Next page: Separators

Kevin Carr in Stanton

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


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