However, this is not working for me. I can not give you
an error message because I guess the processor
doesn't produce them.
It doesn't like $and$.
Terris
"Chris Lovett" <nospam!!@nospam.com> wrote in message
news:OJMZWPUb$GA....@cppssbbsa02.microsoft.com...
> Note: there is a microsoft.public.xsl newsgroup. The answer is:
>
> test="@foo $and$ $not$ @bar"
>
> Terris <ter...@terris.org> wrote in message
> news:utPsdrQb$GA.1248@cppssbbsa06...
> > I need to create ...
> >
> > <xsl:when test=" "/>
> >
> > Where the 'test' expression is such that ...
> >
> > Attribute 'foo' exists AND attribute 'bar' does not exist.
> >
> > What is the correct expression for this? The obvious
> > ones don't work.
> >
> > Thanks,
> > Terris
> >
> >
> >
>
>
test = "./[@foo and not(@bar)]"
--
- Justin Rogers, CEO DigiTec Web Consultants
"Terris" <ter...@terris.org> wrote in message
news:OcARdpbb$GA.274@cppssbbsa05...
In XSLT (and the web release) you can do:
test=".[@foo and not(@bar)]"
or simply
test="@foo and not(@bar)"
- Jonathan Marsh
Microsoft
--------------------
From: "Justin Rogers" <jus...@mlstoday.com>
References: <OcARdpbb$GA.274@cppssbbsa05>
Subject: Re: "test" example with two expressions