XMl and/or

G

Guye

Hi,

i am comletely new to xml and i have a problem.

i need to write an xml with 2 conditions with an AND between them. how
could it be done?

thanks,
 
M

Martin Honnen

Guye said:
i am comletely new to xml and i have a problem.

i need to write an xml with 2 conditions with an AND between them. how
could it be done?

Are you using a particular XML application like XSLT? With XSLT you use
XPath to write conditions and it has an 'and' operator so you can use e.g.
<xsl:if test="element1 = 'foo' and element2 = 'bar'">

Otherwise it is not clear why you think XML is used to specify conditions.
 
J

Joe Kesselman

Guye said:
i need to write an xml with 2 conditions with an AND between them. how
could it be done?

XML is pure syntax. Which XML-based language are you working in?

XPath (the most common XML expression language) certainly has both these
operations.
 
P

Peter Flynn

Guye said:
Hi,

i am comletely new to xml and i have a problem.

i need to write an xml with 2 conditions with an AND between them. how
could it be done?

XML (the markup syntax) doesn't provide for conditions.
Can you explain a little more about what you want to do?

///Peter
 
C

C. M. Sperberg-McQueen

Guye said:
Hi,

i am comletely new to xml and i have a problem.

i need to write an xml with 2 conditions with an AND between them. how
could it be done?

The application semantics of XML are limited only by human ingenuity.
The markup means what you, as the designer of the vocabulary, say that
it means. As a consequence, (a) there are an infinite number of ways
to say what you want, and (b) it's rather important to document your
vocabulary.

Does this help?

--Michael Sperberg-McQueen
World Wide Web Consortium (W3C)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,008
Messages
2,570,270
Members
46,873
Latest member
HeidiWeing

Latest Threads

Top