Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   XMl and/or (http://www.velocityreviews.com/forums/t528780-xml-and-or.html)

Guye 08-13-2007 07:49 AM

XMl and/or
 
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,


Martin Honnen 08-13-2007 12:15 PM

Re: XMl and/or
 
Guye wrote:

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

--

Martin Honnen
http://JavaScript.FAQTs.com/

Joe Kesselman 08-13-2007 12:20 PM

Re: XMl and/or
 
Guye wrote:
> 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.


--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry

Peter Flynn 08-13-2007 08:02 PM

Re: XMl and/or
 
Guye wrote:
> 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
--
XML FAQ: http://xml.silmaril.ie/

C. M. Sperberg-McQueen 08-14-2007 04:52 PM

Re: XMl and/or
 
Guye <eliahuguy@gmail.com> writes:

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


All times are GMT. The time now is 07:27 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.