Subject: Re: [xsl] XPath problem From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 28 Apr 2004 18:06:17 -0400 |
On Wed, 28 Apr 2004 09:22:18 +0000 "Jonny Pony" <jonnypony666@xxxxxxxxxxx> wrote: ... > But I want the tree starting from an other node; e.g. the node <nina>.
then just apply the render templates to a subsection of the document: ... > <body> > <h3>Can't find the solution for my problem</h3> > <xsl:apply-templates select="DB/Nina" mode="render"/> > </body>
Alternatively, change the template that matches the root (/):
> <xsl:template match="/" mode="render"> > tree > <br/> > <xsl:apply-templates select="DB/Nina" mode="render"/> > </xsl:template>
This way you will always start with "tree".
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] XPath problem, Tom Schutzer-Weissma | Thread | [xsl] Problems with displaying node, Bertrand Sauviat |
RE: [xsl] Xsl not able to Pick XML , Michael Kay | Date | RE: [xsl] Xsl not able to Pick XML , Pieter Reint Siegers |
Month |