On Fri, 2019-02-22 at 12:05 +0100, Marco Lettere wrote:

> (: Matches anything followed by /input :)
> declare %rest:path("app/{$path=.+}/input")
>    function page:inputs($path) { ... };
> 
> (: Matches all other all paths starting with "app/" :)
> declare %rest:path("app/{$path=.+}")
>    function page:others($path) { ... };

Can you use content negotiation/quality to say the /input one is
preferred when both match? E.g. %rest:produces("*/*;qs=0.8") on the
page:others function and */*;qs=1.0 on the input ont?

Liam


-- 
Liam Quin, https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Web slave for vintage clipart http://www.fromoldbooks.org/

Reply via email to