[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: jumping in
From: "Devon Y." <vehementpetal@xxxxxxxxxxx>
Date: Mon, 17 Feb 2003 16:24:42 -0500

i was wondering if its possible to jump in with the
xslt processing for an xml document.

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..

Yes. Like this -


<xsl:template match="/root/yup">
[code goes here]
</xsl:template>


the issue im having is that the textnodes in /root/foo get
printed out, because node template exists for them, which i
wanna keep like that..

add this to your template, to suppress it's output -


<xsl:template match="/root/foo"/>



Devon

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail



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



Current Thread
  • jumping in
    • florian - Mon, 17 Feb 2003 12:28:53 -0500 (EST)
      • <Possible follow-ups>
      • Devon Y. - Mon, 17 Feb 2003 16:23:01 -0500 (EST) <=
      • Ross Ken - Mon, 17 Feb 2003 17:30:45 -0500 (EST)
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member