| 
 
Subject: RE: [xsl] Selecting child elements bar one From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Mon, 13 Feb 2006 08:27:13 -0000  | 
> this is supposed to work: > > <xsl:template match="/"> > <xsl:apply-templates select="*[not(self::two)]" /> > </xsl:template> In your example, "/" has only one child, the element named <doc>. Your template would work if it specified match="doc". Michael Kay http://www.saxonica.com/ > > i.e., given this XML input: > > <doc> > <one>foo</one> > <two>bar</two> > <three>baz</three> > </doc> > > element 'two' should be excluded. > > Well, I'm getting: > > foo > bar > baz > > and it's starting to drive me crazy. What's worse, is that I know the > answer is going to be so damn obvious I'm going to feel incredibly > stupid, more so than I do already. Aaaarrrggghhh, I think XSLT hates > me! > > sdt
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] Selecting child elements , Kamal Bhatt | Thread | RE: [xsl] Selecting child elements , Vasu Chakkera | 
| Re: Re: Re: Re: [xsl] Pagebreaks in, Oleg Konovalov | Date | RE: [xsl] XSLT Processor caching an, Michael Kay | 
| Month |