[Bug 11821] [FT] Thesaurus option FTRange

http://www.w3.org/Bugs/Public/show_bug.cgi?id=11821

--- Comment #15 from Tim Mills <tim@cbcl.co.uk> 2011-02-15 13:15:45 UTC ---
Note that FTThesaurusOption can be used via the query prolog.

[6]        Prolog        ::=        ((DefaultNamespaceDecl | Setter |
NamespaceDecl | Import | FTOptionDecl) Separator)* ((VarDecl | FunctionDecl |
OptionDecl) Separator)*

[24]        FTOptionDecl        ::=        "declare" "ft-option" FTMatchOptions


I'm not sure that it is particularly desirable to permit any of the following
queries:

EXAMPLE 1

declare ft-option using
thesaurus at "http://bstore1.example.com/UsabilityThesaurus.xml"
relationship "NT" at most $x levels;

declare variable $x := 1;

...

EXAMPLE 2

declare ft-option using
thesaurus at "http://bstore1.example.com/UsabilityThesaurus.xml"
relationship "NT" at most $x levels;

declare variable $x := (doc('foo.xml')//p[. contains text 'foo'])[1]/@number;

...


EXAMPLE 3

declare ft-option using
thesaurus at "http://bstore1.example.com/UsabilityThesaurus.xml"
relationship "NT" at most string-length(default-collation()) levels;

declare default collation
         "http://example.org/languages/Icelandic";

...

EXAMPLE 4

declare ft-option using
thesaurus at "http://bstore1.example.com/UsabilityThesaurus.xml"
relationship "NT" at most fn:number(<foo:bar>1</foo:bar>) levels;

declare namespace foo = "http://www.exaxmple.com/";

...

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 15 February 2011 13:15:49 UTC