xsl-list
[Top] [All Lists]

Re: jumping in

2003-02-17 16:33:20
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



<Prev in Thread] Current Thread [Next in Thread>