OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Nasty XPath expressions

[ Lists Home | Date Index | Thread Index ]

Hi Joshua,

Joshua Allen wrote:

> Hmm, do you mean XPath expressions with functions, such as concat()? I
> guess I was purely assumping about what the behavior of .valueOf is.

yes, I meant expressions in the sense of the spec:

"The primary syntactic construct in XPath is the expression. An 
expression matches the production Expr. An expression is evaluated to 
yield an object, which has one of the following four basic types:

     * node-set (an unordered collection of nodes without duplicates)
     * boolean (true or false)
     * number (a floating-point number)
     * string (a sequence of UCS characters)"

Jeni Tennison has pointed out in a private communication (I've never 
used that phrase before :) that you can of course communicate a binary 
result by returning an empty or non-empty node-set. Arbitrary strings 
and large, negative or non-integer numbers would be pretty tricky.

Francis.







 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS