Subject: Re: [xsl] Apply-templates - how to omit top level element tags? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 08 Sep 2005 18:43:54 -0400 |
<h1> <!-- THIS IS WHAT I NEEDED --> <xsl:apply-templates select="Name/node()"/> </h1>
That works but makes things look a lot more complicated than need be. You probably just want to replace all that by <xsl:apply-templates select="Name"/>
and have <xsl:template match="Guide/Name"> <h1><xsl:apply-templates/></h1> </xsl:template>
That's probably a more natural xslt coding style.
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] Apply-templates - how to , David Carlisle | Thread | RE: [xsl] Apply-templates - how to , Mike Schinkel |
RE: [xsl] Apply-templates - how to , Mike Schinkel | Date | Re: [xsl] Apply-templates - how to , Wendell Piez |
Month |