[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

[2.7.11] - Computing Generated Text

Subject: [2.7.11] - Computing Generated Text
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxx>
Date: Wed, 09 Sep 1998 20:26:39 -0400
2.7.11
In 2.7.11.2, is there a difference between the given example:

<xsl:template match="person">
  <P>
   <xsl:value-of expr="first-name"/>
   <xsl:text> </xsl:text>
   <xsl:value-of expr="surname"/>
  </P>
</xsl:template>

and the following:

<xsl:template match="person">
  <P>
   <xsl:for-each select="first-name">
     <xsl:process-children/>
   </xsl:for-each>
   <xsl:text> </xsl:text>
   <xsl:for-each select="surname">
     <xsl:process-children/>
   </xsl:for-each>
  </P>
</xsl:template>

and the following:

<xsl:template match="person">
  <P>
   <xsl:process select="first-name"/>
   <xsl:text> </xsl:text>
   <xsl:process select="surname"/>
  </P>
</xsl:template>

<xsl:template match="first-name">
  <xsl:process-children/>
</xsl:template>

<xsl:template match="surname">
  <xsl:process-children/>
</xsl:template>

?  If not, are any deprecated in preference of others?

............ Ken

--
G. Ken Holman               mailto:gkholman@xxxxxxxxxxxxxx
Crane Softwrights Ltd.  http://www.CraneSoftwrights.com/s/
Box 266,                                V: +1(613)489-0999
Kars, Ontario CANADA K0A-2E0            F: +1(613)489-0995
Training:   http://www.CraneSoftwrights.com/s/schedule.htm
Resources: http://www.CraneSoftwrights.com/s/resources.htm
Shareware: http://www.CraneSoftwrights.com/s/shareware.htm


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.