XMl and/or

Discussion in 'XML' started by Guye, Aug 13, 2007.

  1. Guye

    Guye Guest

    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,
     
    Guye, Aug 13, 2007
    #1
    1. Advertising

  2. 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/
     
    Martin Honnen, Aug 13, 2007
    #2
    1. Advertising

  3. 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
     
    Joe Kesselman, Aug 13, 2007
    #3
  4. Guye

    Peter Flynn Guest

    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/
     
    Peter Flynn, Aug 13, 2007
    #4
  5. Guye <> 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)
     
    C. M. Sperberg-McQueen, Aug 14, 2007
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page