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