[basex-talk] Templating

2014-10-17 Thread Emmanuel Chateau
Hi, I’ve been trying to use the templating proposed by Andy Bunce here http://cubeb.blogspot.fr/2012/11/xquery-templating-engines-and-txq.html https://mailman.uni-konstanz.de/pipermail/basex-talk/2012-November/004209.html I’ve tried with txq module in different ways. But, I can’t figure out

Re: [basex-talk] Templating

2014-10-17 Thread Emmanuel Chateau
; div{map:get($map, 'greeting')}/div ``` Le 17 oct. 2014 à 19:03, Emmanuel Chateau emchat...@laposte.net a écrit : Hi, I’ve been trying to use the templating proposed by Andy Bunce here http://cubeb.blogspot.fr/2012/11/xquery-templating-engines-and-txq.html https://mailman.uni

Re: [basex-talk] test if a namespace prefix is declared

2015-02-11 Thread Emmanuel Chateau
($function) Hope this helps, Christian [1] http://docs.basex.org/wiki/Inspection_Module#inspect:functions On Tue, Feb 10, 2015 at 2:41 PM, Emmanuel Chateau emchat...@laposte.net wrote: Hi Christian, Here is the example of what we would achieve : https://gist.github.com/emchateau

Re: [basex-talk] test if a namespace prefix is declared

2015-02-10 Thread Emmanuel Chateau
Hi Christian, Here is the example of what we would achieve : https://gist.github.com/emchateau/5d8af7f53d6f346512c1 https://gist.github.com/emchateau/5d8af7f53d6f346512c1 Thanks, Emmanuel and Philippe Le 10 févr. 2015 à 14:26, Christian Grün christian.gr...@gmail.com a écrit : to

[basex-talk] test if a namespace prefix is declared

2015-02-10 Thread Emmanuel Chateau
We wanna test if a function exists with fn:function-lookup As fn:function-lookup only takes QNames, in some cases the namespace isn’t declared. So unsurprisingly, we get an error FONS0004 No namespace declared for prefix ‘……’ Is there any way to test if the namespace is declared first ?

Re: [basex-talk] function:module

2015-02-25 Thread Emmanuel Chateau
I’m trying an exemple below, but after a closer look, everything is alright. I was confused by QNames construction… If we had two different modules. In the first one module namespace x = ‘x' ; declare default function namespace 'x'; declare function a() { 1}; declare function x:b() { 1};

[basex-talk] function:module

2015-02-24 Thread Emmanuel Chateau
Hi, In the result of a function:inspect(), it seems that the @name of the function element is not a prefixed name when using the declare default namespace in a function module whereas it is prefixed name for the others. Is it me who miss something, or it should always be the same ? Thanks,

Re: [basex-talk] function:module

2015-02-24 Thread Emmanuel Chateau
Thanks for your answer. I may be wrong, but for me uri (namespace) and prefix are not necessarily the same. So, I would expect always a prefixed name for @name, because when uri and prefix are different, it becomes impossible to deduce the prefixed name. But it may need a closer look to the

Re: [basex-talk] oXygen XML, content negotiation and #1220

2017-07-09 Thread Emmanuel Chateau
d you already try it out? > > Cheers, > Christian > > [1] http://docs.basex.org/wiki/RESTXQ#Paths > <http://docs.basex.org/wiki/RESTXQ#Paths> > > > > Am 09.07.2017 17:23 schrieb "Emmanuel Chateau" <emchat...@laposte.net > <mailto:emchat...@laposte

Re: [basex-talk] oXygen XML, content negotiation and #1220

2017-07-09 Thread Emmanuel Chateau
Hallo Christian, As you know I’m really interested by this issue. On this topic, I was wondering if it could be possible to implement something to deal with path extensions in RESTXQ. It would then be possible to perform later transparent content negotiation in the function. For exemple :

Re: [basex-talk] How to serialize HTML as text

2020-06-27 Thread Emmanuel Chateau
Wonderful, and so simple indeed ! Thanks a lot. Emmanuel > Le 27 juin 2020 à 12:39, Martin Honnen a écrit : > > Am 27.06.2020 um 18:32 schrieb Emmanuel Chateau: > >> I need to output a JSON object with HTML content without a parent element. >> Weird idea I

[basex-talk] How to serialize HTML as text

2020-06-27 Thread Emmanuel Chateau
Hi, I’ve got an XQuery question more than a BaseX question. I need to output a JSON object with HTML content without a parent element. Weird idea I grant you, but required by the people I work with. Working from a map, in the map value, the content should not appear in a parent element.