Subject: RE: [xsl] Using not(...a nd ... ) to select nodes From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 10 Jul 2003 17:14:25 -0400 |
Cheers, Wendell
Thanks for the try.
What you said makes complete sense and it looked to me like it should work, but now I have the opposite problem... It's including everything. :p
Preceding-sibling::* means ALL preceding siblings, correct? If not, that may be my problem, because the XML is not sorted/grouped in an orderly fashion *grimace*.
Chris
> -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Wendell Piez > Sent: Thursday, July 10, 2003 4:11 PM > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: Re: [xsl] Using not(...a nd ... ) to select nodes > > > Chris, > > Try > > select="items/item[not(preceding-sibling::* > [name=current()/name and > type = current()/type and > status = current()/status])]" > > The problem with your statement is it's testing true if there no > corresponding values on any preceding siblings, whereas you > want it to be > true only if there's a preceding sibling with all > corresponding values. > > I hope that works for you-- > > Cheers, > Wendell
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
====================================================================== 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] Using not(...a nd ... ) t, Barak | Thread | RE: [xsl] Using not(...a nd ... ) t, Barak |
RE: RE: [xsl] Using not(...a nd ..., cknell | Date | [xsl] xslt to process two xml docu, Challa, Harsha |
Month |