Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"test" example with two expressions

0 views
Skip to first unread message

Terris

unread,
Feb 2, 2000, 3:00:00 AM2/2/00
to
Thanks!

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

Justin Rogers

unread,
Feb 2, 2000, 3:00:00 AM2/2/00
to
Probably...

test = "./[@foo and not(@bar)]"


--
- Justin Rogers, CEO DigiTec Web Consultants


"Terris" <ter...@terris.org> wrote in message

news:OcARdpbb$GA.274@cppssbbsa05...

Chris Lovett

unread,
Feb 3, 2000, 3:00:00 AM2/3/00
to
In IE5 XSL you can do:
test=".[@foo and not(@bar)]"
or
test=".[@foo $and$ $not$ bar]"
although the latter is obsolete syntax.

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

0 new messages