Re: XPath version

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Innovimax SARL writes:

> On Nov 15, 2007 4:14 PM, Henry S. Thompson <ht@inf.ed.ac.uk> wrote:
>>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Norman Walsh writes:
>>
>> > 10. We add a p:xpath-version system property that returns the highest
>> > version of XPath support that the implementation provides.
>>
>> Hmm, not really good enough if I want to know if native support for
>> XPath 1.0 is available. . .
>>
>> Not sure what the right thing to do is -- p:xpath-versions, value a
>> space-separated (not ideal, can lead to false positives) or
>> space-bounded (e.g. " 1.0 2.0 " -- not ideal, as people will just
>> think we've made a mistake unless we explain at length :-( ?
>
> isn't just the difference something like concat(' ', @p:xpath-versions, ' ') ?

Yes, but w/o the longer version, to reliably test for an explicit
version I have to do

contains(concat(' ',$xpath-versions,' '),concat(' ',$version,' '))

which just seems a bit much. . .

ht
- -- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFHPGZRkjnJixAXWBoRAgVqAJ9Z7oqaSsJtVoxMTA4mOc0dxTGBJQCeOOvN
p6ZQVwjEOzd59iGB9HzqaXg=
=obun
-----END PGP SIGNATURE-----

Received on Thursday, 15 November 2007 15:31:59 UTC