Re: [xsl] jumping in

Subject: Re: [xsl] jumping in
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Mon, 17 Feb 2003 18:33:20 -0500
Florian,

In a template matching the root you can select just the descendant elements you want, evading the others:

<xsl:template match="/">
  <xsl:apply-templates select="root/yup"/>
</xsl:template>

A very simple and effective way. There are also others.

Cheers,
Wendell

At 12:37 PM 2/17/2003, you wrote:
like if i have this xml doc:

<root>
  <foo>
   <bar>hi</bar>
  </foo>
  <yup>
    <something />
  </yup>
</root>


is it possible that i start the xslt processs at the /root/yup node..

___&&__&_&___&_&__&&&__&_&__&__&&____&&_&___&__&_&&_____&__&__&&_____&_&&_ "Thus I make my own use of the telegraph, without consulting the directors, like the sparrows, which I perceive use it extensively for a perch." -- Thoreau


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



Current Thread
  • [xsl] jumping in
    • florian - 17 Feb 2003 18:37:25 +0100
      • Wendell Piez - Mon, 17 Feb 2003 18:33:20 -0500 <=
      • <Possible follow-ups>
      • Devon Y. - Mon, 17 Feb 2003 16:24:42 -0500
      • Ross Ken - Tue, 18 Feb 2003 08:32:20 +1000