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

Re: using few or many templates?

Subject: Re: using few or many templates?
From: Larry Garfield <lgarfiel@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 17 Mar 2001 02:16:30 -0600
garfield template
One addendum.  I personally tend to use <xsl:apply-templates /> rather than
<xsl:value-of select="." />.  That way, it also catches any tags under the
current node, if there are any, and simply copies the text just as value-of
does.  Either one works equally well in this case, it's just a stylistic
difference.


Evan Lenz wrote:

>   <xsl:template match="A">
>     <table>
>       <xsl:apply-templates/>
>     </table>
>   </xsl:template>
>
>   <xsl:template match="B | C">
>     <tr><td><xsl:value-of select="."/></td></tr>
>   </xsl:template>
>
>   <xsl:template match="E">
>     <tr><td></td><td><xsl:value-of select="."/></td></tr>
>   </xsl:template>
>
>   <xsl:template match="G">
>     <tr><td></td><td></td><td><xsl:value-of select="."/></td></tr>
>   </xsl:template>
>
> Anyway, this balance has been discussed here before. Here's a link to one of
> the more recent threads:
> http://www.biglist.com/lists/xsl-list/archives/200102/threads.html#01737
>
> Evan Lenz
> XYZFind Corp.
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

--
Larry Garfield
lgarfiel@xxxxxxxxxxxxxxxxxxx

Do you have a PalmOS Organizer?  Click here to add me to your address book:
http://signature.coola.com/?lgarfiel@xxxxxxxxxxxxxxxxxxx

-- "If at first you don't succeed, skydiving isn't for you." :-)



 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.