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
($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
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
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 ?
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};
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,
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
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
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
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.
10 matches
Mail list logo