xsltforms-support Mailing List for XSLTForms (Page 44)
Brought to you by:
alain-couthures
You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
(6) |
Jun
(9) |
Jul
(16) |
Aug
(5) |
Sep
(43) |
Oct
(36) |
Nov
(58) |
Dec
(43) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(79) |
Feb
(81) |
Mar
(107) |
Apr
(93) |
May
(85) |
Jun
(54) |
Jul
(64) |
Aug
(54) |
Sep
(45) |
Oct
(53) |
Nov
(34) |
Dec
(77) |
2011 |
Jan
(56) |
Feb
(53) |
Mar
(52) |
Apr
(66) |
May
(44) |
Jun
(16) |
Jul
(28) |
Aug
(5) |
Sep
(15) |
Oct
(21) |
Nov
(51) |
Dec
(46) |
2012 |
Jan
(16) |
Feb
(38) |
Mar
(47) |
Apr
(45) |
May
(41) |
Jun
(41) |
Jul
(72) |
Aug
(17) |
Sep
(10) |
Oct
(16) |
Nov
(29) |
Dec
(30) |
2013 |
Jan
(25) |
Feb
(13) |
Mar
(20) |
Apr
(25) |
May
(34) |
Jun
(8) |
Jul
(12) |
Aug
(9) |
Sep
(21) |
Oct
(19) |
Nov
(6) |
Dec
(2) |
2014 |
Jan
(14) |
Feb
(8) |
Mar
(7) |
Apr
(13) |
May
(33) |
Jun
(13) |
Jul
(6) |
Aug
(5) |
Sep
(5) |
Oct
(34) |
Nov
(7) |
Dec
|
2015 |
Jan
(1) |
Feb
(6) |
Mar
(17) |
Apr
(12) |
May
(10) |
Jun
(18) |
Jul
(31) |
Aug
(9) |
Sep
(3) |
Oct
(6) |
Nov
(19) |
Dec
(1) |
2016 |
Jan
(18) |
Feb
(4) |
Mar
(13) |
Apr
(19) |
May
|
Jun
(17) |
Jul
(7) |
Aug
|
Sep
(3) |
Oct
(6) |
Nov
(3) |
Dec
|
2017 |
Jan
(5) |
Feb
(17) |
Mar
(4) |
Apr
(8) |
May
(3) |
Jun
|
Jul
(8) |
Aug
(2) |
Sep
|
Oct
(5) |
Nov
(6) |
Dec
(4) |
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
|
Dec
(1) |
2019 |
Jan
|
Feb
|
Mar
(4) |
Apr
(2) |
May
(4) |
Jun
|
Jul
|
Aug
(2) |
Sep
(7) |
Oct
|
Nov
|
Dec
|
2020 |
Jan
(13) |
Feb
(17) |
Mar
(8) |
Apr
(11) |
May
(15) |
Jun
(11) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
2021 |
Jan
(9) |
Feb
(26) |
Mar
(17) |
Apr
|
May
(7) |
Jun
(18) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(10) |
2022 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(2) |
Sep
(3) |
Oct
(2) |
Nov
(10) |
Dec
(1) |
2023 |
Jan
(10) |
Feb
|
Mar
(7) |
Apr
(8) |
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
(8) |
Oct
(11) |
Nov
(8) |
Dec
(5) |
2024 |
Jan
(7) |
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
(4) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: C. M. Sperberg-M. <cm...@bl...> - 2012-06-25 19:25:08
|
The Subversion copy of XSLTForms includes, in its copy of TinyMCE, the file scripts/tinymce_3.4.6/tiny_mce_popup.js and the directory scripts/tinymce_3.4.6/utils/ But these appear not to be included in xsltforms-1.0RC.zip -- this appears to be an error, one visible effect of which is apparently to make the 'code' button (for the HTML source-code editor) launch an empty window. If you're fixing things in whatever code you use to package things, there is one other thing to mention -- some but not all of the tinymce directories have empty .svn subdirectories (it looks to me as if the packaging code removed some but missed others), and the empty .svn directories complicated matters when I tried to check 1.0RC into my own Subversion repository. Thanks! Michael -- **************************************************************** * C. M. Sperberg-McQueen, Black Mesa Technologies LLC * http://www.blackmesatech.com * http://cmsmcq.com/mib * http://balisage.net **************************************************************** |
From: Alain C. <ala...@ag...> - 2012-06-25 18:32:45
|
Hi Grégoire, This is a very poor trace but I can read that it concerns a label and an output which might sound as how label/@ref is now implemented. Could you please check this? Could you give me a minimal test case? Thanks! -Alain Le 25/06/2012 12:12, Grégoire COLBERT a écrit : > Hi Alain, > > I updated from revision 535 to revision 546 and I now get the following > error on loading my form : > > XSLTForms Exception > -------------------------- > > Error initializing : > > ([object > Object],"xsltforms-mainform-label-40")@http://localhost:8080/xsltforms/trunk/build/xsltforms.js:5060 > XsltForms_output([object Object],"xsltforms-mainform-label-40",0,[object > Object],null)@http://localhost:8080/xsltforms/trunk/build/xsltforms.js:6108 > xsltforms_initImpl()@http://localhost:8080/:872 > xsltforms_init()@http://localhost:8080/:1070 > onload([object Event])@http://localhost:8080/:1 > > > TypeError > > this.element is null > > --------------------------- > > Any idea of the problem? > > Thanks! > Grégoire > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > |
From: Ihe O. <ihe...@go...> - 2012-06-25 16:27:31
|
2.0 On Mon, Jun 25, 2012 at 5:12 PM, Dmitriy Shabanov <sha...@gm...> wrote: > eXist version? > > > On Mon, Jun 25, 2012 at 8:48 PM, Ihe Onwuka <ihe...@go...> > wrote: >> >> As part of the continuing odyssey in the quest for a more performant >> XFORM I have now tried to do the XSLTForms transform on the server >> using the example In the XRX Wikibook as a template >> >> http://en.wikibooks.org/wiki/XRX/XSLTForms_and_eXist >> > > -- > Dmitriy Shabanov |
From: Ihe O. <ihe...@go...> - 2012-06-25 15:48:53
|
As part of the continuing odyssey in the quest for a more performant XFORM I have now tried to do the XSLTForms transform on the server using the example In the XRX Wikibook as a template http://en.wikibooks.org/wiki/XRX/XSLTForms_and_eXist My effort doesn't work but then neither does the example in the wikibook (pasted below). xquery version "1.0"; declare option exist:serialize "method=xhtml media-type=text/html indent=no"; let $form := <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xf="http://www.w3.org/2002/xforms"> <head> <title>XForms Template</title> <xf:model> <xf:instance xmlns="" id="save-data"> <data> <name>John Smith</name> </data> </xf:instance> </xf:model> </head> <body> <h1>XForms Test Program</h1> <xf:input ref="name"> <xf:label>Name: </xf:label> </xf:input> </body> </html> let $transform := '/exist/rest/db/xforms/xsltforms/xsltforms.xsl' let $params := <parameters> <param name="omit-xml-declaration" value="yes"/> <param name="indent" value="no"/> <param name="media-type" value="text/html"/> <param name="method" value="xhtml"/> <param name="baseuri" value="/exist/rest/db/xforms/xsltforms/"/> </parameters> let $serialization-options := 'method=xml media-type=text/html omit-xml-declaration=yes indent=no' return transform:transform($form, $transform, $params, $serialization-options) Error follows below HTTP ERROR 500 Problem accessing /exist/rest/db/apps/b2b/test1.xq. Reason: An error occurred: null Caused by: javax.servlet.ServletException: An error occurred: null at org.exist.http.servlets.EXistServlet.doGet(EXistServlet.java:279) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:480) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:241) at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:115) at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:47) at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:211) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1359) at de.betterform.agent.web.filter.XFormsFilter.doFilter(XFormsFilter.java:172) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:483) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) at org.eclipse.jetty.server.Server.handle(Server.java:349) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441) at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.NullPointerException at org.exist.xquery.functions.transform.Transform$CachedStylesheet.getTemplates(Transform.java:521) at org.exist.xquery.functions.transform.Transform$CachedStylesheet.<init>(Transform.java:510) at org.exist.xquery.functions.transform.Transform.getSource(Transform.java:470) at org.exist.xquery.functions.transform.Transform.createHandler(Transform.java:405) at org.exist.xquery.functions.transform.Transform.eval(Transform.java:228) at org.exist.xquery.BasicFunction.eval(BasicFunction.java:68) at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:55) at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:56) at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:63) at org.exist.xquery.LetExpr.eval(LetExpr.java:210) at org.exist.xquery.LetExpr.eval(LetExpr.java:208) at org.exist.xquery.LetExpr.eval(LetExpr.java:208) at org.exist.xquery.LetExpr.eval(LetExpr.java:208) at org.exist.xquery.BindingExpression.eval(BindingExpression.java:156) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:70) at org.exist.xquery.PathExpr.eval(PathExpr.java:276) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:70) at org.exist.xquery.XQuery.execute(XQuery.java:246) at org.exist.xquery.XQuery.execute(XQuery.java:201) at org.exist.http.RESTServer.executeXQuery(RESTServer.java:1403) at org.exist.http.RESTServer.doGet(RESTServer.java:478) at org.exist.http.servlets.EXistServlet.doGet(EXistServlet.java:246) ... 43 more Caused by: java.lang.NullPointerException at org.exist.xquery.functions.transform.Transform$CachedStylesheet.getTemplates(Transform.java:521) at org.exist.xquery.functions.transform.Transform$CachedStylesheet.<init>(Transform.java:510) at org.exist.xquery.functions.transform.Transform.getSource(Transform.java:470) at org.exist.xquery.functions.transform.Transform.createHandler(Transform.java:405) at org.exist.xquery.functions.transform.Transform.eval(Transform.java:228) at org.exist.xquery.BasicFunction.eval(BasicFunction.java:68) at org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:55) at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:56) at org.exist.xquery.DebuggableExpression.eval(DebuggableExpression.java:63) at org.exist.xquery.LetExpr.eval(LetExpr.java:210) at org.exist.xquery.LetExpr.eval(LetExpr.java:208) at org.exist.xquery.LetExpr.eval(LetExpr.java:208) at org.exist.xquery.LetExpr.eval(LetExpr.java:208) at org.exist.xquery.BindingExpression.eval(BindingExpression.java:156) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:70) at org.exist.xquery.PathExpr.eval(PathExpr.java:276) at org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:70) at org.exist.xquery.XQuery.execute(XQuery.java:246) at org.exist.xquery.XQuery.execute(XQuery.java:201) at org.exist.http.RESTServer.executeXQuery(RESTServer.java:1403) at org.exist.http.RESTServer.doGet(RESTServer.java:478) at org.exist.http.servlets.EXistServlet.doGet(EXistServlet.java:246) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:480) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:241) at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:115) at org.exist.http.urlrewrite.Forward.doRewrite(Forward.java:47) at org.exist.http.urlrewrite.XQueryURLRewrite.service(XQueryURLRewrite.java:211) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1359) at de.betterform.agent.web.filter.XFormsFilter.doFilter(XFormsFilter.java:172) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1330) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:483) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:941) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:875) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) at org.eclipse.jetty.server.Server.handle(Server.java:349) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441) at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:919) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:582) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533) at java.lang.Thread.run(Thread.java:722) Powered by Jetty:// |
From: Grégoire C. <gco...@gm...> - 2012-06-25 10:12:38
|
Hi Alain, I updated from revision 535 to revision 546 and I now get the following error on loading my form : XSLTForms Exception -------------------------- Error initializing : ([object Object],"xsltforms-mainform-label-40")@http://localhost:8080/xsltforms/trunk/build/xsltforms.js:5060 XsltForms_output([object Object],"xsltforms-mainform-label-40",0,[object Object],null)@http://localhost:8080/xsltforms/trunk/build/xsltforms.js:6108 xsltforms_initImpl()@http://localhost:8080/:872 xsltforms_init()@http://localhost:8080/:1070 onload([object Event])@http://localhost:8080/:1 TypeError this.element is null --------------------------- Any idea of the problem? Thanks! Grégoire |
From: Philip F. <Phi...@ma...> - 2012-06-25 06:05:20
|
Alain, The customer is currently running on version 494 of XSLTForms and, by the sounds of it, I need to get them running 1.0RC. Thanks you for the information. When I looked at 1.0RC a couple of months ago I saw that TInyMCE was part of the build too. Is this now the preferred implementation of a Rich Text Editor (RTE)? We were using an RTE via the exsltforms plug-ins. I think this looks like another reason to get them upgraded. Regards Philip From: Alain Couthures [mailto:ala...@ag...] Sent: Sunday, June 24, 2012 9:52 PM To: Philip Fennell Cc: xsl...@li... Subject: Re: [Xsltforms-support] Detecting successful upload of a binary file... Hello Philip, xf:upload is now supported in the trunk build (there is still a problem with IE because the user cannot know whether the upload has been executed correctly, the name of the selected file being not displayed...). Is it possible for you to give it a try? Thank you for your feedbacks! -Alain Le 22/06/2012 17:50, Philip Fennell a écrit : Hello, I'm currently using the hybrid XForms/HTML Forms work-around that allow you to mimic xf:upload with XSLTForms. In order to prevent the form from being reloaded after a successful response from the server I'm sending an HTTP 204 (No Content) response which the browser happily leaves the current page alone. However, what I'd like to do is have something similar to the xforms-submit-done event so that I can display a successful response message. I'm not sure what would be the right approach in this case because the HTML Form submission, although triggered by XForms, is then outside the scope of XForms. Does anyone have any suggestions. Regards Philip Philip Fennell Consultant MarkLogic Corporation Phi...@ma...<mailto:Phi...@ma...> Phone: +44 (0) 203 402 3619 Mobile: +44 (0) 7824 830 866 www.marklogic.com<http://www.marklogic.com/> This e-mail and any accompanying attachments are confidential. The information is intended solely for the use of the individual to whom it is addressed. Any review, disclosure, copying, distribution, or use of this e-mail communication by others is strictly prohibited. If you are not the intended recipient, please notify us immediately by returning this message to the sender and delete all copies. Thank you for your cooperation. |
From: Alain C. <ala...@ag...> - 2012-06-24 20:51:55
|
Hello Philip, xf:upload is now supported in the trunk build (there is still a problem with IE because the user cannot know whether the upload has been executed correctly, the name of the selected file being not displayed...). Is it possible for you to give it a try? Thank you for your feedbacks! -Alain Le 22/06/2012 17:50, Philip Fennell a écrit : > Hello, > I'm currently using the hybrid XForms/HTML Forms work-around that > allow you to mimic xf:upload with XSLTForms. > In order to prevent the form from being reloaded after a successful > response from the server I'm sending an HTTP 204 (No Content) response > which the browser happily leaves the current page alone. > However, what I'd like to do is have something similar to the > xforms-submit-done event so that I can display a successful response > message. I'm not sure what would be the right approach in this case > because the HTML Form submission, although triggered by XForms, is > then outside the scope of XForms. > Does anyone have any suggestions. > Regards > Philip > Philip Fennell > Consultant > MarkLogic Corporation > Phi...@ma... > Phone: +44 (0) 203 402 3619 > Mobile: +44 (0) 7824 830 866 > _www.marklogic.com_ <http://www.marklogic.com/> > This e-mail and any accompanying attachments are confidential. The > information is intended solely for the use of the individual to whom > it is addressed. Any review, disclosure, copying, distribution, or use > of this e-mail communication by others is strictly prohibited. If you > are not the intended recipient, please notify us immediately by > returning this message to the sender and delete all copies. Thank you > for your cooperation. > |
From: Philip F. <Phi...@ma...> - 2012-06-22 16:03:20
|
Hello, I'm currently using the hybrid XForms/HTML Forms work-around that allow you to mimic xf:upload with XSLTForms. In order to prevent the form from being reloaded after a successful response from the server I'm sending an HTTP 204 (No Content) response which the browser happily leaves the current page alone. However, what I'd like to do is have something similar to the xforms-submit-done event so that I can display a successful response message. I'm not sure what would be the right approach in this case because the HTML Form submission, although triggered by XForms, is then outside the scope of XForms. Does anyone have any suggestions. Regards Philip Philip Fennell Consultant MarkLogic Corporation Phi...@ma... Phone: +44 (0) 203 402 3619 Mobile: +44 (0) 7824 830 866 www.marklogic.com<http://www.marklogic.com/> This e-mail and any accompanying attachments are confidential. The information is intended solely for the use of the individual to whom it is addressed. Any review, disclosure, copying, distribution, or use of this e-mail communication by others is strictly prohibited. If you are not the intended recipient, please notify us immediately by returning this message to the sender and delete all copies. Thank you for your cooperation. |
From: William V. <wi...@bi...> - 2012-06-15 16:02:45
|
I've developed a solution based in NanoHTTPD called NanoXFServer. You can download it form http://dianaydavid.com/download/nanoxfserver.zip Basically is a tiny Java Webserver that supports PUT Method, so you can save XForms submissions locally. Take a look to instance-save-test.xforms Sadly, my wordpress based website, has been shut down, with the full documentation. But here is a transcript: NANOXFSERVER * WHAT IS IT? NanoXFServer is a really small web server based in Java that can handle PUT and XML-URLENCODED-POSTXForms submission methods. It´s based in the smallest, fully functional WebServer available in Java: NanoHTTPD http://elonen.iki.fi/code/nanohttpd/ [1] * WHY A WEB SERVER FOR XFORMS? If you are developing XForms using a javascript based implementation (probably XSLTForms), you must be facing two problems if you want to run your XForms locally: * For security reasons, javascript is disabled (fully or partially, depending on your browser) when you open a local file in your browser, so your XForms won't work. * There is no way of saving the XML Instance data to a local file (for security reasons also), so you need javscript tricks or a full web server if you want to see the XForm data The purpose of NanoXFServer is to allow XForms to run locally for testing (or maybe for full local applications) without an Web Server (like Apache or eXist-db) * HOW IT WORKS? The simplest way of using NanoXFServer is to copy nanoxfserver.jar to the folder where your XForms resides, and then run it with the following command: JAVA -JAR NANOXFSERVER.JAR Then point your browser to http://localhost and you´ll get a listing of the files on your directory. Choose your XForms and it's running. Take in account that you'll need two prerequisites: * You'll need Java JRE installed on yout computer * If you are using a client based XForms Implementation (like XSLTForms) you´ll need the appropiated files (xsltforms folder) and processing instructions in your XForms, in order to get it running For saving your instances locally, use the PUT submission method, and specify a relative file name in the ACTION or RESOURCE attribute of the submission element, like this: <XF:SUBMISSION ID="DOPUT" RESOURCE="DATA/PUTDATA.XML" METHOD="PUT" /> XML Instance will be stored in a file named PUTDATA.XML under the DATA folder (the folder must exists).. If you are using XSLTForms, you can also use the XML-URLENCODED-POST method, this way: <XF:SUBMISSION ID="DOPOST" RESOURCE="POSTDATA.XML" METHOD="XML-URLENCODED-POST"> Using XML-URLENCODED-POST, the browser will show the resulting instance (useful for quick testing) * WHAT CAN IT DO? NanoXFServer adds the following features to NanoHTTPD: * Support for PUT submission method. * Support for XML-URLENCODED-POST submission method (supported in XSLTForms). * XML Instances are saved with UTF-8 file encoding * Inhibits use of .. on instance saving. * Serves the following file extensions as etxt/xml: .xml .xsl .xslt .xsd .xforms * Serves .xhtml files as application/xhtml+xml (not supported for all browsers) Here is a complete list of features form the NanoHTTPD web page: * Only one Java file * Java 1.1 compatible * Released as open source, Modified BSD licence * No fixed config files, logging, authorization etc. (Implement by yourself if you need them.) * Supports parameter parsing of GET and POST methods * Parameter names must be unique. (Adding support to multiple instance of a parameter is not difficult, but would make the interface a bit more cumbersome to use.) * Supports both dynamic content and file serving * Supports file upload (since version 1.2, 2010) * Never caches anything * Doesn't limit bandwidth, request time or simultaneous connections * Default code serves files and shows all HTTP parameters and headers * File server supports directory listing, index.html and index.htm * File server supports partial content (streaming) * File server supports ETags * File server does the 301 redirection trick for directories without / * File server supports simple skipping for files (continue download) * File server serves also very long files without memory overhead * Contains a built-in list of most common mime types * All header names are converted lowercase so they don't vary between browsers/clients Hope this help you or at least bring new ideas, Bill El 2012-06-14 15:27, Alain Couthures escribió: > Hi vidhya, > > I think that XSLTForms could do the trick with just an extension to the > current applet. > > I can image a form allowing to select a folder and different options. > The applet will then return an XML document serialization having hexa > encoded files in this folder as leaf elements. > > Then, an XSLT 1.0 stylesheet can transform this document into a source file. > > This source file would include a basic HTTP server and would start a > browser at the initial page (There are online examples for tiny HTTP > servers in C for gcc or in Java). > > The last step would, of course, be to compile the generated source file > (with a generated command file maybe?). > > What do you think? > > -Alain > > Le 13/06/2012 07:19, srividhya a écrit : >> Hi all!!! >> Hai i have developed the application using xsltforms in offline >> mode. In terms of security concern, we can't able to give the >> application as folder(ie. with xsltforms folder and forms). so, i need >> your help regarding how to package as the .exe file or .jar file. If >> anybody have a idea help me... >> Awaiting for the reply... >> >> thanks, >> vidhya. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support -- William David Velasquez Laboratorio de Software Bitlab http://bitlab.com.co Movil 310 412 0218 Links: ------ [1] http://elonen.iki.fi/code/nanohttpd/ |
From: Alain C. <ala...@ag...> - 2012-06-14 20:27:10
|
Hi vidhya, I think that XSLTForms could do the trick with just an extension to the current applet. I can image a form allowing to select a folder and different options. The applet will then return an XML document serialization having hexa encoded files in this folder as leaf elements. Then, an XSLT 1.0 stylesheet can transform this document into a source file. This source file would include a basic HTTP server and would start a browser at the initial page (There are online examples for tiny HTTP servers in C for gcc or in Java). The last step would, of course, be to compile the generated source file (with a generated command file maybe?). What do you think? -Alain Le 13/06/2012 07:19, srividhya a écrit : > Hi all!!! > Hai i have developed the application using xsltforms in offline > mode. In terms of security concern, we can't able to give the > application as folder(ie. with xsltforms folder and forms). so, i need > your help regarding how to package as the .exe file or .jar file. If > anybody have a idea help me... > Awaiting for the reply... > > thanks, > vidhya. |
From: Mark S. <m_s...@ma...> - 2012-06-14 15:22:08
|
Hi, I'm wondering about using CSS transition effects for things like a value change for an output, toggling in switch/case. Has anyone got anything working that I can copy please? Best wishes Mark |
From: Stephen C. <ste...@gm...> - 2012-06-14 09:52:39
|
---------- Forwarded message ---------- From: Stephen Cameron <ste...@gm...> Date: Thu, Jun 14, 2012 at 7:49 PM Subject: Re: [Xsltforms-support] Xsltforms-support Digest, Vol 37, Issue 3 To: srividhya <n.s...@ni...> Cc: Alain Couthures <ala...@ag...> Hi Vidhya There seem to be minimal web servers about 4KB in size that can be used e.g SimpleWebServer.jar but this starts up on port 80 and if that port is in use then it won't start!, a bit unreliable I think. so forgetting the minimal web-server otpion, I think if you can find a way to start the default browser by the user clicking a jar file, then you might have some success with what I am suggesting. One really crazy idea is to build the whole XForm from inside an applet, so the applet itself contains everything needed (html,css,javascript) and it builds the XForm around itself. This should be possible via DOM scripting. If this is technically feasible it should be possible to create an XForm packager exe that takes all the files needed (XForm (transformed to HTML using xsltforms.xsl), css, Javascript) and builds the 'Applet Packaged XForm' (APX) for you. Interesting idea at least. Steve On Thu, Jun 14, 2012 at 7:16 PM, srividhya <n.s...@ni...> wrote: > thanks for the quick reply Stephen.. > The client have the java in their machine. Tell me any suggestions for the > tools to use to make a bundle as .exe or .jar. > I will try this. > Also previously we have bundled one application which is running on > existdb defaultly it is running on jetty server. > how i create the bundle ie. .exe and .jar is: > 1. developed the application with xquery and xforms and upload into the > existdb. > 2. using the IZpack i bundleld > 3. finally it will create the .exe file and .jar file.so if i click the > .exe file means http://myapp/index.xhmtl will open in the browser > > so,Now in this case, xsltforms is not running under any server. Its going > to be run from the localmachine itself. ok. > here what i want if i click the .exe file means for ex. in browser it has > to open like this.. > file://home/desktop/index.xhtml. > > now can you understand what i trying to say? > > > thanks, > vidhya > > On 06/14/12, *Stephen Cameron * <ste...@gm...> wrote: > > I assume you mean that in the past you bundled exist database server jars > into the exe/jar? > > Not exactly sure how, but I can offer the following suggestions. > You need to package it, as you say, into a single file, if you can assume > they have Java installed then an executable jar will work (or make use of > webstart perhaps). > The jar is just a zip file with a manifest file that identifies a main > class which will start when the user clicks the jar. > Just this is no good as everything the browser needs is inside the jar > (xforms, css,java_script), so the main class has to extract everything into > a temp folder, this is not a problem as it will do it each time. It then > has to start the browser, possibly by executing a batch file that you have > just also extracted, and pass a URL to the browser, which I'm assuming you > can do on the command-line. > > I don't know if this will work as I've never tried it, but it might. > To save the form locally you'll need an applet anyway, I think this exists > in XSLTForms already, but you will have to extend that to make it save into > your jar(zip archive). > You can repackage existing jars into one single jar, there is a tool to do > this. > > Alternately I think Java Webstart (if its allowed to be used) might be > another alternative, this might provide an easier way to start the default > browser perhaps? > > The small web-server idea was something from William Velasquez that he put > out to the XSLTForms mailing list. > > I don't have much time to work on this now but maybe next week, if you > don't get it working yourself, I can try to help you. > > I did propose that this problem be looked at by the XForms working group > but perhaps they don't see it as part of their mandate, but its an > important issue when you are trying to compete with other things like PDF > forms. > > On Thu, Jun 14, 2012 at 5:02 PM, srividhya <n.s...@ni...> wrote: > >> Hi Stephen!!! >> Thanks for the reply!!!!!!!!! and also you are interested .... >> Actually my application is a offline application and it contains a >> single form(embed css, schema, etc..) and a xsltforms folder. Now i want >> issue to the client. how to give as a folder if i give like this means they >> can able to change the form. They may use windows or linux machine. so for >> that i want to give as a .exe file or .jar file . for one click the >> application has to open in the browser and after filling the form , the >> ouput will be saved as xml file. >> >> Previously we bundled the application in existdb (also offline) using >> IZpack. and we make the application as .exe and .jar. but now we have only >> xsltforms folder and a single xhmtl form. so guide me how to do.... >> >> thanks, >> vidhya >> >> >> >> >> On 06/14/12, *Stephen Cameron * <ste...@gm...> wrote: >> >> Hi vidhya >> >> Is an executable jar file going to work for you here? >> I am interested in this problem too, my thoughts are that you need the >> main class in the jar to: >> 1) Extract XML resources from the jar to a folder. >> 2) Start the default browser with the link to the just extracted main >> XForm. >> There was some talk of a micro Java web-server implementation that could >> work in this scenario as well. >> I'm interested to hear what results you have. >> >> On Wed, Jun 13, 2012 at 3:19 PM, srividhya <n.s...@ni...> wrote: >> >>> Hi all!!! >>> Hai i have developed the application using xsltforms in offline >>> mode. In terms of security concern, we can't able to give the application >>> as folder(ie. with xsltforms folder and forms). so, i need your help >>> regarding how to package as the .exe file or .jar file. If anybody have a >>> idea help me... >>> Awaiting for the reply... >>> >>> thanks, >>> vidhya. >>> >>> On 06/12/12, xsl...@li... wrote: >>> >>> Send Xsltforms-support mailing list submissions to >>> xsl...@li... >>> >>> To subscribe or unsubscribe via the World Wide Web, visit >>> https://lists.sourceforge.net/lists/listinfo/xsltforms-support >>> or, via email, send a message with subject or body 'help' to >>> xsl...@li... >>> >>> You can reach the person managing the list at >>> xsl...@li... >>> >>> When replying, please edit your Subject line so it is more specific >>> than "Re: Contents of Xsltforms-support digest..." >>> >>> >>> Today's Topics: >>> >>> 1. Re: Xsltforms-support Digest, Vol 36, Issue 6 (srividhya) >>> 2. fix: XsltForms_browser.getNil() returns true when @xsi:nil is >>> specified as 'false' (Adam McKee) >>> 3. A blank space renders in place of my nested group should >>> appear (Ihe Onwuka) >>> 4. browser incompatibilities. CSS labels and hints not showing . >>> (Ihe Onwuka) >>> 5. Problem with upload in IE8 without Java installed (it is not >>> clear to user that Java is needed) (Javier D?az) >>> >>> >>> ---------------------------------------------------------------------- >>> >>> Message: 1 >>> Date: Thu, 07 Jun 2012 10:44:05 +0530 >>> From: srividhya <n.s...@ni...> >>> Subject: Re: [Xsltforms-support] Xsltforms-support Digest, Vol 36, >>> Issue 6 >>> To: Alain Couthures <ala...@ag...> >>> Cc: xsl...@li... >>> Message-ID: <fb9...@ni...> >>> Content-Type: text/plain; charset="iso-8859-1" >>> >>> Hi Alain, >>> I have one query regarding the saving the xsltforms output in the same >>> directory of the application residing. >>> >>> I have designed a offline application using xsltforms, which is saving >>> the form value in any of the directory which user wants , but i want to >>> save the output of the form in root directory of the application . Is it >>> possible ? If yes, means how to do? >>> Awaiting of the reply. >>> >>> -- >>> Srividhya >>> >>> >>> On 05/30/12, Alain Couthures <ala...@ag...> wrote: >>> > Hi Sree, >>> > >>> > You should have a look at this example: >>> http://www.agencexml.com/xsltforms/address.xml >>> > >>> > xf:itext support is not inherited from XForms Specification but from >>> JavaRosa implementation. >>> > >>> > Thank you for your feedbacks! >>> > >>> > -Alain >>> > >>> > Le 28/05/2012 12:06, srividhya a ?crit : >>> > >Hi All!!!!! >>> > > >>> > > I want to know about the international support in xsltforms. for >>> example i have a field called "Name" in that the user has to enter either >>> in english or hindi. How to do that one? any sample code is there means >>> greatly help. >>> > > >>> > >with thanks, >>> > >sree >>> > > >>> > >>> > >>> > >>> -- >>> With thanks and Regards, >>> N.Srividhya(RS-I) >>> O.T.C, N.I.C, >>> Chennai. >>> -------------- next part -------------- >>> An HTML attachment was scrubbed... >>> >>> ------------------------------ >>> >>> Message: 2 >>> Date: Thu, 7 Jun 2012 20:06:56 -0600 >>> From: Adam McKee <Ada...@gm...> >>> Subject: [Xsltforms-support] fix: XsltForms_browser.getNil() returns >>> true when @xsi:nil is specified as 'false' >>> To: Xsl...@li... >>> Message-ID: >>> <CAERL=Xz=OZi...@ma...> >>> Content-Type: text/plain; charset="utf-8" >>> >>> Hi Alain and everyone :) >>> >>> I've spent some time integrating my software with XSLTForms, and I feel >>> this has been a good use of time. I had integrated with EMC Formula >>> before, but XSLTForms seems to have all the XForms-y goodness that I >>> require, with a nice open source license. I really appreciate this >>> project. >>> >>> I've hardly got my feet wet with xsltforms.js, but I was able to find out >>> why values in my form were marked as invalid even though they were valid. >>> >>> If @*xsi:nil* is given as 'false', *XsltForms_browser.getNil()* will >>> return >>> true, because *XsltForms_globals.booleanValue('false')* returns true >>> because 'false' is a string with length > 0. >>> >>> This new version of *XsltForms_browser.getNil()* behaves the same as >>> before, except that it returns false if @*xsi:nil* is given as 'false': >>> >>> XsltForms_browser.getNil = function(node) { >>> if (node.nodeType !== XsltForms_nodeType.ELEMENT) return false; >>> var att; >>> if (node.getAttributeNS) { >>> att = node.getAttributeNS(" >>> http://www.w3.org/2001/XMLSchema-instance", >>> "nil"); >>> } else { >>> att = node.selectSingleNode("@*[local-name()='nil' and >>> namespace-uri()='http://www.w3.org/2001/XMLSchema-instance']"); >>> if (!att || (att.value === "")) return false; >>> att = att.value; >>> } >>> return XsltForms_globals.booleanValue(att) && (att !== "false"); >>> }; >>> >>> The context for this is that I use @xsi:nil to make it clear which >>> elements >>> have values which do not, which is helpful to me in the context of forms >>> processing. It's simpler to just include all the elements which may have >>> values, and specifying @xsi:nil='true' means it's clear there's no value, >>> even though the element is present. One would not typically specify >>> @xsi:nil='false', but it's valid to do so, and in this context of working >>> with forms, I find it helpful for values which may *become* nil. >>> >>> @xsi:nil is just a static attribute in a document, but it comes alive >>> quite >>> easily in XForms with this bind: >>> >>> <xf:bind nodeset='//@xsi:nil' calculate="if(..='', 'true', 'false')"/> >>> >>> >>> The bind obviously does not work if you want to have an element be empty >>> and not nil, but I'm OK with not handling that case right now. >>> >>> I had trouble getting the bind to work, until I realized the problem was >>> Firefox-specific and I found this page: >>> >>> http://en.wikibooks.org/wiki/XSLTForms/Known_Restrictions >>> >>> >>> so I specify @xsi:nil='false' on the root html element and now all is >>> well >>> on Firefox :) >>> >>> Something else: it seems that xs:pattern regex can't include a >>> forward-slash unless I backslash-escape it (which causes validation of >>> the >>> schema itself to fail), or I can put it in a character set by itself: >>> "[/]" >>> (which is a good workaround) >>> >>> For example: >>> >>> <xs:simpleType name="fraction"> >>> <xs:restriction base="xs:string"> >>> <!--<xs:pattern value="[0-9]+/[0-9]+"/>--> >>> <xs:pattern value="[0-9]+[/][0-9]+"/> >>> </xs:restriction> >>> </xs:simpleType> >>> >>> >>> It's easy to work around once I found it, but I wanted to mention it. >>> >>> /Adam >>> -------------- next part -------------- >>> An HTML attachment was scrubbed... >>> >>> ------------------------------ >>> >>> Message: 3 >>> Date: Fri, 8 Jun 2012 08:00:00 +0100 >>> From: Ihe Onwuka <ihe...@go...> >>> Subject: [Xsltforms-support] A blank space renders in place of my >>> nested group should appear >>> To: xsl...@li... >>> Message-ID: >>> <CAL...@ma...> >>> Content-Type: text/plain; charset=ISO-8859-1 >>> >>> My problem is that in the view all the fields for address render as >>> blank - that is there is a placeholder where they should appear but it >>> is blank - as below. >>> >>> Clients: >>> Client Name:* >>> >>> Address: >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> E-Mail: >>> >>> Phone: >>> >>> Comments: >>> >>> Here is the instance >>> >>> <Client xmlns="http://www.b2b.net/plants"> >>> <Name/> >>> <Address> >>> <BuildingName/> >>> <Street/> >>> <City/> >>> <County/> >>> <Postcode/> >>> </Address> >>> <EmailAddress/> >>> <Phone/> >>> <Comments/> >>> </Client> >>> >>> Here is my model for the instance >>> >>> <xf:model xmlns:xf="http://www.w3.org/2002/xforms" >>> id="clientModel"> >>> <xf:instance src="data/client.xml"/> >>> <xf:bind id="clientName" nodeset="b2b:Name" >>> type="xsd:string" required="true()"/> >>> <xf:bind id="clientBuildingName" >>> nodeset="b2b:BuildingName" type="xsd:string"/> >>> <xf:bind id="clientStreet" nodeset="b2b:Street" >>> type="xsd:string"/> >>> <xf:bind id="clientCity" nodeset="b2b:City" >>> type="xsd:string"/> >>> <xf:bind id="clientCounty" nodeset="b2b:County" >>> type="xsd:string"/> >>> <xf:bind id="clientPostcode" nodeset="b2b:Postcode" >>> type="xsd:string"/> >>> <xf:bind id="clientEmailAddress" >>> nodeset="b2b:EmailAddress" type="xsd:string"/> >>> <xf:bind id="clientPhone" nodeset="b2b:Phone" >>> type="xsd:string"/> >>> <xf:bind id="clientComments" nodeset="b2b:Comments" >>> type="xsd:string"/> >>> <xf:submission id="submitClient" method="Post" >>> action="save-new.xq"/> >>> </xf:model> >>> >>> Here is the view..... it is a case within xf:switch >>> >>> Note the following >>> 1. I have edited out the labels and hints to reduce the clutter. >>> 2. The ref on the group has an absolute address - however the problem >>> still shows when the address is relative as in group ref=b2b:Address >>> >>> <case id="clientCase"> >>> <group ref="/b2b:Client" model="clientModel"> >>> <xf:input xmlns:xf="http://www.w3.org/2002/xforms" >>> bind="clientName"> >>> </xf:input> >>> <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> >>> <group ref="/b2b:Client/b2b:Address" >>> model="clientModel"> >>> <xf:input >>> xmlns:xf="http://www.w3.org/2002/xforms" bind="clientBuildingName"> >>> </xf:input> >>> <html:br xmlns:html=" >>> http://www.w3.org/1999/xhtml"/> >>> <xf:input >>> xmlns:xf="http://www.w3.org/2002/xforms" bind="clientStreet"> >>> </xf:input> >>> <html:br xmlns:html=" >>> http://www.w3.org/1999/xhtml"/> >>> <xf:input >>> xmlns:xf="http://www.w3.org/2002/xforms" bind="clientCity"></xf:input> >>> <html:br xmlns:html=" >>> http://www.w3.org/1999/xhtml"/> >>> <xf:input >>> xmlns:xf="http://www.w3.org/2002/xforms" >>> bind="clientCounty"></xf:input> >>> <html:br xmlns:html=" >>> http://www.w3.org/1999/xhtml"/> >>> <xf:input >>> xmlns:xf="http://www.w3.org/2002/xforms" >>> bind="clientPostcode"></xf:input> >>> <html:br xmlns:html=" >>> http://www.w3.org/1999/xhtml"/> >>> </group> >>> <xf:input xmlns:xf="http://www.w3.org/2002/xforms" >>> bind="clientEmailAddress"> >>> </xf:input> >>> <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> >>> <xf:input xmlns:xf="http://www.w3.org/2002/xforms" >>> bind="clientPhone"> >>> </xf:input> >>> <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> >>> <xf:input xmlns:xf="http://www.w3.org/2002/xforms" >>> bind="clientComments"> >>> </xf:input> >>> <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> >>> </group> >>> <xf:submit xmlns:xf="http://www.w3.org/2002/xforms" >>> submission="submitClient"> >>> <xf:label>Save</xf:label> >>> </xf:submit> >>> </case> >>> >>> >>> >>> ------------------------------ >>> >>> Message: 4 >>> Date: Mon, 11 Jun 2012 11:34:30 +0100 >>> From: Ihe Onwuka <ihe...@go...> >>> Subject: [Xsltforms-support] browser incompatibilities. CSS labels and >>> hints not showing . >>> To: xsl...@li... >>> Message-ID: >>> <CAL...@ma...> >>> Content-Type: text/plain; charset=ISO-8859-1 >>> >>> I have been switching chrome and firefox. >>> >>> Chrome >>> My labels and hints show up on chrome but the my fieldset and legend >>> tags do not work. Takes forever for browser to render the the XForm >>> (minutes). >>> >>> Firefox >>> Fieldset and legend tags work but labels and hints don't display ..... >>> slow to render but not nearly as slow as chrome and >>> >>> I am running on ubuntu 12.4 >>> >>> >>> >>> ------------------------------ >>> >>> Message: 5 >>> Date: Tue, 12 Jun 2012 20:18:20 +0200 >>> From: Javier D?az <jd...@tc...> >>> Subject: [Xsltforms-support] Problem with upload in IE8 without Java >>> installed (it is not clear to user that Java is needed) >>> To: XSLTForms support <xsl...@li...> >>> Message-ID: <4FD...@tc...> >>> Content-Type: text/plain; charset="iso-8859-1" >>> >>> Hello, >>> >>> In order to test my web with IE, I installed a virtual machine to test >>> it. >>> >>> When testing upload control, it didn't work, it didn't load the applet, >>> but no error message appeared. >>> >>> Another person tested it and I realized I hadn't java installed in my >>> virtual machine. >>> >>> The only problem with IE8 and Java is that it doesn't appear a clear >>> error that says to you that you need Java to use the web. Instead, it >>> appear ajava_script error in IE that people don't pay attention to it. >>> >>> >>> I have done this change in my xsltforms version in order to make clear >>> that Java is not installed: >>> >>> >>> if (document.applets.xsltforms) { >>> return document.applets.xsltforms.readFile(fname, >>> encoding, xsdtype, title) || ""; >>> } else { >>> - if( document.getElementById("xsltforms_applet") ) { >>> + if( document.getElementById("xsltforms_applet") && >>> (typeof document.getElementById("xsltforms_applet").readFile != >>> 'undefined')) { >>> return >>> document.getElementById("xsltforms_applet").readFile(fname, encoding, >>> xsdtype, title) || ""; >>> } else { >>> XsltForms_browser.loadapplet(); >>> if (document.applets.xsltforms) { >>> return >>> document.applets.xsltforms.readFile(fname, encoding, xsdtype, title) || >>> ""; >>> } else { >>> - if( >>> document.getElementById("xsltforms_applet") ) { >>> + if( >>> document.getElementById("xsltforms_applet") && (typeof >>> document.getElementById("xsltforms_applet").readFile != 'undefined')) { >>> return >>> document.getElementById("xsltforms_applet").readFile(fname, encoding, >>> xsdtype, title) || ""; >>> + } else { >>> + alert("Error: Java no est? >>> habilitado. Es necesario Java para subir ficheros en Internet Explorer"); >>> } >>> } >>> } >>> >>> (Alert message is intentionally in Spanish, because is an internal web) >>> >>> I hope it is useful to anybody. >>> >>> Best Regards, >>> Javier >>> >>> PS: >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> ************************************************************************************************************************************************ >>> *La informaci?n contenida en este mensaje de correo electr?nico es >>> confidencial y puede revestir el car?cter de reservada. * >>> *Est? dirigida exclusivamente a la persona >>> destinataria. >>> * >>> *El acceso o cualquier uso por parte de cualquier otra persona de este >>> mensaje no est?n autorizados y pueden ser ilegales.* >>> *Si no es Ud. la persona destinataria, le rogamos que proceda a >>> borrarlo. >>> * >>> *The information in this e-mail is confidential and may be legally >>> privileged. >>> * >>> *It is intended solely for the >>> addressee. >>> * >>> *Access or any use by any other person to this Internet e-mail is not >>> authorised and may be unlawful. * >>> *If you are not the intended recipient, please delete this >>> e-mail. >>> * >>> >>> ************************************************************************************************************************************************ >>> >>> -------------- next part -------------- >>> A non-text attachment was scrubbed... >>> Name: jdiaz.vcf >>> Type: text/x-vcard >>> Size: 397 bytes >>> Desc: not available >>> >>> ------------------------------ >>> >>> >>> ------------------------------------------------------------------------------ >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. >>> Discussions >>> will include endpoint security, mobile security and the latest in >>> malware >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> >>> ------------------------------ >>> >>> _______________________________________________ >>> Xsltforms-support mailing list >>> Xsl...@li... >>> https://lists.sourceforge.net/lists/listinfo/xsltforms-support >>> >>> >>> End of Xsltforms-support Digest, Vol 37, Issue 3 >>> ************************************************ >>> >>> -- >>> With thanks and Regards, >>> N.Srividhya(RS-I) >>> O.T.C, N.I.C, >>> Chennai. >>> >>> ------------------------------------------------------------------------------ >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. Discussions >>> will include endpoint security, mobile security and the latest in malware >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> _______________________________________________ >>> Xsltforms-support mailing list >>> Xsl...@li... >>> https://lists.sourceforge.net/lists/listinfo/xsltforms-support >>> >>> >> -- >> With thanks and Regards, >> N.Srividhya(RS-I) >> O.T.C, N.I.C, >> Chennai. >> > > -- > With thanks and Regards, > N.Srividhya(RS-I) > O.T.C, N.I.C, > Chennai. > |
From: Alain C. <ala...@ag...> - 2012-06-13 20:46:29
|
Hello Javier, This is not allowed to modify the value of an input with type="file". There is a possible workaround with z-index and another input field (http://www.quirksmode.org/dom/inputfile.html). Is it what you want? Thanks! -Alain Le 13/06/2012 11:36, Javier Díaz a écrit : > Hello, > > I have tested upload control with applet in Explorer and it works > great, but people complain that when any file is selected, in contrast > of FileRead API version, it doesn't appear the file name of uploaded > file in upload control and it seems no file has been chosen yet. > > I have tried to fix it but I couldn't. Is it posible to make it work > or at least put an xxxx in upload control to make clear that some file > has been chosen? > > Many thanks, > Javier > > El 12/06/12 20:18, Javier Díaz escribió: >> Hello, >> >> In order to test my web with IE, I installed a virtual machine to test it. >> >> When testing upload control, it didn't work, it didn't load the applet, >> but no error message appeared. >> >> Another person tested it and I realized I hadn't java installed in my >> virtual machine. >> >> The only problem with IE8 and Java is that it doesn't appear a clear >> error that says to you that you need Java to use the web. Instead, it >> appear a javascript error in IE that people don't pay attention to it. >> >> I have done this change in my xsltforms version in order to make clear >> that Java is not installed: >> >> >> if (document.applets.xsltforms) { >> return document.applets.xsltforms.readFile(fname, >> encoding, xsdtype, title) || ""; >> } else { >> - if( document.getElementById("xsltforms_applet") ) { >> + if( document.getElementById("xsltforms_applet")&& >> (typeof document.getElementById("xsltforms_applet").readFile != >> 'undefined')) { >> return >> document.getElementById("xsltforms_applet").readFile(fname, encoding, >> xsdtype, title) || ""; >> } else { >> XsltForms_browser.loadapplet(); >> if (document.applets.xsltforms) { >> return >> document.applets.xsltforms.readFile(fname, encoding, xsdtype, title) || ""; >> } else { >> - if( >> document.getElementById("xsltforms_applet") ) { >> + if( >> document.getElementById("xsltforms_applet")&& (typeof >> document.getElementById("xsltforms_applet").readFile != 'undefined')) { >> return >> document.getElementById("xsltforms_applet").readFile(fname, encoding, >> xsdtype, title) || ""; >> + } else { >> + alert("Error: Java no está >> habilitado. Es necesario Java para subir ficheros en Internet Explorer"); >> } >> } >> } >> >> (Alert message is intentionally in Spanish, because is an internal web) >> >> I hope it is useful to anybody. >> >> Best Regards, >> Javier >> >> PS: >> |
From: srividhya <n.s...@ni...> - 2012-06-13 05:21:36
|
Hi all!!! Hai i have developed the application using xsltforms in offline mode. In terms of security concern, we can't able to give the application as folder(ie. with xsltforms folder and forms). so, i need your help regarding how to package as the .exe file or .jar file. If anybody have a idea help me... Awaiting for the reply... thanks, vidhya. On 06/12/12, xsl...@li... wrote: > Send Xsltforms-support mailing list submissions to > xsl...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > or, via email, send a message with subject or body 'help' to > xsl...@li... > > You can reach the person managing the list at > xsl...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Xsltforms-support digest..." > > > Today's Topics: > > 1. Re: Xsltforms-support Digest, Vol 36, Issue 6 (srividhya) > 2. fix: XsltForms_browser.getNil() returns true when @xsi:nil is > specified as 'false' (Adam McKee) > 3. A blank space renders in place of my nested group should > appear (Ihe Onwuka) > 4. browser incompatibilities. CSS labels and hints not showing . > (Ihe Onwuka) > 5. Problem with upload in IE8 without Java installed (it is not > clear to user that Java is needed) (Javier D?az) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 07 Jun 2012 10:44:05 +0530 > From: srividhya <n.s...@ni...> > Subject: Re: [Xsltforms-support] Xsltforms-support Digest, Vol 36, > Issue 6 > To: Alain Couthures <ala...@ag...> > Cc: xsl...@li... > Message-ID: <fb9...@ni...> > Content-Type: text/plain; charset="iso-8859-1" > > Hi Alain, > I have one query regarding the saving the xsltforms output in the same directory of the application residing. > > I have designed a offline application using xsltforms, which is saving the form value in any of the directory which user wants , but i want to save the output of the form in root directory of the application . Is it possible ? If yes, means how to do? > Awaiting of the reply. > > -- > Srividhya > > > On 05/30/12, Alain Couthures <ala...@ag...> wrote: > > Hi Sree, > > > > You should have a look at this example: http://www.agencexml.com/xsltforms/address.xml > > > > xf:itext support is not inherited from XForms Specification but from JavaRosa implementation. > > > > Thank you for your feedbacks! > > > > -Alain > > > > Le 28/05/2012 12:06, srividhya a ?crit : > > >Hi All!!!!! > > > > > > I want to know about the international support in xsltforms. for example i have a field called "Name" in that the user has to enter either in english or hindi. How to do that one? any sample code is there means greatly help. > > > > > >with thanks, > > >sree > > > > > > > > > > -- > With thanks and Regards, > N.Srividhya(RS-I) > O.T.C, N.I.C, > Chennai. > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 2 > Date: Thu, 7 Jun 2012 20:06:56 -0600 > From: Adam McKee <Ada...@gm...> > Subject: [Xsltforms-support] fix: XsltForms_browser.getNil() returns > true when @xsi:nil is specified as 'false' > To: Xsl...@li... > Message-ID: > <CAERL=Xz=OZi...@ma...> > Content-Type: text/plain; charset="utf-8" > > Hi Alain and everyone :) > > I've spent some time integrating my software with XSLTForms, and I feel > this has been a good use of time. I had integrated with EMC Formula > before, but XSLTForms seems to have all the XForms-y goodness that I > require, with a nice open source license. I really appreciate this project. > > I've hardly got my feet wet with xsltforms.js, but I was able to find out > why values in my form were marked as invalid even though they were valid. > > If @*xsi:nil* is given as 'false', *XsltForms_browser.getNil()* will return > true, because *XsltForms_globals.booleanValue('false')* returns true > because 'false' is a string with length > 0. > > This new version of *XsltForms_browser.getNil()* behaves the same as > before, except that it returns false if @*xsi:nil* is given as 'false': > > XsltForms_browser.getNil = function(node) { > if (node.nodeType !== XsltForms_nodeType.ELEMENT) return false; > var att; > if (node.getAttributeNS) { > att = node.getAttributeNS("http://www.w3.org/2001/XMLSchema-instance", > "nil"); > } else { > att = node.selectSingleNode("@*[local-name()='nil' and > namespace-uri()='http://www.w3.org/2001/XMLSchema-instance'(http://www.w3.org/2001/XMLSchema-instance)]"); > if (!att || (att.value === "")) return false; > att = att.value; > } > return XsltForms_globals.booleanValue(att) && (att !== "false"); > }; > > The context for this is that I use @xsi:nil to make it clear which elements > have values which do not, which is helpful to me in the context of forms > processing. It's simpler to just include all the elements which may have > values, and specifying @xsi:nil='true' means it's clear there's no value, > even though the element is present. One would not typically specify > @xsi:nil='false', but it's valid to do so, and in this context of working > with forms, I find it helpful for values which may *become* nil. > > @xsi:nil is just a static attribute in a document, but it comes alive quite > easily in XForms with this bind: > > <xf:bind nodeset='//@xsi:nil' calculate="if(..='', 'true', 'false')"/> > > > The bind obviously does not work if you want to have an element be empty > and not nil, but I'm OK with not handling that case right now. > > I had trouble getting the bind to work, until I realized the problem was > Firefox-specific and I found this page: > > http://en.wikibooks.org/wiki/XSLTForms/Known_Restrictions > > > so I specify @xsi:nil='false' on the root html element and now all is well > on Firefox :) > > Something else: it seems that xs:pattern regex can't include a > forward-slash unless I backslash-escape it (which causes validation of the > schema itself to fail), or I can put it in a character set by itself: "[/]" > (which is a good workaround) > > For example: > > <xs:simpleType name="fraction"> > <xs:restriction base="xs:string"> > <!--<xs:pattern value="[0-9]+/[0-9]+"/>--> > <xs:pattern value="[0-9]+[/][0-9]+"/> > </xs:restriction> > </xs:simpleType> > > > It's easy to work around once I found it, but I wanted to mention it. > > /Adam > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 3 > Date: Fri, 8 Jun 2012 08:00:00 +0100 > From: Ihe Onwuka <ihe...@go...> > Subject: [Xsltforms-support] A blank space renders in place of my > nested group should appear > To: xsl...@li... > Message-ID: > <CAL...@ma...> > Content-Type: text/plain; charset=ISO-8859-1 > > My problem is that in the view all the fields for address render as > blank - that is there is a placeholder where they should appear but it > is blank - as below. > > Clients: > Client Name:* > > Address: > > > > > > > > > > > E-Mail: > > Phone: > > Comments: > > Here is the instance > > <Client xmlns="http://www.b2b.net/plants"> > <Name/> > <Address> > <BuildingName/> > <Street/> > <City/> > <County/> > <Postcode/> > </Address> > <EmailAddress/> > <Phone/> > <Comments/> > </Client> > > Here is my model for the instance > > <xf:model xmlns:xf="http://www.w3.org/2002/xforms" id="clientModel"> > <xf:instance src="data/client.xml"/> > <xf:bind id="clientName" nodeset="b2b:Name" > type="xsd:string" required="true()"/> > <xf:bind id="clientBuildingName" > nodeset="b2b:BuildingName" type="xsd:string"/> > <xf:bind id="clientStreet" nodeset="b2b:Street" type="xsd:string"/> > <xf:bind id="clientCity" nodeset="b2b:City" type="xsd:string"/> > <xf:bind id="clientCounty" nodeset="b2b:County" type="xsd:string"/> > <xf:bind id="clientPostcode" nodeset="b2b:Postcode" > type="xsd:string"/> > <xf:bind id="clientEmailAddress" > nodeset="b2b:EmailAddress" type="xsd:string"/> > <xf:bind id="clientPhone" nodeset="b2b:Phone" type="xsd:string"/> > <xf:bind id="clientComments" nodeset="b2b:Comments" > type="xsd:string"/> > <xf:submission id="submitClient" method="Post" > action="save-new.xq"/> > </xf:model> > > Here is the view..... it is a case within xf:switch > > Note the following > 1. I have edited out the labels and hints to reduce the clutter. > 2. The ref on the group has an absolute address - however the problem > still shows when the address is relative as in group ref=b2b:Address > > <case id="clientCase"> > <group ref="/b2b:Client" model="clientModel"> > <xf:input xmlns:xf="http://www.w3.org/2002/xforms" > bind="clientName"> > </xf:input> > <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> > <group ref="/b2b:Client/b2b:Address" model="clientModel"> > <xf:input > xmlns:xf="http://www.w3.org/2002/xforms" bind="clientBuildingName"> > </xf:input> > <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> > <xf:input > xmlns:xf="http://www.w3.org/2002/xforms" bind="clientStreet"> > </xf:input> > <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> > <xf:input > xmlns:xf="http://www.w3.org/2002/xforms" bind="clientCity"></xf:input> > <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> > <xf:input > xmlns:xf="http://www.w3.org/2002/xforms" > bind="clientCounty"></xf:input> > <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> > <xf:input > xmlns:xf="http://www.w3.org/2002/xforms" > bind="clientPostcode"></xf:input> > <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> > </group> > <xf:input xmlns:xf="http://www.w3.org/2002/xforms" > bind="clientEmailAddress"> > </xf:input> > <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> > <xf:input xmlns:xf="http://www.w3.org/2002/xforms" > bind="clientPhone"> > </xf:input> > <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> > <xf:input xmlns:xf="http://www.w3.org/2002/xforms" > bind="clientComments"> > </xf:input> > <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> > </group> > <xf:submit xmlns:xf="http://www.w3.org/2002/xforms" > submission="submitClient"> > <xf:label>Save</xf:label> > </xf:submit> > </case> > > > > ------------------------------ > > Message: 4 > Date: Mon, 11 Jun 2012 11:34:30 +0100 > From: Ihe Onwuka <ihe...@go...> > Subject: [Xsltforms-support] browser incompatibilities. CSS labels and > hints not showing . > To: xsl...@li... > Message-ID: > <CAL...@ma...> > Content-Type: text/plain; charset=ISO-8859-1 > > I have been switching chrome and firefox. > > Chrome > My labels and hints show up on chrome but the my fieldset and legend > tags do not work. Takes forever for browser to render the the XForm > (minutes). > > Firefox > Fieldset and legend tags work but labels and hints don't display ..... > slow to render but not nearly as slow as chrome and > > I am running on ubuntu 12.4 > > > > ------------------------------ > > Message: 5 > Date: Tue, 12 Jun 2012 20:18:20 +0200 > From: Javier D?az <jd...@tc...> > Subject: [Xsltforms-support] Problem with upload in IE8 without Java > installed (it is not clear to user that Java is needed) > To: XSLTForms support <xsl...@li...> > Message-ID: <4FD...@tc...> > Content-Type: text/plain; charset="iso-8859-1" > > Hello, > > In order to test my web with IE, I installed a virtual machine to test it. > > When testing upload control, it didn't work, it didn't load the applet, > but no error message appeared. > > Another person tested it and I realized I hadn't java installed in my > virtual machine. > > The only problem with IE8 and Java is that it doesn't appear a clear > error that says to you that you need Java to use the web. Instead, it > appear a javascript error in IE that people don't pay attention to it. > > I have done this change in my xsltforms version in order to make clear > that Java is not installed: > > > if (document.applets.xsltforms) { > return document.applets.xsltforms.readFile(fname, > encoding, xsdtype, title) || ""; > } else { > - if( document.getElementById("xsltforms_applet") ) { > + if( document.getElementById("xsltforms_applet") && > (typeof document.getElementById("xsltforms_applet").readFile != > 'undefined')) { > return > document.getElementById("xsltforms_applet").readFile(fname, encoding, > xsdtype, title) || ""; > } else { > XsltForms_browser.loadapplet(); > if (document.applets.xsltforms) { > return > document.applets.xsltforms.readFile(fname, encoding, xsdtype, title) || ""; > } else { > - if( > document.getElementById("xsltforms_applet") ) { > + if( > document.getElementById("xsltforms_applet") && (typeof > document.getElementById("xsltforms_applet").readFile != 'undefined')) { > return > document.getElementById("xsltforms_applet").readFile(fname, encoding, > xsdtype, title) || ""; > + } else { > + alert("Error: Java no est? > habilitado. Es necesario Java para subir ficheros en Internet Explorer"); > } > } > } > > (Alert message is intentionally in Spanish, because is an internal web) > > I hope it is useful to anybody. > > Best Regards, > Javier > > PS: > > > > > > > > > > > > > > > > ************************************************************************************************************************************************ > *La informaci?n contenida en este mensaje de correo electr?nico es confidencial y puede revestir el car?cter de reservada. * > *Est? dirigida exclusivamente a la persona destinataria. * > *El acceso o cualquier uso por parte de cualquier otra persona de este mensaje no est?n autorizados y pueden ser ilegales.* > *Si no es Ud. la persona destinataria, le rogamos que proceda a borrarlo. * > *The information in this e-mail is confidential and may be legally privileged. * > *It is intended solely for the addressee. * > *Access or any use by any other person to this Internet e-mail is not authorised and may be unlawful. * > *If you are not the intended recipient, please delete this e-mail. * > ************************************************************************************************************************************************ > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: jdiaz.vcf > Type: text/x-vcard > Size: 397 bytes > Desc: not available > > ------------------------------ > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > ------------------------------ > > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > > End of Xsltforms-support Digest, Vol 37, Issue 3 > ************************************************ > > -- With thanks and Regards, N.Srividhya(RS-I) O.T.C, N.I.C, Chennai. |
From: Alain C. <ala...@ag...> - 2012-06-13 04:24:23
|
Hi Adam, About XsltForms_browser.getNil(), I know consider that return att !== "false" is enough and much better indeed... I also changed the way restrictions are transformed so the slash characters in them are escaped with a back-slash before. Those fixes will be committed as soon as possible. Thanks! -Alain Le 08/06/2012 04:06, Adam McKee a écrit : > Hi Alain and everyone :) > > I've spent some time integrating my software with XSLTForms, and I > feel this has been a good use of time. I had integrated with EMC > Formula before, but XSLTForms seems to have all the XForms-y goodness > that I require, with a nice open source license. I really appreciate > this project. > > I've hardly got my feet wet with xsltforms.js, but I was able to find > out why values in my form were marked as invalid even though they were > valid. > > If @*xsi:nil* is given as 'false', *XsltForms_browser.getNil()* will > return true, because *XsltForms_globals.booleanValue('false')* returns > true because 'false' is a string with length > 0. > > This new version of *XsltForms_browser.getNil()* behaves the same as > before, except that it returns false if @*xsi:nil* is given as 'false': > > XsltForms_browser.getNil = function(node) { > if (node.nodeType !== XsltForms_nodeType.ELEMENT) return false; > var att; > if (node.getAttributeNS) { > att = > node.getAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "nil"); > } else { > att = node.selectSingleNode("@*[local-name()='nil' and > namespace-uri()='http://www.w3.org/2001/XMLSchema-instance' > <http://www.w3.org/2001/XMLSchema-instance%27>]"); > if (!att || (att.value === "")) return false; > att = att.value; > } > return XsltForms_globals.booleanValue(att) && (att !== "false"); > }; > > The context for this is that I use @xsi:nil to make it clear which > elements have values which do not, which is helpful to me in the > context of forms processing. It's simpler to just include all the > elements which may have values, and specifying @xsi:nil='true' means > it's clear there's no value, even though the element is present. One > would not typically specify @xsi:nil='false', but it's valid to do so, > and in this context of working with forms, I find it helpful for > values which may /become/ nil. > > @xsi:nil is just a static attribute in a document, but it comes alive > quite easily in XForms with this bind: > > <xf:bind nodeset='//@xsi:nil' calculate="if(..='', 'true', 'false')"/> > > > The bind obviously does not work if you want to have an element be > empty and not nil, but I'm OK with not handling that case right now. > > I had trouble getting the bind to work, until I realized the problem > was Firefox-specific and I found this page: > > http://en.wikibooks.org/wiki/XSLTForms/Known_Restrictions > > > so I specify @xsi:nil='false' on the root html element and now all is > well on Firefox :) > > Something else: it seems that xs:pattern regex can't include a > forward-slash unless I backslash-escape it (which causes validation of > the schema itself to fail), or I can put it in a character set by > itself: "[/]" (which is a good workaround) > > For example: > > <xs:simpleType name="fraction"> > <xs:restriction base="xs:string"> > <!--<xs:pattern value="[0-9]+/[0-9]+"/>--> > <xs:pattern value="[0-9]+[/][0-9]+"/> > </xs:restriction> > </xs:simpleType> > > > It's easy to work around once I found it, but I wanted to mention it. > > /Adam > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support |
From: Javier D. <jd...@tc...> - 2012-06-12 18:21:34
|
Hello, In order to test my web with IE, I installed a virtual machine to test it. When testing upload control, it didn't work, it didn't load the applet, but no error message appeared. Another person tested it and I realized I hadn't java installed in my virtual machine. The only problem with IE8 and Java is that it doesn't appear a clear error that says to you that you need Java to use the web. Instead, it appear a javascript error in IE that people don't pay attention to it. I have done this change in my xsltforms version in order to make clear that Java is not installed: if (document.applets.xsltforms) { return document.applets.xsltforms.readFile(fname, encoding, xsdtype, title) || ""; } else { - if( document.getElementById("xsltforms_applet") ) { + if( document.getElementById("xsltforms_applet") && (typeof document.getElementById("xsltforms_applet").readFile != 'undefined')) { return document.getElementById("xsltforms_applet").readFile(fname, encoding, xsdtype, title) || ""; } else { XsltForms_browser.loadapplet(); if (document.applets.xsltforms) { return document.applets.xsltforms.readFile(fname, encoding, xsdtype, title) || ""; } else { - if( document.getElementById("xsltforms_applet") ) { + if( document.getElementById("xsltforms_applet") && (typeof document.getElementById("xsltforms_applet").readFile != 'undefined')) { return document.getElementById("xsltforms_applet").readFile(fname, encoding, xsdtype, title) || ""; + } else { + alert("Error: Java no está habilitado. Es necesario Java para subir ficheros en Internet Explorer"); } } } (Alert message is intentionally in Spanish, because is an internal web) I hope it is useful to anybody. Best Regards, Javier PS: ************************************************************************************************************************************************ *La información contenida en este mensaje de correo electrónico es confidencial y puede revestir el carácter de reservada. * *Está dirigida exclusivamente a la persona destinataria. * *El acceso o cualquier uso por parte de cualquier otra persona de este mensaje no están autorizados y pueden ser ilegales.* *Si no es Ud. la persona destinataria, le rogamos que proceda a borrarlo. * *The information in this e-mail is confidential and may be legally privileged. * *It is intended solely for the addressee. * *Access or any use by any other person to this Internet e-mail is not authorised and may be unlawful. * *If you are not the intended recipient, please delete this e-mail. * ************************************************************************************************************************************************ |
From: Ihe O. <ihe...@go...> - 2012-06-11 10:34:42
|
I have been switching chrome and firefox. Chrome My labels and hints show up on chrome but the my fieldset and legend tags do not work. Takes forever for browser to render the the XForm (minutes). Firefox Fieldset and legend tags work but labels and hints don't display ..... slow to render but not nearly as slow as chrome and I am running on ubuntu 12.4 |
From: Ihe O. <ihe...@go...> - 2012-06-08 07:00:08
|
My problem is that in the view all the fields for address render as blank - that is there is a placeholder where they should appear but it is blank - as below. Clients: Client Name:* Address: E-Mail: Phone: Comments: Here is the instance <Client xmlns="http://www.b2b.net/plants"> <Name/> <Address> <BuildingName/> <Street/> <City/> <County/> <Postcode/> </Address> <EmailAddress/> <Phone/> <Comments/> </Client> Here is my model for the instance <xf:model xmlns:xf="http://www.w3.org/2002/xforms" id="clientModel"> <xf:instance src="data/client.xml"/> <xf:bind id="clientName" nodeset="b2b:Name" type="xsd:string" required="true()"/> <xf:bind id="clientBuildingName" nodeset="b2b:BuildingName" type="xsd:string"/> <xf:bind id="clientStreet" nodeset="b2b:Street" type="xsd:string"/> <xf:bind id="clientCity" nodeset="b2b:City" type="xsd:string"/> <xf:bind id="clientCounty" nodeset="b2b:County" type="xsd:string"/> <xf:bind id="clientPostcode" nodeset="b2b:Postcode" type="xsd:string"/> <xf:bind id="clientEmailAddress" nodeset="b2b:EmailAddress" type="xsd:string"/> <xf:bind id="clientPhone" nodeset="b2b:Phone" type="xsd:string"/> <xf:bind id="clientComments" nodeset="b2b:Comments" type="xsd:string"/> <xf:submission id="submitClient" method="Post" action="save-new.xq"/> </xf:model> Here is the view..... it is a case within xf:switch Note the following 1. I have edited out the labels and hints to reduce the clutter. 2. The ref on the group has an absolute address - however the problem still shows when the address is relative as in group ref=b2b:Address <case id="clientCase"> <group ref="/b2b:Client" model="clientModel"> <xf:input xmlns:xf="http://www.w3.org/2002/xforms" bind="clientName"> </xf:input> <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> <group ref="/b2b:Client/b2b:Address" model="clientModel"> <xf:input xmlns:xf="http://www.w3.org/2002/xforms" bind="clientBuildingName"> </xf:input> <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> <xf:input xmlns:xf="http://www.w3.org/2002/xforms" bind="clientStreet"> </xf:input> <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> <xf:input xmlns:xf="http://www.w3.org/2002/xforms" bind="clientCity"></xf:input> <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> <xf:input xmlns:xf="http://www.w3.org/2002/xforms" bind="clientCounty"></xf:input> <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> <xf:input xmlns:xf="http://www.w3.org/2002/xforms" bind="clientPostcode"></xf:input> <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> </group> <xf:input xmlns:xf="http://www.w3.org/2002/xforms" bind="clientEmailAddress"> </xf:input> <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> <xf:input xmlns:xf="http://www.w3.org/2002/xforms" bind="clientPhone"> </xf:input> <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> <xf:input xmlns:xf="http://www.w3.org/2002/xforms" bind="clientComments"> </xf:input> <html:br xmlns:html="http://www.w3.org/1999/xhtml"/> </group> <xf:submit xmlns:xf="http://www.w3.org/2002/xforms" submission="submitClient"> <xf:label>Save</xf:label> </xf:submit> </case> |
From: Adam M. <Ada...@gm...> - 2012-06-08 02:07:03
|
Hi Alain and everyone :) I've spent some time integrating my software with XSLTForms, and I feel this has been a good use of time. I had integrated with EMC Formula before, but XSLTForms seems to have all the XForms-y goodness that I require, with a nice open source license. I really appreciate this project. I've hardly got my feet wet with xsltforms.js, but I was able to find out why values in my form were marked as invalid even though they were valid. If @*xsi:nil* is given as 'false', *XsltForms_browser.getNil()* will return true, because *XsltForms_globals.booleanValue('false')* returns true because 'false' is a string with length > 0. This new version of *XsltForms_browser.getNil()* behaves the same as before, except that it returns false if @*xsi:nil* is given as 'false': XsltForms_browser.getNil = function(node) { if (node.nodeType !== XsltForms_nodeType.ELEMENT) return false; var att; if (node.getAttributeNS) { att = node.getAttributeNS("http://www.w3.org/2001/XMLSchema-instance", "nil"); } else { att = node.selectSingleNode("@*[local-name()='nil' and namespace-uri()='http://www.w3.org/2001/XMLSchema-instance']"); if (!att || (att.value === "")) return false; att = att.value; } return XsltForms_globals.booleanValue(att) && (att !== "false"); }; The context for this is that I use @xsi:nil to make it clear which elements have values which do not, which is helpful to me in the context of forms processing. It's simpler to just include all the elements which may have values, and specifying @xsi:nil='true' means it's clear there's no value, even though the element is present. One would not typically specify @xsi:nil='false', but it's valid to do so, and in this context of working with forms, I find it helpful for values which may *become* nil. @xsi:nil is just a static attribute in a document, but it comes alive quite easily in XForms with this bind: <xf:bind nodeset='//@xsi:nil' calculate="if(..='', 'true', 'false')"/> The bind obviously does not work if you want to have an element be empty and not nil, but I'm OK with not handling that case right now. I had trouble getting the bind to work, until I realized the problem was Firefox-specific and I found this page: http://en.wikibooks.org/wiki/XSLTForms/Known_Restrictions so I specify @xsi:nil='false' on the root html element and now all is well on Firefox :) Something else: it seems that xs:pattern regex can't include a forward-slash unless I backslash-escape it (which causes validation of the schema itself to fail), or I can put it in a character set by itself: "[/]" (which is a good workaround) For example: <xs:simpleType name="fraction"> <xs:restriction base="xs:string"> <!--<xs:pattern value="[0-9]+/[0-9]+"/>--> <xs:pattern value="[0-9]+[/][0-9]+"/> </xs:restriction> </xs:simpleType> It's easy to work around once I found it, but I wanted to mention it. /Adam |
From: srividhya <n.s...@ni...> - 2012-06-07 05:23:45
|
Hi Alain, I have one query regarding the saving the xsltforms output in the same directory of the application residing. I have designed a offline application using xsltforms, which is saving the form value in any of the directory which user wants , but i want to save the output of the form in root directory of the application . Is it possible ? If yes, means how to do? Awaiting of the reply. -- Srividhya On 05/30/12, Alain Couthures <ala...@ag...> wrote: > Hi Sree, > > You should have a look at this example: http://www.agencexml.com/xsltforms/address.xml > > xf:itext support is not inherited from XForms Specification but from JavaRosa implementation. > > Thank you for your feedbacks! > > -Alain > > Le 28/05/2012 12:06, srividhya a écrit : > >Hi All!!!!! > > > > I want to know about the international support in xsltforms. for example i have a field called "Name" in that the user has to enter either in english or hindi. How to do that one? any sample code is there means greatly help. > > > >with thanks, > >sree > > > > > -- With thanks and Regards, N.Srividhya(RS-I) O.T.C, N.I.C, Chennai. |
From: Javier D. <jd...@tc...> - 2012-06-06 17:36:07
|
Hello, I have a problem with loading message while using XsltForms_globals.language != navigator (for example, "es"). When it is loading, internationalized message is loaded here: init : function() { XsltForms_browser.setValue(document.getElementById("statusPanel"), XsltForms_browser.i18n.get("status")); var b = XsltForms_browser.isXhtml ? document.getElementsByTagNameNS("http://www.w3.org/1999/xhtml", "body")[0] : document.getElementsByTagName("body")[0]; Inside "XsltForms_browser.i18n.get("status")" we have: if (XsltForms_globals.language === "navigator" || XsltForms_globals.language !== XsltForms_browser.selectSingleNodeText('language', XsltForms_browser.config)) { var lan = XsltForms_globals.language === "navigator" ? (navigator.language || navigator.userLanguage) : XsltForms_browser.selectSingleNodeText('language', XsltForms_browser.config); lan = lan.replace("-", "_").toLowerCase(); If "XsltForms_globals.language" equals "navigator", everything is OK, but when it is any other value, no language is retrieved because XsltForms_browser.config value is "dummy". Its content is loaded after, in this line at the end of init method: XsltForms_xmlevents.dispatchList(this.models, "xforms-model-construct"); Although it were loaded before, it would still fail because in config.xsl it says language value must be "navigator" or "default". I have done this change and it seems it is working: if (XsltForms_globals.language === "navigator" || XsltForms_globals.language !== XsltForms_browser.selectSingleNodeText('language', XsltForms_browser.config)) { - var lan = XsltForms_globals.language === "navigator" ? (navigator.language || navigator.userLanguage) : XsltForms_browser.selectSingleNodeText('language', XsltForms_browser.config); + var lan = XsltForms_globals.language === "navigator" ? (navigator.language || navigator.userLanguage) : XsltForms_globals.language; Best Regards, Javier ************************************************************************************************************************************************ *La información contenida en este mensaje de correo electrónico es confidencial y puede revestir el carácter de reservada. * *Está dirigida exclusivamente a la persona destinataria. * *El acceso o cualquier uso por parte de cualquier otra persona de este mensaje no están autorizados y pueden ser ilegales.* *Si no es Ud. la persona destinataria, le rogamos que proceda a borrarlo. * *The information in this e-mail is confidential and may be legally privileged. * *It is intended solely for the addressee. * *Access or any use by any other person to this Internet e-mail is not authorised and may be unlawful. * *If you are not the intended recipient, please delete this e-mail. * ************************************************************************************************************************************************ |
From: sores <so...@al...> - 2012-06-06 06:34:09
|
Hi All, @position and @at are used to place elements within a repeat. My problem is to place an empty repeat within the wider context. Regards, Laszlo On 06.06.2012 07:53, Santosh Chandak wrote: > The "position" and "at" attributes can be used for ordering the elements the way you want them to be. Better way that works with xsltforms is by using nodeset and origin. For example - > would mean insert the nodes from origin at current node after name or code whichever comes first. Using nodeset is much easier in case of many optional elements. > > Regards, > Santosh |
From: Santosh C. <san...@gm...> - 2012-06-06 05:54:04
|
The "position" and "at" attributes can be used for ordering the elements the way you want them to be. Better way that works with xsltforms is by using nodeset and origin. For example - <xf:insert nodeset="*[self::h:name or self::h:code]" origin="...." /> would mean insert the nodes from origin at current node after name or code whichever comes first. Using nodeset is much easier in case of many optional elements. Regards, Santosh |
From: Conal T. <con...@ve...> - 2012-06-06 00:02:13
|
Hi László! If you supply values for @at and @position, you can override the default behaviour of xf:insert to control where the insertion is made. The relevant documentation is here: http://www.w3.org/TR/xforms11/#action-insert I have done this before but I don't have the worked example to hand; I hope this is correct though: If you want your insertion to be made after any <ch1> and <ch2> elements, you might use @at="count(ch1) + count(ch2)" and @position="after". Or you could insert before any <ch4> or <ch5> elements, using @at="size() - count(ch4) - count(ch5)" and @position="before". I hope that helps! Conal On 05/06/12 19:21, sores wrote: > Hi All, > > When inserting new elements into an empty repeat the context attribute > has to be used to define the insert location. By default the inserted > element will be positioned after the last child of the context nodeset. > Is there a way to control this behaviour? > (for example an axis xpath attribute somewhere that would define the > insertion point in the context node) > > I am trying to build web interfaces for fairly complex XSD schema > defined objects with lots of optional elements. In an XML instance these > optional elements may not be present. When someone starts to add them > they appeare in a wrong location and make XSD validation fail. Having > empty optional elements in the XML instances would work, but | wanted to > avoid this. > > An easy way to solve the problem is reordering the elements with an xsl > transformation. Before doing so I would like to know if I am missing > something obvious. > > Best regards, > > László Sőrés -- Conal Tuohy eResearch Business Analyst Victorian eResearch Strategic Initiative +61-466324297 |
From: sores <so...@al...> - 2012-06-05 09:39:13
|
Hi, Unfortunately, changing the schema is not an option. Laszlo On 05.06.2012 11:29, Ihe Onwuka wrote: > In your position I would explore using xsd:all instead of > xsd:sequence > so that the elements can appear in any order in the instance or > switch > to a relax schema or xsd 1.1 and use interleave. > > Operative word in the above being explore. Someone who has tried it > may advise otherwise. > > > On Tue, Jun 5, 2012 at 10:21 AM, sores <so...@al...> wrote: >> Hi All, >> >> When inserting new elements into an empty repeat the context >> attribute >> has to be used to define the insert location. By default the >> inserted >> element will be positioned after the last child of the context >> nodeset. >> Is there a way to control this behaviour? >> (for example an axis xpath attribute somewhere that would define the >> insertion point in the context node) >> >> I am trying to build web interfaces for fairly complex XSD schema >> defined objects with lots of optional elements. In an XML instance >> these >> optional elements may not be present. When someone starts to add >> them >> they appeare in a wrong location and make XSD validation fail. >> Having >> empty optional elements in the XML instances would work, but | >> wanted to >> avoid this. >> >> An easy way to solve the problem is reordering the elements with an >> xsl >> transformation. Before doing so I would like to know if I am missing >> something obvious. >> >> Best regards, >> >> László Sőrés >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. >> Discussions >> will include endpoint security, mobile security and the latest in >> malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Xsltforms-support mailing list >> Xsl...@li... >> https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. > Discussions > will include endpoint security, mobile security and the latest in > malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support |