Re: [basex-talk] RESTXQ oddity?

2024-01-29 Thread Imsieke, Gerrit, le-tex
TML across multiple pages. Many thanks, Greg *From: *Imsieke, Gerrit, le-tex *Date: *Monday, January 29, 2024 at 2:36 PM *To: *Murray, Gregory , basex-talk@mailman.uni-konstanz.de *Subject: *Re: [basex-talk] RESTXQ oddity? [You don't often get email from gerrit.imsi...@le-tex.de. Learn

Re: [basex-talk] RESTXQ oddity?

2024-01-29 Thread Murray, Gregory
Correction: I meant to say “Yes, I was using relative paths ….” Apologies. From: Murray, Gregory Date: Monday, January 29, 2024 at 3:35 PM To: Imsieke, Gerrit, le-tex , basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] RESTXQ oddity? Hi Gerrit, I’m subscribed to the list

Re: [basex-talk] RESTXQ oddity?

2024-01-29 Thread Murray, Gregory
pages. Many thanks, Greg From: Imsieke, Gerrit, le-tex Date: Monday, January 29, 2024 at 2:36 PM To: Murray, Gregory , basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] RESTXQ oddity? [You don't often get email from gerrit.imsi...@le-tex.de. Learn why this is importa

Re: [basex-talk] RESTXQ oddity?

2024-01-29 Thread Imsieke, Gerrit, le-tex
@mailman.uni-konstanz.de *Subject: *Re: [basex-talk] RESTXQ oddity? You don't often get email from bunce.a...@gmail.com. Learn why this is important <https://aka.ms/LearnAboutSenderIdentification> In addition to Gerrit's comments... This line jumped out as problematic 

Re: [basex-talk] RESTXQ oddity?

2024-01-29 Thread Murray, Gregory
To: Murray, Gregory Cc: basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] RESTXQ oddity? You don't often get email from bunce.a...@gmail.com. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification> In addition to Gerrit's comments... This line jumped out as probl

Re: [basex-talk] RESTXQ oddity?

2024-01-29 Thread Andy Bunce
In addition to Gerrit's comments... This line jumped out as problematic to me. %rest:path('theocom/static/{$dir=.+}/{$file=.+}') The pattern =.+ matches the rest of the path. You only need this once at the end of the path. Maybe just: %rest:path('theocom/static/{$dir}/{$file=.+}') /Andy On

Re: [basex-talk] RESTXQ oddity?

2024-01-29 Thread Imsieke, Gerrit, le-tex
Are the two types of pages requesting the CSS by relative path? For the main page, static/… should be correct, but for theocom/contributors/…, it should probably be ../../static/… If this is the issue, then you can refer to the static files by absolute path or use request:path() in order to

[basex-talk] RESTXQ oddity?

2024-01-29 Thread Murray, Gregory
Hello, I’m trying to build my first BaseX web application. I’ve got a RESTXQ function for returning static files to the browser, and other RESTXQ functions corresponding to URLs in the web application. The function for static files is based on the one in DBA: (:~ Returns the specified static