|
Subject: Re: [xsl] nested templates? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 16 May 2001 16:29:48 +0100 |
below is a real world example of for-each. (first 'document') this works.
which is fine, but I far prefer nested templates, because that implies that I can _import_ those templates wherever I like, and build up complex documents out of little sub-formatters.
So <xsl:template match="/"> <xsl:apply-templates/> </xsl:template>
<xsl:template match="bookmark">
<output>
<xsl:apply-templates/>
</output>
</xsl:template>I'm warming up to this language rapidly, after you get over the amazing verbosity of the syntax, it works quite well, actually :)
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] nested templates?, Alex Black | Thread | RE: [xsl] nested templates?, Chris Bayes |
| Re: [xsl] <xsl:apply-templates sele, Wendell Piez | Date | AW: [xsl] character transformation,, Marcus Klinge |
| Month |