Re: [Xsltforms-support] update: xsltforms 1.6 - F1 does not display the console (fwd)
Brought to you by:
alain-couthures
|
From: Habs <ge...@us...> - 2022-11-27 19:25:27
|
Hello Alain, List
Thank you for the reply Alain (to both quesions) and for your detailed
info ... most helpful.
I understand better now as a result and will explore some more.
Entering such as this: instance('myinstance') in the debugger console,
indeed does reveal the xml (unformatted).
Now I know that the debigger is an XPath type query engine, I can play
around with it.
Before I 'disappear' for a while to have play, do you have any comment on
whether namespaces are handled and if so, how one might enter and XPath
for a particular node please ?
For example, when entering:
instance('myinstance')/personname
... this error is produced:
Error: nsresolver.lookupNamespaceURI is not a function
How would one select 'personname' if the xml instance employs a namespace
eg. for the error above, this is the xml:
<root xmlns="somenamespace">
<personname>anon</personname>
</root>
Regards
Habs
On Sun, 27 Nov 2022, Alain Couthures wrote:
> Hello Habs,
>
> The new debugger console allows you to dynamically evaluate any XPath expressions such as "instance()".
>
> Extra XPath functions might help debugging (for example, the next XPath/XQuery engine will come with a "instance-ids()" function...). Any idea?
>
> Kind regards,
>
> --Alain
> Le 26/11/2022 18:35 CET, Habs <ge...@us...> a écrit :
>
>
> sorry List,
>
> A bit of an update to the last (below) regarding v1.6
>
> I have noticed that the console/debugger now appears at the bottom when
> pressing F1, which is different behaviour to previous, where a form was
> displayed when pressing F1 and where it was possible to select the
> 'profiler' to be able to access instance viewer etc.
>
> The 'debugger' console at the bottom appears to be waiting for input, but
> I am unsure what can be entered; especially related to inspecting or
> getting a copy of the xml document as one could do with the instance
> viewer.
>
> It is all a bit unfamiliar to me, sorry. Any insight would be great.
>
> Thank you
> Habs
>
>
>
> ---------- Forwarded message ----------
> Date: Sat, 26 Nov 2022 17:15:52 +0000 (GMT)
> From: Habs <ge...@us...>
> To: xsl...@li...
> Subject: xsltforms 1.6 - F1 does not display the console
>
>
> Hello List/Alain
>
> with xsltforms (1.6) from here (and tried on lastest Chromium and Firefox):
>
> https://github.com/AlainCouthures/declarative4all/blob/master/public/direct/xsltforms.zip
>
>
> When pressing F1 for the 'console' (to access instance viewer etc) does not
> reveal anything.
>
> The previous version (1.5) is fine.
>
> Incidentally, what/where is the fleur mechanism/code used (or that could be
> used) to access the instance xml content (that appears in the viewer) ?
>
>
> Thank you, regards
> Habs
> UK
>
> --- Sent using Alpine/Pine, probably the best MUA ---
>
>
>
> _______________________________________________
> Xsltforms-support mailing list
> Xsl...@li...
> https://lists.sourceforge.net/lists/listinfo/xsltforms-support
>
>
>
--- Sent using Alpine/Pine, probably the best MUA ---
|