xsltforms-support Mailing List for XSLTForms (Page 64)
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: COUTHURES A. <ala...@ag...> - 2011-03-26 11:37:42
|
Hello, This doesn't sound like an XSLTForms error but a server-side error. Don't you think? Thanks! -Alain Le 26/03/2011 12:31, srinivasan krishnamoorthy a écrit : > > Hi friends, > > I got your replies for my previous post thanks to all > > Now i write one function for structuring html with xml and return to > the XSLTForms i face the following error.... > > <exception> > <path>//db/vserve/dge-main/dge-dashboard.xq</path> > - > <message> > Exception while transforming node: Cannot output a namespace node for > the default namespace when the element is in no namespace [at line > 458, column 4] > </message> > </exception> > > how to solve this...... > > error line is > > return > *transform:transform($form, $transform, $params, $serialization-options) > * > > -- > - yours > > *Srinivasan Krishnamoorthy* > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > > > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support |
From: srinivasan k. <sri...@gm...> - 2011-03-26 11:31:36
|
Hi friends, I got your replies for my previous post thanks to all Now i write one function for structuring html with xml and return to the XSLTForms i face the following error.... <exception> <path>//db/vserve/dge-main/dge-dashboard.xq</path> - <message> Exception while transforming node: Cannot output a namespace node for the default namespace when the element is in no namespace [at line 458, column 4] </message> </exception> how to solve this...... error line is return *transform:transform($form, $transform, $params, $serialization-options) * -- - yours *Srinivasan Krishnamoorthy* |
From: COUTHURES A. <ala...@fr...> - 2011-03-24 05:54:29
|
Hello, I already answered your question: using a different port (8080 vs 8081) is generating a cross domain limitation for XmlHttpRequest which is the only way for XSLTForms to generate a submission in AJAX mode. As I said before, you have to implement some URL rewriting in the exist db server to allow the tomcat requests to pass by it. Thanks! -Alain Le 24/03/2011 05:21, srividhya a écrit : > yea i have also the server side code in jsp in the apache tomcat > server(port 8080) and exist db in 8081 port...it is working without > xsltforms if am using in xsltforms it is not working.... > > ----- Original Message ----- > From: xsl...@li... > Date: Wednesday, March 23, 2011 6:09 pm > Subject: Xsltforms-support Digest, Vol 22, Issue 10 > To: xsl...@li... > > > 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: Calling jsp from xquery on XSLTFORMS for online > > submission (COUTHURES Alain) > > > > > > ----------------------------------------------------------------- > > ----- > > > > Message: 1 > > Date: Wed, 23 Mar 2011 13:39:35 +0100 > > From: COUTHURES Alain <ala...@ag...> > > Subject: Re: [Xsltforms-support] Calling jsp from xquery on XSLTFORMS > > for online submission > > To: srividhya <n.s...@ni...> > > Cc: xsl...@li... > > Message-ID: <4D8...@ag...> > > Content-Type: text/plain; charset="iso-8859-1" > > > > Hello, > > > > Why do you explicitly say "http://localhost:8080"? Is is because > > it's > > not the same domain+port? > > > > Cross-domain limitation may apply! > > > > If so, you should do some URL rewriting at server-side. > > > > Thanks! > > > > -Alain > > > > Le 23/03/2011 13:09, srividhya a ?crit : > > > > > > hi > > > Am trying to submit my form data to postgres > > database through jsp > > > on XSLTFORMS in exist database.. > > > for that am calling my jsp code in action of submission > > element, like this > > > > > > <xf:submission id="savetodb" method="post" > > > resource="http://localhost:8080/online- > > picme/handler.jsp" ref="..."> > > > </xf:submission> > > > > > > but it is not working under XSLTFORMS for me... > > > anyone have solution for that...? > > > > > > > > > > > > ----- Original Message ----- > > > From: xsl...@li... > > > Date: Tuesday, March 22, 2011 7:13 pm > > > Subject: Xsltforms-support Digest, Vol 22, Issue 8 > > > To: xsl...@li... > > > > > > > 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: Calling jsp from xquery on > > XSLTFORMS for online > > > > submission (Efraim Feinstein) > > > > 2. Off-line XForms (COUTHURES Alain) > > > > 3. Re: Off-line XForms (nde...@ak...) > > > > 4. Re: Off-line XForms (Joe Wicentowski) > > > > > > > > > > > > ------------------------------------------------------------- > > ---- > > > > ----- > > > > > > > > Message: 1 > > > > Date: Mon, 21 Mar 2011 09:22:17 -0400 > > > > From: Efraim Feinstein <efr...@gm...> > > > > Subject: Re: [Xsltforms-support] Calling jsp from xquery on > > XSLTFORMS> > for online submission > > > > To: xsl...@li... > > > > Message-ID: <4D8...@gm...> > > > > Content-Type: text/plain; charset=UTF-8; format=flowed > > > > > > > > Hi, > > > > > > > > On 03/21/2011 04:54 AM, srividhya wrote: > > > > > > > > > > hi, > > > > > Am working on XSLTFORMS in eXistdb. Am > > > > trying to call jsp from > > > > > xquery on > > > > > XSLTFORMS but it is not working > > > > > > > > I don't think there's enough information in your question to > > > > figure out > > > > what's going on. Can you try: > > > > (1) A minimal but runnable example of the problem. Does the > > > > submission > > > > work, if, instead of calling JSP, you call an XQuery stored in > > > > the > > > > database? (A simple test query might just output the posted data > > > > to the > > > > console, for example, this one-liner: > > > > > > > > util:log-system-out(('DEBUG: Submitted data:', request:get- > > data()))> > > > > > ) > > > > (2) Use XSLTForms' debug mode to find whether the submission is > > > > ever > > > > being called, and if so, what status it returns (xforms- > > submit- > > > > done, > > > > xforms-submit-error) > > > > (2) Use Firefox's Firebug, Chrome's Developer Tools, or > > > > equivalent to > > > > watch network activity. When the submission is triggered: is > > > > there any > > > > network activity? If so, is what's being sent in the request > > > > what you > > > > think it should be? what's the response's status code? Is what > > > > you > > > > receive in response what you think it should be? > > > > > > > > Hope this helps, > > > > > > > > -- > > > > > > > > --- > > > > Efraim Feinstein > > > > Lead Developer > > > > Open Siddur Project > > > > http://opensiddur.net > > > > http://wiki.jewishliturgy.org > > > > > > > > > > > > > > > > > > > > ------------------------------ > > > > > > > > Message: 2 > > > > Date: Tue, 22 Mar 2011 10:56:13 +0100 > > > > From: COUTHURES Alain <ala...@ag...> > > > > Subject: [Xsltforms-support] Off-line XForms > > > > To: XSLTForms support <xsltforms- > > su...@li...>,> > Forms WG <pub...@w3...> > > > > Message-ID: <4D8...@ag...> > > > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > > > > > > Hello, > > > > > > > > Having developed a .jar to allow to save/load files locally, I > > > > will > > > > probably show at XML Prague that off-line XForms is now possible > > > > with > > > > XSLTForms. > > > > > > > > I need a generic form for editing basic XML documents, at least > > > > limited > > > > to top level elements with attributes. Is it something that > > > > someone has > > > > already developed? > > > > > > > > Thanks! > > > > > > > > -Alain > > > > > > > > > > > > > > > > ------------------------------ > > > > > > > > Message: 3 > > > > Date: Tue, 22 Mar 2011 11:52:50 +0100 > > > > From: nde...@ak... > > > > Subject: Re: [Xsltforms-support] Off-line XForms > > > > To: COUTHURES Alain <ala...@ag...> > > > > Cc: Forms WG <pub...@w3...>, XSLTForms support > > > > <xsl...@li...> > > > > Message-ID: > > > > <OF5A744E79.D9C294D6-ONC125785B.003B9411- > > > > C12...@ak...>Content-Type: text/plain; > > charset="us- > > > > ascii" > > > > Try that > > > > > > > > http://debeissat.nicolas.free.fr/forms.php > > > > > > > > It generates a form which edits XML documents, from a RelaxNG > > > > schema. It > > > > is totally written in javascript. > > > > > > > > Regards > > > > Nicolas Debeissat > > > > > > > > > > > > > > > > > > > > > > > > De : > > > > COUTHURES Alain <ala...@ag...> > > > > A : > > > > XSLTForms support <xsl...@li...>, > > > > Forms WG > > > > <pub...@w3...> > > > > Date: > > > > 22/03/2011 10:55 > > > > Objet : > > > > [Xsltforms-support] Off-line XForms > > > > > > > > > > > > > > > > Hello, > > > > > > > > Having developed a .jar to allow to save/load files locally, I > > > > will > > > > probably show at XML Prague that off-line XForms is now possible > > > > with > > > > XSLTForms. > > > > > > > > I need a generic form for editing basic XML documents, at least > > > > limited > > > > to top level elements with attributes. Is it something that > > > > someone has > > > > already developed? > > > > > > > > Thanks! > > > > > > > > -Alain > > > > > > > > ------------------------------------------------------------- > > ---- > > > > ------------- > > > > Enable your software for Intel(R) Active Management Technology > > > > to meet the > > > > growing manageability and security demands of your customers. > > > > Businessesare taking advantage of Intel(R) vPro (TM) > > technology - > > > > will your software > > > > > > > > be a part of the solution? Download the Intel(R) Manageability > > > > Checker > > > > today! http://p.sf.net/sfu/intel-dev2devmar > > > > _______________________________________________ > > > > Xsltforms-support mailing list > > > > Xsl...@li... > > > > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > > > > > > > -------------- next part -------------- > > > > An HTML attachment was scrubbed... > > > > > > > > ------------------------------ > > > > > > > > Message: 4 > > > > Date: Tue, 22 Mar 2011 09:42:03 -0400 > > > > From: Joe Wicentowski <jo...@gm...> > > > > Subject: Re: [Xsltforms-support] Off-line XForms > > > > To: COUTHURES Alain <ala...@ag...> > > > > Cc: XSLTForms support <xsl...@li...> > > > > Message-ID: > > > > <AAN...@ma...> > > > > Content-Type: text/plain; charset="utf-8" > > > > > > > > Alain, > > > > > > > > I have something that you might consider, if I understand you > > > > correctly. It handles elements and attributes, and > > flags mixed > > > > content as uneditable. > > > > > > > > Inspired by C.M. Sperberg-McQueen's "Introduction to XForms > > for XML > > > > Users" course, which was based around XSLTForms (see course > > materials> > at > > > > http://xforms201102.blackmesatech.com/), I decided to create > > a generic > > > > XML-to-XForms generator. ?The idea was to create a fairly > > > > generic "XML > > > > viewer" that would also let you edit content. ?It works > > well, except, > > > > of course, with mixed content - so I simply don't let nodes > > with mixed > > > > content be edited. > > > > > > > > I wrote this in the form of an XQuery application designed for > > > > eXist-db (I am using 1.5dev). I've attached the files > > > > here. ?Just > > > > unzip and drag the "xml2form" folder into your db (so you have > > > > /db/xml2form), and run > > > > http://localhost:8080/exist/rest/db/xml2form/xml2form.xq. > > ?This will > > > > pull up a form view of the "members.xml" file in the same > > directory.> > If you want to try running your own XML documents > > through, just use > > > > the "doc" URL parameter, e.g. > > xml2form.xq?doc=/db/path/to/file.xml.> > > > > > The part I'm happiest about is how it dynamically constructs the > > > > xf:input/@ref XPath value by counting ancestors - so if you view > > > > source on the generated code you'll see > > > > members[1]/member[2]/surname[1], etc. I also did a little > > > > extra work > > > > to make it work with namespaced documents, like TEI or DocBook > > > > documents. > > > > > > > > Hope you find it useful. > > > > > > > > Joe > > > > -------------- next part -------------- > > > > A non-text attachment was scrubbed... > > > > Name: xml2form.zip > > > > Type: application/zip > > > > Size: 120757 bytes > > > > Desc: not available > > > > > > > > ------------------------------ > > > > > > > > ------------------------------------------------------------- > > ---- > > > > ------------- > > > > Enable your software for Intel(R) Active Management Technology > > > > to meet the > > > > growing manageability and security demands of your customers. > > > > Businessesare taking advantage of Intel(R) vPro (TM) > > technology - > > > > will your software > > > > be a part of the solution? Download the Intel(R) Manageability > > > > Checker > > > > today! http://p.sf.net/sfu/intel-dev2devmar > > > > > > > > ------------------------------ > > > > > > > > _______________________________________________ > > > > Xsltforms-support mailing list > > > > Xsl...@li... > > > > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > > > > > > > > > > > End of Xsltforms-support Digest, Vol 22, Issue 8 > > > > ************************************************ > > > > > > With thanks and Regards, > > > N.Srividhya(J.R.F) > > > O.T.C, > > > Chennai. > > > > > > > > > --------------------------------------------------------------- > > --------------- > > > Enable your software for Intel(R) Active Management Technology > > to meet the > > > growing manageability and security demands of your customers. > > Businesses> are taking advantage of Intel(R) vPro (TM) > > technology - will your software > > > be a part of the solution? Download the Intel(R) Manageability > > Checker> today! http://p.sf.net/sfu/intel-dev2devmar > > > > > > > > > _______________________________________________ > > > Xsltforms-support mailing list > > > Xsl...@li... > > > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > > > -------------- next part -------------- > > An HTML attachment was scrubbed... > > > > ------------------------------ > > > > ----------------------------------------------------------------- > > ------------- > > Enable your software for Intel(R) Active Management Technology > > to meet the > > growing manageability and security demands of your customers. > > Businessesare taking advantage of Intel(R) vPro (TM) technology - > > will your software > > be a part of the solution? Download the Intel(R) Manageability > > Checker > > today! http://p.sf.net/sfu/intel-dev2devmar > > > > ------------------------------ > > > > _______________________________________________ > > Xsltforms-support mailing list > > Xsl...@li... > > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > > > > > End of Xsltforms-support Digest, Vol 22, Issue 10 > > ************************************************* > > With thanks and Regards, > N.Srividhya(J.R.F) > O.T.C, > Chennai. > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > > > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support |
From: srividhya <n.s...@ni...> - 2011-03-24 04:22:30
|
yea i have also the server side code in jsp in the apache tomcat server(port 8080) and exist db in 8081 port...it is working without xsltforms if am using in xsltforms it is not working.... ----- Original Message ----- From: xsl...@li... Date: Wednesday, March 23, 2011 6:09 pm Subject: Xsltforms-support Digest, Vol 22, Issue 10 To: xsl...@li... > 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: Calling jsp from xquery on XSLTFORMS for online > submission (COUTHURES Alain) > > > ----------------------------------------------------------------- > ----- > > Message: 1 > Date: Wed, 23 Mar 2011 13:39:35 +0100 > From: COUTHURES Alain <ala...@ag...> > Subject: Re: [Xsltforms-support] Calling jsp from xquery on XSLTFORMS > for online submission > To: srividhya <n.s...@ni...> > Cc: xsl...@li... > Message-ID: <4D8...@ag...> > Content-Type: text/plain; charset="iso-8859-1" > > Hello, > > Why do you explicitly say "http://localhost:8080"? Is is because > it's > not the same domain+port? > > Cross-domain limitation may apply! > > If so, you should do some URL rewriting at server-side. > > Thanks! > > -Alain > > Le 23/03/2011 13:09, srividhya a ?crit : > > > > hi > > Am trying to submit my form data to postgres > database through jsp > > on XSLTFORMS in exist database.. > > for that am calling my jsp code in action of submission > element, like this > > > > <xf:submission id="savetodb" method="post" > > resource="http://localhost:8080/online- > picme/handler.jsp" ref="..."> > > </xf:submission> > > > > but it is not working under XSLTFORMS for me... > > anyone have solution for that...? > > > > > > > > ----- Original Message ----- > > From: xsl...@li... > > Date: Tuesday, March 22, 2011 7:13 pm > > Subject: Xsltforms-support Digest, Vol 22, Issue 8 > > To: xsl...@li... > > > > > 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: Calling jsp from xquery on > XSLTFORMS for online > > > submission (Efraim Feinstein) > > > 2. Off-line XForms (COUTHURES Alain) > > > 3. Re: Off-line XForms (nde...@ak...) > > > 4. Re: Off-line XForms (Joe Wicentowski) > > > > > > > > > ------------------------------------------------------------- > ---- > > > ----- > > > > > > Message: 1 > > > Date: Mon, 21 Mar 2011 09:22:17 -0400 > > > From: Efraim Feinstein <efr...@gm...> > > > Subject: Re: [Xsltforms-support] Calling jsp from xquery on > XSLTFORMS> > for online submission > > > To: xsl...@li... > > > Message-ID: <4D8...@gm...> > > > Content-Type: text/plain; charset=UTF-8; format=flowed > > > > > > Hi, > > > > > > On 03/21/2011 04:54 AM, srividhya wrote: > > > > > > > > hi, > > > > Am working on XSLTFORMS in eXistdb. Am > > > trying to call jsp from > > > > xquery on > > > > XSLTFORMS but it is not working > > > > > > I don't think there's enough information in your question to > > > figure out > > > what's going on. Can you try: > > > (1) A minimal but runnable example of the problem. Does the > > > submission > > > work, if, instead of calling JSP, you call an XQuery stored in > > > the > > > database? (A simple test query might just output the posted data > > > to the > > > console, for example, this one-liner: > > > > > > util:log-system-out(('DEBUG: Submitted data:', request:get- > data()))> > > > > ) > > > (2) Use XSLTForms' debug mode to find whether the submission is > > > ever > > > being called, and if so, what status it returns (xforms- > submit- > > > done, > > > xforms-submit-error) > > > (2) Use Firefox's Firebug, Chrome's Developer Tools, or > > > equivalent to > > > watch network activity. When the submission is triggered: is > > > there any > > > network activity? If so, is what's being sent in the request > > > what you > > > think it should be? what's the response's status code? Is what > > > you > > > receive in response what you think it should be? > > > > > > Hope this helps, > > > > > > -- > > > > > > --- > > > Efraim Feinstein > > > Lead Developer > > > Open Siddur Project > > > http://opensiddur.net > > > http://wiki.jewishliturgy.org > > > > > > > > > > > > > > > ------------------------------ > > > > > > Message: 2 > > > Date: Tue, 22 Mar 2011 10:56:13 +0100 > > > From: COUTHURES Alain <ala...@ag...> > > > Subject: [Xsltforms-support] Off-line XForms > > > To: XSLTForms support <xsltforms- > su...@li...>,> > Forms WG <pub...@w3...> > > > Message-ID: <4D8...@ag...> > > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > > > > Hello, > > > > > > Having developed a .jar to allow to save/load files locally, I > > > will > > > probably show at XML Prague that off-line XForms is now possible > > > with > > > XSLTForms. > > > > > > I need a generic form for editing basic XML documents, at least > > > limited > > > to top level elements with attributes. Is it something that > > > someone has > > > already developed? > > > > > > Thanks! > > > > > > -Alain > > > > > > > > > > > > ------------------------------ > > > > > > Message: 3 > > > Date: Tue, 22 Mar 2011 11:52:50 +0100 > > > From: nde...@ak... > > > Subject: Re: [Xsltforms-support] Off-line XForms > > > To: COUTHURES Alain <ala...@ag...> > > > Cc: Forms WG <pub...@w3...>, XSLTForms support > > > <xsl...@li...> > > > Message-ID: > > > <OF5A744E79.D9C294D6-ONC125785B.003B9411- > > > C12...@ak...>Content-Type: text/plain; > charset="us- > > > ascii" > > > Try that > > > > > > http://debeissat.nicolas.free.fr/forms.php > > > > > > It generates a form which edits XML documents, from a RelaxNG > > > schema. It > > > is totally written in javascript. > > > > > > Regards > > > Nicolas Debeissat > > > > > > > > > > > > > > > > > > De : > > > COUTHURES Alain <ala...@ag...> > > > A : > > > XSLTForms support <xsl...@li...>, > > > Forms WG > > > <pub...@w3...> > > > Date: > > > 22/03/2011 10:55 > > > Objet : > > > [Xsltforms-support] Off-line XForms > > > > > > > > > > > > Hello, > > > > > > Having developed a .jar to allow to save/load files locally, I > > > will > > > probably show at XML Prague that off-line XForms is now possible > > > with > > > XSLTForms. > > > > > > I need a generic form for editing basic XML documents, at least > > > limited > > > to top level elements with attributes. Is it something that > > > someone has > > > already developed? > > > > > > Thanks! > > > > > > -Alain > > > > > > ------------------------------------------------------------- > ---- > > > ------------- > > > Enable your software for Intel(R) Active Management Technology > > > to meet the > > > growing manageability and security demands of your customers. > > > Businessesare taking advantage of Intel(R) vPro (TM) > technology - > > > will your software > > > > > > be a part of the solution? Download the Intel(R) Manageability > > > Checker > > > today! http://p.sf.net/sfu/intel-dev2devmar > > > _______________________________________________ > > > Xsltforms-support mailing list > > > Xsl...@li... > > > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > > > > > -------------- next part -------------- > > > An HTML attachment was scrubbed... > > > > > > ------------------------------ > > > > > > Message: 4 > > > Date: Tue, 22 Mar 2011 09:42:03 -0400 > > > From: Joe Wicentowski <jo...@gm...> > > > Subject: Re: [Xsltforms-support] Off-line XForms > > > To: COUTHURES Alain <ala...@ag...> > > > Cc: XSLTForms support <xsl...@li...> > > > Message-ID: > > > <AAN...@ma...> > > > Content-Type: text/plain; charset="utf-8" > > > > > > Alain, > > > > > > I have something that you might consider, if I understand you > > > correctly. It handles elements and attributes, and > flags mixed > > > content as uneditable. > > > > > > Inspired by C.M. Sperberg-McQueen's "Introduction to XForms > for XML > > > Users" course, which was based around XSLTForms (see course > materials> > at > > > http://xforms201102.blackmesatech.com/), I decided to create > a generic > > > XML-to-XForms generator. ?The idea was to create a fairly > > > generic "XML > > > viewer" that would also let you edit content. ?It works > well, except, > > > of course, with mixed content - so I simply don't let nodes > with mixed > > > content be edited. > > > > > > I wrote this in the form of an XQuery application designed for > > > eXist-db (I am using 1.5dev). I've attached the files > > > here. ?Just > > > unzip and drag the "xml2form" folder into your db (so you have > > > /db/xml2form), and run > > > http://localhost:8080/exist/rest/db/xml2form/xml2form.xq. > ?This will > > > pull up a form view of the "members.xml" file in the same > directory.> > If you want to try running your own XML documents > through, just use > > > the "doc" URL parameter, e.g. > xml2form.xq?doc=/db/path/to/file.xml.> > > > > The part I'm happiest about is how it dynamically constructs the > > > xf:input/@ref XPath value by counting ancestors - so if you view > > > source on the generated code you'll see > > > members[1]/member[2]/surname[1], etc. I also did a little > > > extra work > > > to make it work with namespaced documents, like TEI or DocBook > > > documents. > > > > > > Hope you find it useful. > > > > > > Joe > > > -------------- next part -------------- > > > A non-text attachment was scrubbed... > > > Name: xml2form.zip > > > Type: application/zip > > > Size: 120757 bytes > > > Desc: not available > > > > > > ------------------------------ > > > > > > ------------------------------------------------------------- > ---- > > > ------------- > > > Enable your software for Intel(R) Active Management Technology > > > to meet the > > > growing manageability and security demands of your customers. > > > Businessesare taking advantage of Intel(R) vPro (TM) > technology - > > > will your software > > > be a part of the solution? Download the Intel(R) Manageability > > > Checker > > > today! http://p.sf.net/sfu/intel-dev2devmar > > > > > > ------------------------------ > > > > > > _______________________________________________ > > > Xsltforms-support mailing list > > > Xsl...@li... > > > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > > > > > > > > End of Xsltforms-support Digest, Vol 22, Issue 8 > > > ************************************************ > > > > With thanks and Regards, > > N.Srividhya(J.R.F) > > O.T.C, > > Chennai. > > > > > > --------------------------------------------------------------- > --------------- > > Enable your software for Intel(R) Active Management Technology > to meet the > > growing manageability and security demands of your customers. > Businesses> are taking advantage of Intel(R) vPro (TM) > technology - will your software > > be a part of the solution? Download the Intel(R) Manageability > Checker> today! http://p.sf.net/sfu/intel-dev2devmar > > > > > > _______________________________________________ > > Xsltforms-support mailing list > > Xsl...@li... > > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > ----------------------------------------------------------------- > ------------- > Enable your software for Intel(R) Active Management Technology > to meet the > growing manageability and security demands of your customers. > Businessesare taking advantage of Intel(R) vPro (TM) technology - > will your software > be a part of the solution? Download the Intel(R) Manageability > Checker > today! http://p.sf.net/sfu/intel-dev2devmar > > ------------------------------ > > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > > End of Xsltforms-support Digest, Vol 22, Issue 10 > ************************************************* With thanks and Regards, N.Srividhya(J.R.F) O.T.C, Chennai. |
From: COUTHURES A. <ala...@ag...> - 2011-03-23 12:38:18
|
Hello, Why do you explicitly say "http://localhost:8080"? Is is because it's not the same domain+port? Cross-domain limitation may apply! If so, you should do some URL rewriting at server-side. Thanks! -Alain Le 23/03/2011 13:09, srividhya a écrit : > > hi > Am trying to submit my form data to postgres database through jsp > on XSLTFORMS in exist database.. > for that am calling my jsp code in action of submission element, like this > > <xf:submission id="savetodb" method="post" > resource="http://localhost:8080/online-picme/handler.jsp" ref="..."> > </xf:submission> > > but it is not working under XSLTFORMS for me... > anyone have solution for that...? > > > > ----- Original Message ----- > From: xsl...@li... > Date: Tuesday, March 22, 2011 7:13 pm > Subject: Xsltforms-support Digest, Vol 22, Issue 8 > To: xsl...@li... > > > 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: Calling jsp from xquery on XSLTFORMS for online > > submission (Efraim Feinstein) > > 2. Off-line XForms (COUTHURES Alain) > > 3. Re: Off-line XForms (nde...@ak...) > > 4. Re: Off-line XForms (Joe Wicentowski) > > > > > > ----------------------------------------------------------------- > > ----- > > > > Message: 1 > > Date: Mon, 21 Mar 2011 09:22:17 -0400 > > From: Efraim Feinstein <efr...@gm...> > > Subject: Re: [Xsltforms-support] Calling jsp from xquery on XSLTFORMS > > for online submission > > To: xsl...@li... > > Message-ID: <4D8...@gm...> > > Content-Type: text/plain; charset=UTF-8; format=flowed > > > > Hi, > > > > On 03/21/2011 04:54 AM, srividhya wrote: > > > > > > hi, > > > Am working on XSLTFORMS in eXistdb. Am > > trying to call jsp from > > > xquery on > > > XSLTFORMS but it is not working > > > > I don't think there's enough information in your question to > > figure out > > what's going on. Can you try: > > (1) A minimal but runnable example of the problem. Does the > > submission > > work, if, instead of calling JSP, you call an XQuery stored in > > the > > database? (A simple test query might just output the posted data > > to the > > console, for example, this one-liner: > > > > util:log-system-out(('DEBUG: Submitted data:', request:get-data())) > > > > ) > > (2) Use XSLTForms' debug mode to find whether the submission is > > ever > > being called, and if so, what status it returns (xforms-submit- > > done, > > xforms-submit-error) > > (2) Use Firefox's Firebug, Chrome's Developer Tools, or > > equivalent to > > watch network activity. When the submission is triggered: is > > there any > > network activity? If so, is what's being sent in the request > > what you > > think it should be? what's the response's status code? Is what > > you > > receive in response what you think it should be? > > > > Hope this helps, > > > > -- > > > > --- > > Efraim Feinstein > > Lead Developer > > Open Siddur Project > > http://opensiddur.net > > http://wiki.jewishliturgy.org > > > > > > > > > > ------------------------------ > > > > Message: 2 > > Date: Tue, 22 Mar 2011 10:56:13 +0100 > > From: COUTHURES Alain <ala...@ag...> > > Subject: [Xsltforms-support] Off-line XForms > > To: XSLTForms support <xsl...@li...>, > > Forms WG <pub...@w3...> > > Message-ID: <4D8...@ag...> > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > > Hello, > > > > Having developed a .jar to allow to save/load files locally, I > > will > > probably show at XML Prague that off-line XForms is now possible > > with > > XSLTForms. > > > > I need a generic form for editing basic XML documents, at least > > limited > > to top level elements with attributes. Is it something that > > someone has > > already developed? > > > > Thanks! > > > > -Alain > > > > > > > > ------------------------------ > > > > Message: 3 > > Date: Tue, 22 Mar 2011 11:52:50 +0100 > > From: nde...@ak... > > Subject: Re: [Xsltforms-support] Off-line XForms > > To: COUTHURES Alain <ala...@ag...> > > Cc: Forms WG <pub...@w3...>, XSLTForms support > > <xsl...@li...> > > Message-ID: > > <OF5A744E79.D9C294D6-ONC125785B.003B9411- > > C12...@ak...>Content-Type: text/plain; charset="us- > > ascii" > > Try that > > > > http://debeissat.nicolas.free.fr/forms.php > > > > It generates a form which edits XML documents, from a RelaxNG > > schema. It > > is totally written in javascript. > > > > Regards > > Nicolas Debeissat > > > > > > > > > > > > De : > > COUTHURES Alain <ala...@ag...> > > A : > > XSLTForms support <xsl...@li...>, > > Forms WG > > <pub...@w3...> > > Date: > > 22/03/2011 10:55 > > Objet : > > [Xsltforms-support] Off-line XForms > > > > > > > > Hello, > > > > Having developed a .jar to allow to save/load files locally, I > > will > > probably show at XML Prague that off-line XForms is now possible > > with > > XSLTForms. > > > > I need a generic form for editing basic XML documents, at least > > limited > > to top level elements with attributes. Is it something that > > someone has > > already developed? > > > > Thanks! > > > > -Alain > > > > ----------------------------------------------------------------- > > ------------- > > Enable your software for Intel(R) Active Management Technology > > to meet the > > growing manageability and security demands of your customers. > > Businessesare taking advantage of Intel(R) vPro (TM) technology - > > will your software > > > > be a part of the solution? Download the Intel(R) Manageability > > Checker > > today! http://p.sf.net/sfu/intel-dev2devmar > > _______________________________________________ > > Xsltforms-support mailing list > > Xsl...@li... > > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > > > -------------- next part -------------- > > An HTML attachment was scrubbed... > > > > ------------------------------ > > > > Message: 4 > > Date: Tue, 22 Mar 2011 09:42:03 -0400 > > From: Joe Wicentowski <jo...@gm...> > > Subject: Re: [Xsltforms-support] Off-line XForms > > To: COUTHURES Alain <ala...@ag...> > > Cc: XSLTForms support <xsl...@li...> > > Message-ID: > > <AAN...@ma...> > > Content-Type: text/plain; charset="utf-8" > > > > Alain, > > > > I have something that you might consider, if I understand you > > correctly. It handles elements and attributes, and flags mixed > > content as uneditable. > > > > Inspired by C.M. Sperberg-McQueen's "Introduction to XForms for XML > > Users" course, which was based around XSLTForms (see course materials > > at > > http://xforms201102.blackmesatech.com/), I decided to create a generic > > XML-to-XForms generator. ?The idea was to create a fairly > > generic "XML > > viewer" that would also let you edit content. ?It works well, except, > > of course, with mixed content - so I simply don't let nodes with mixed > > content be edited. > > > > I wrote this in the form of an XQuery application designed for > > eXist-db (I am using 1.5dev). I've attached the files > > here. ?Just > > unzip and drag the "xml2form" folder into your db (so you have > > /db/xml2form), and run > > http://localhost:8080/exist/rest/db/xml2form/xml2form.xq. ?This will > > pull up a form view of the "members.xml" file in the same directory. > > If you want to try running your own XML documents through, just use > > the "doc" URL parameter, e.g. xml2form.xq?doc=/db/path/to/file.xml. > > > > The part I'm happiest about is how it dynamically constructs the > > xf:input/@ref XPath value by counting ancestors - so if you view > > source on the generated code you'll see > > members[1]/member[2]/surname[1], etc. I also did a little > > extra work > > to make it work with namespaced documents, like TEI or DocBook > > documents. > > > > Hope you find it useful. > > > > Joe > > -------------- next part -------------- > > A non-text attachment was scrubbed... > > Name: xml2form.zip > > Type: application/zip > > Size: 120757 bytes > > Desc: not available > > > > ------------------------------ > > > > ----------------------------------------------------------------- > > ------------- > > Enable your software for Intel(R) Active Management Technology > > to meet the > > growing manageability and security demands of your customers. > > Businessesare taking advantage of Intel(R) vPro (TM) technology - > > will your software > > be a part of the solution? Download the Intel(R) Manageability > > Checker > > today! http://p.sf.net/sfu/intel-dev2devmar > > > > ------------------------------ > > > > _______________________________________________ > > Xsltforms-support mailing list > > Xsl...@li... > > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > > > > > End of Xsltforms-support Digest, Vol 22, Issue 8 > > ************************************************ > > With thanks and Regards, > N.Srividhya(J.R.F) > O.T.C, > Chennai. > > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > > > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support |
From: srividhya <n.s...@ni...> - 2011-03-23 12:09:28
|
hi Am trying to submit my form data to postgres database through jsp on XSLTFORMS in exist database.. for that am calling my jsp code in action of submission element, like this <xf:submission id="savetodb" method="post" resource="http://localhost:8080/online-picme/handler.jsp" ref="..."> </xf:submission> but it is not working under XSLTFORMS for me... anyone have solution for that...? ----- Original Message ----- From: xsl...@li... Date: Tuesday, March 22, 2011 7:13 pm Subject: Xsltforms-support Digest, Vol 22, Issue 8 To: xsl...@li... > 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: Calling jsp from xquery on XSLTFORMS for online > submission (Efraim Feinstein) > 2. Off-line XForms (COUTHURES Alain) > 3. Re: Off-line XForms (nde...@ak...) > 4. Re: Off-line XForms (Joe Wicentowski) > > > ----------------------------------------------------------------- > ----- > > Message: 1 > Date: Mon, 21 Mar 2011 09:22:17 -0400 > From: Efraim Feinstein <efr...@gm...> > Subject: Re: [Xsltforms-support] Calling jsp from xquery on XSLTFORMS > for online submission > To: xsl...@li... > Message-ID: <4D8...@gm...> > Content-Type: text/plain; charset=UTF-8; format=flowed > > Hi, > > On 03/21/2011 04:54 AM, srividhya wrote: > > > > hi, > > Am working on XSLTFORMS in eXistdb. Am > trying to call jsp from > > xquery on > > XSLTFORMS but it is not working > > I don't think there's enough information in your question to > figure out > what's going on. Can you try: > (1) A minimal but runnable example of the problem. Does the > submission > work, if, instead of calling JSP, you call an XQuery stored in > the > database? (A simple test query might just output the posted data > to the > console, for example, this one-liner: > > util:log-system-out(('DEBUG: Submitted data:', request:get-data())) > > ) > (2) Use XSLTForms' debug mode to find whether the submission is > ever > being called, and if so, what status it returns (xforms-submit- > done, > xforms-submit-error) > (2) Use Firefox's Firebug, Chrome's Developer Tools, or > equivalent to > watch network activity. When the submission is triggered: is > there any > network activity? If so, is what's being sent in the request > what you > think it should be? what's the response's status code? Is what > you > receive in response what you think it should be? > > Hope this helps, > > -- > > --- > Efraim Feinstein > Lead Developer > Open Siddur Project > http://opensiddur.net > http://wiki.jewishliturgy.org > > > > > ------------------------------ > > Message: 2 > Date: Tue, 22 Mar 2011 10:56:13 +0100 > From: COUTHURES Alain <ala...@ag...> > Subject: [Xsltforms-support] Off-line XForms > To: XSLTForms support <xsl...@li...>, > Forms WG <pub...@w3...> > Message-ID: <4D8...@ag...> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hello, > > Having developed a .jar to allow to save/load files locally, I > will > probably show at XML Prague that off-line XForms is now possible > with > XSLTForms. > > I need a generic form for editing basic XML documents, at least > limited > to top level elements with attributes. Is it something that > someone has > already developed? > > Thanks! > > -Alain > > > > ------------------------------ > > Message: 3 > Date: Tue, 22 Mar 2011 11:52:50 +0100 > From: nde...@ak... > Subject: Re: [Xsltforms-support] Off-line XForms > To: COUTHURES Alain <ala...@ag...> > Cc: Forms WG <pub...@w3...>, XSLTForms support > <xsl...@li...> > Message-ID: > <OF5A744E79.D9C294D6-ONC125785B.003B9411- > C12...@ak...>Content-Type: text/plain; charset="us- > ascii" > Try that > > http://debeissat.nicolas.free.fr/forms.php > > It generates a form which edits XML documents, from a RelaxNG > schema. It > is totally written in javascript. > > Regards > Nicolas Debeissat > > > > > > De : > COUTHURES Alain <ala...@ag...> > A : > XSLTForms support <xsl...@li...>, > Forms WG > <pub...@w3...> > Date: > 22/03/2011 10:55 > Objet : > [Xsltforms-support] Off-line XForms > > > > Hello, > > Having developed a .jar to allow to save/load files locally, I > will > probably show at XML Prague that off-line XForms is now possible > with > XSLTForms. > > I need a generic form for editing basic XML documents, at least > limited > to top level elements with attributes. Is it something that > someone has > already developed? > > Thanks! > > -Alain > > ----------------------------------------------------------------- > ------------- > Enable your software for Intel(R) Active Management Technology > to meet the > growing manageability and security demands of your customers. > Businessesare taking advantage of Intel(R) vPro (TM) technology - > will your software > > be a part of the solution? Download the Intel(R) Manageability > Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > -------------- next part -------------- > An HTML attachment was scrubbed... > > ------------------------------ > > Message: 4 > Date: Tue, 22 Mar 2011 09:42:03 -0400 > From: Joe Wicentowski <jo...@gm...> > Subject: Re: [Xsltforms-support] Off-line XForms > To: COUTHURES Alain <ala...@ag...> > Cc: XSLTForms support <xsl...@li...> > Message-ID: > <AAN...@ma...> > Content-Type: text/plain; charset="utf-8" > > Alain, > > I have something that you might consider, if I understand you > correctly. It handles elements and attributes, and flags mixed > content as uneditable. > > Inspired by C.M. Sperberg-McQueen's "Introduction to XForms for XML > Users" course, which was based around XSLTForms (see course materials > at > http://xforms201102.blackmesatech.com/), I decided to create a generic > XML-to-XForms generator. ?The idea was to create a fairly > generic "XML > viewer" that would also let you edit content. ?It works well, except, > of course, with mixed content - so I simply don't let nodes with mixed > content be edited. > > I wrote this in the form of an XQuery application designed for > eXist-db (I am using 1.5dev). I've attached the files > here. ?Just > unzip and drag the "xml2form" folder into your db (so you have > /db/xml2form), and run > http://localhost:8080/exist/rest/db/xml2form/xml2form.xq. ?This will > pull up a form view of the "members.xml" file in the same directory. > If you want to try running your own XML documents through, just use > the "doc" URL parameter, e.g. xml2form.xq?doc=/db/path/to/file.xml. > > The part I'm happiest about is how it dynamically constructs the > xf:input/@ref XPath value by counting ancestors - so if you view > source on the generated code you'll see > members[1]/member[2]/surname[1], etc. I also did a little > extra work > to make it work with namespaced documents, like TEI or DocBook > documents. > > Hope you find it useful. > > Joe > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: xml2form.zip > Type: application/zip > Size: 120757 bytes > Desc: not available > > ------------------------------ > > ----------------------------------------------------------------- > ------------- > Enable your software for Intel(R) Active Management Technology > to meet the > growing manageability and security demands of your customers. > Businessesare taking advantage of Intel(R) vPro (TM) technology - > will your software > be a part of the solution? Download the Intel(R) Manageability > Checker > today! http://p.sf.net/sfu/intel-dev2devmar > > ------------------------------ > > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > > End of Xsltforms-support Digest, Vol 22, Issue 8 > ************************************************ With thanks and Regards, N.Srividhya(J.R.F) O.T.C, Chennai. |
From: Joe W. <jo...@gm...> - 2011-03-22 14:47:09
|
> a generic > XML-to-XForms generator. The idea was to create a fairly generic "XML > viewer" that would also let you edit content. It works well, except, > of course, with mixed content - so I simply don't let nodes with mixed > content be edited. I forgot to mention - Dan McCreary kindly put up the script, which should give you a sense of what it looks like without having to install it yourself: http://demo.danmccreary.com/rest/db/dma/apps/xml2form/views/xml2form.xq Joe |
From: Joe W. <jo...@gm...> - 2011-03-22 13:42:31
|
Alain, I have something that you might consider, if I understand you correctly. It handles elements and attributes, and flags mixed content as uneditable. Inspired by C.M. Sperberg-McQueen's "Introduction to XForms for XML Users" course, which was based around XSLTForms (see course materials at http://xforms201102.blackmesatech.com/), I decided to create a generic XML-to-XForms generator. The idea was to create a fairly generic "XML viewer" that would also let you edit content. It works well, except, of course, with mixed content - so I simply don't let nodes with mixed content be edited. I wrote this in the form of an XQuery application designed for eXist-db (I am using 1.5dev). I've attached the files here. Just unzip and drag the "xml2form" folder into your db (so you have /db/xml2form), and run http://localhost:8080/exist/rest/db/xml2form/xml2form.xq. This will pull up a form view of the "members.xml" file in the same directory. If you want to try running your own XML documents through, just use the "doc" URL parameter, e.g. xml2form.xq?doc=/db/path/to/file.xml. The part I'm happiest about is how it dynamically constructs the xf:input/@ref XPath value by counting ancestors - so if you view source on the generated code you'll see members[1]/member[2]/surname[1], etc. I also did a little extra work to make it work with namespaced documents, like TEI or DocBook documents. Hope you find it useful. Joe |
From: <nde...@ak...> - 2011-03-22 11:08:14
|
Try that http://debeissat.nicolas.free.fr/forms.php It generates a form which edits XML documents, from a RelaxNG schema. It is totally written in javascript. Regards Nicolas Debeissat De : COUTHURES Alain <ala...@ag...> A : XSLTForms support <xsl...@li...>, Forms WG <pub...@w3...> Date: 22/03/2011 10:55 Objet : [Xsltforms-support] Off-line XForms Hello, Having developed a .jar to allow to save/load files locally, I will probably show at XML Prague that off-line XForms is now possible with XSLTForms. I need a generic form for editing basic XML documents, at least limited to top level elements with attributes. Is it something that someone has already developed? Thanks! -Alain ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ Xsltforms-support mailing list Xsl...@li... https://lists.sourceforge.net/lists/listinfo/xsltforms-support |
From: COUTHURES A. <ala...@ag...> - 2011-03-22 09:55:00
|
Hello, Having developed a .jar to allow to save/load files locally, I will probably show at XML Prague that off-line XForms is now possible with XSLTForms. I need a generic form for editing basic XML documents, at least limited to top level elements with attributes. Is it something that someone has already developed? Thanks! -Alain |
From: Efraim F. <efr...@gm...> - 2011-03-21 13:22:26
|
Hi, On 03/21/2011 04:54 AM, srividhya wrote: > > hi, > Am working on XSLTFORMS in eXistdb. Am trying to call jsp from > xquery on > XSLTFORMS but it is not working I don't think there's enough information in your question to figure out what's going on. Can you try: (1) A minimal but runnable example of the problem. Does the submission work, if, instead of calling JSP, you call an XQuery stored in the database? (A simple test query might just output the posted data to the console, for example, this one-liner: util:log-system-out(('DEBUG: Submitted data:', request:get-data())) ) (2) Use XSLTForms' debug mode to find whether the submission is ever being called, and if so, what status it returns (xforms-submit-done, xforms-submit-error) (2) Use Firefox's Firebug, Chrome's Developer Tools, or equivalent to watch network activity. When the submission is triggered: is there any network activity? If so, is what's being sent in the request what you think it should be? what's the response's status code? Is what you receive in response what you think it should be? Hope this helps, -- --- Efraim Feinstein Lead Developer Open Siddur Project http://opensiddur.net http://wiki.jewishliturgy.org |
From: srividhya <n.s...@ni...> - 2011-03-21 08:54:21
|
hi, Am working on XSLTFORMS in eXistdb. Am trying to call jsp from xquery on XSLTFORMS but it is not working This is the code am using for submission.... <xf:submission id="savetodb" method="post" resource="http://localhost:8080/..../handler.jsp" ref="instance('...')"> </xf:submission> With thanks and Regards, N.Srividhya(J.R.F) O.T.C, Chennai. |
From: srividhya <n.s...@ni...> - 2011-03-21 07:21:01
|
hi, Am working on XSLTFORMS in eXistdb. Am trying to call jsp from xquery on XSLTFORMS but it is not working This is the code am using for submission.... <xf:submission id="savetodb" method="post" resource="http://localhost:8080/..../handler.jsp" ref="instance('...')"> </xf:submission> With thanks and Regards, N.Srividhya(J.R.F) O.T.C, Chennai. |
From: srividhya <n.s...@ni...> - 2011-03-21 07:15:04
|
With thanks and Regards, N.Srividhya(J.R.F) O.T.C, Chennai. |
From: Raja <m.r...@ni...> - 2011-03-21 05:18:42
|
Hi XSLTForms members !!! Can anyone answer for the query ...? Is there any future plan to implement accesskey and navindex feature in XSLTForms . Or if that was implemented then can i get the latest trunk version of the XSLTForms. Acutally we have some urgent requirement for the accesskey and navindex option in our application . But, still that option not available in XSLTForms XForms solution ....... By -- Rajamani Marimuthu Junior Research Fellow-JRF NIC -Open Technology Centre Rajaji Bhavan Besant Nagar, Chennai - 90 Cell : 9791125383 |
From: Leigh L K. Jr <lei...@xe...> - 2011-03-15 21:25:51
|
In xsltforms-493 and earlier, xforms-ready is dispatched immediately after xforms-model-construct-done, but before the UI is ready. The UI should be ready before xforms-ready is dispatched. For example, if you want to display a page, and load additional resources on xforms-ready to display when they return, you would perform the final submissions on xforms-ready. In the current implementation there is no difference between doing this on xforms-model-construct-done and xforms-ready because both block the initial page display. I have not examined all aspects of this problem, but I noticed the following simple change will fix it: --- xsltforms.js.old 2011-03-15 13:44:44.000000000 -0700 +++ xsltforms.js 2011-03-15 14:07:10.774157731 -0700 @@ -1599,7 +1599,6 @@ this.openAction(); XMLEvents.dispatchList(this.models, "xforms-model-construct"); - XMLEvents.dispatchList(this.models, "xforms-ready"); this.refresh(); this.closeAction(); this.ready = true; @@ -2109,6 +2108,7 @@ } XMLEvents.dispatch(this, "xforms-rebuild"); XMLEvents.dispatch(this, "xforms-model-construct-done"); + window.setTimeout("XMLEvents.dispatchXFormsReady()", 1); }; @@ -7256,6 +7256,10 @@ +XMLEvents.dispatchXFormsReady = function() { + XMLEvents.dispatchList(xforms.models, "xforms-ready"); +}; + XMLEvents.dispatchList = function(list, name) { for (var id = 0, len = list.length; id < len; id++) { XMLEvents.dispatch(list[id], name); Here is a test case. Without this change, or a similar one, the whole page blocks and then you see A and B at the same time. With it, you see A, then a pause, then B is added. <?xml version="1.0"?> <?css-conversion no?> <?xml-stylesheet type="text/xsl" href="/xsltforms/xsltforms.xsl" css="no"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xhtml="http://www.w3.org/1999/xhtml"> <head> <title>A/B</title> <model xmlns="http://www.w3.org/2002/xforms"> <instance id="a" resource="a.xml" /> <instance id="b"><empty xmnls="" /></instance> <submission id="load-b" method="get" ref="instance('b')" replace="instance" mode="asynchronous" resource='b.cgi' /> <xf:action ev:event="xforms-ready"> <xf:send submission="load-b" /> </xf:action> </model> </head> <body> <group xmlns="http://www.w3.org/2002/xforms"> <output ref="instance('a')/a"> <label>A: </label> </output> <output ref="instance('b')/b"> <label>B: </label> </output> </group> </body> </html> a.xml: <?xml version="1.0"?> <data> <a>a is loaded</a> </data> b.cgi: #!/bin/sh sleep 2 echo "Content-Type: text/plain" echo "" cat <<EOF <?xml version="1.0"?> <data> <b>b is loaded</b> </data> EOF |
From: COUTHURES A. <ala...@ag...> - 2011-03-13 20:17:57
|
Leigh, > We're defining other widgets with XSLTForms. Very interesting! Maybe some of them could then be integrated in XSLTForms? > We've found some changes from Claudius Teodorescu are necessary. Claudius' extensions permitted to study how to improve the config files for them. Unfortunately, it seems that these extensions are not yet compatible with the native XML documents use. > They seem not to have an effect on unmodified XSLTForms and they are > necessary to write your own widgets. > > Changes from xsltforms-dataisland-481.zip > > > > Subset of changes from exsltforms. See step 4 of installation.txt > (http://sourceforge.net/projects/extxsltforms). > > diff xsltforms-dataisland-481/xsltforms.xsl xsltforms.xsl > > 151c151 > < <xsl:copy-of select="$config/extensions/beforeInit"/> > --- > > <xsl:copy-of select="$config/extensions/beforeInit/*"/> > 180c180 > < <xsl:copy-of select="$config/extensions/onBeginInit"/> > --- > > <xsl:value-of select="$config/extensions/onBeginInit"/> > 333c333 > < <xsl:copy-of select="$config/extensions/afterInit"/> > --- > > <xsl:copy-of select="$config/extensions/afterInit/*"/> > > Yes, I also considered "onEndInit". Please have a look at r493. Thanks! -Alain |
From: COUTHURES A. <ala...@ag...> - 2011-03-13 20:17:21
|
Leigh, > Until the restriction on one bind element per node gets lifted, this > helps you find the problem. > (Note that the restriction is peculiar to XSLTForms and is not part of > XForms 1.1) > > =================================================================== > --- xsltforms.js (xsltforms-dataisland-478) > +++ xsltforms.js (working copy) > @@ -2340,7 +2340,7 @@ > var node = this.nodes[i]; > var bindid = Core.getMeta(node, "bind"); > if (bindid&& this.element.id != bindid) { > - XFProcessor.error(el, "xforms-binding-exception", "Two > binds affect one node"); > + XFProcessor.error(el, "xforms-binding-exception", "Two > binds affect one node: " + bindid + ", " + this.element.id); > } else { > Core.setMeta(node, "bind", this.element.id); > This was already done at r484. At r493, I added experimental support for multiple bindings, considering that they are treated in document order and that conflicting MIPs are not indicated. > @@ -9241,6 +9241,7 @@ > if (arguments.length == 0) { > throw XPathCoreFunctionsExceptions.serializeNoContext; > } > + if (!nodeSet[0]) return ""; > return Core.saveXML(nodeSet[0]); > } ), > This was already done at r482. Thanks! -Alain |
From: ac <ac...@hy...> - 2011-03-13 03:33:30
|
Hi Rajamani, Alain, Thank you for your support. It is all working fine now. Regards, ac > > Hi AC!!! > > From February mid onwards we are using the latest version of > XSLTForms-beta3 for the Local File/Save option Testing. Its working > fine and generating correct XML output file... So, Better you can use > the following link to download the latest one which has the support > for local file/save. > > http://sourceforge.net/projects/xsltforms/files/xsltforms/Beta%203/xsltforms-beta3.zip > <http://sourceforge.net/projects/xsltforms/files/xsltforms/Beta%203/xsltforms-beta3.zip/download> > > By > Rajamani Marimuthu > XRX Team(Lead) > > On 03/09/11, *ac * <ac...@hy...> wrote: >> >> Hi Alain, >> >> Unfortunately, I am still puzzled by the errors that I am getting >> from trying to use applet-based save/load in XSLTForms. If this is a >> version related issue, could you point me to a working version, or >> indicate which file version I should pickup from SVN. >> >> If, rather, it is something else that I am doing wrong, could you >> provide some indication? >> >> Does somebody else effectively use XSLTForms' new applet-based local >> save/load features? if so, which version of XSLTForms and XSLTForms >> components are you using? >> >> Thank you. >> >> Regards, >> Andre >> >> >> >> >> Hi Alain, >> >> Sometime, the simplest things ... >> >> I checked the version number and it was and is still 487. >> >> I went to the SVN repo >> (http://xsltforms.svn.sourceforge.net/viewvc/xsltforms/branches/dataisland/build/) >> and picked up every file updated in the last 10 days, including the >> xsltforms.js, xsltforms.xsl, and xsltforms.jar >> >> Still using Firefox v3.6.14, and having reset the cache, I got this >> error, on pressing the "Local Save" button: >> >> >> XSLTForms Exception >> -------------------------- >> >> Error initializing : >> >> ((void 0),"UTF-8","string","XSLTForms Java >> Saver","<stratml:PerformancePlanOrReport >> xmlns:stratml=\"http://www.stratml.net/PerformancePlanOrReport\" >> Type=\"Strategic_Plan\"><stratml:Name>Plan Name Goes >> Here</stratml:Name><stratml:Desc-ription/><stratml:OtherInformation/><stratml:StrategicPlanCore><stratml:Organization><stratml:Name/><stratml:Acronym/><stratml:Identifier/><stratml:Desc-ription/><stratml:Stakeholder><stratml:Name/><stratml:Desc-ription/><stratml:Role><stratml:Name/><stratml:Desc-ription/><stratml:RoleType/></stratml:Role></stratml:Stakeholder></stratml:Organization><stratml:Vision><stratml:Desc-ription/><stratml:Identifier/></stratml:Vision><stratml:Mission><stratml:Desc-ription/><stratml:Identifier/></stratml:Mission><stratml:Value><stratml:Name/><stratml:Desc-ription/></stratml:Value><stratml:Goal><stratml:Name/><stratml:Desc-ription/><stratml:Identifier/><stratml:SequenceIndicator/><stratml:OtherInformation/><stratml:Stakeholder><st >> ratml:Name/><stratml:Desc-ription/><stratml:Role><stratml:Name/><stratml:Desc-ription/><stratml:RoleType/></stratml:Role></stratml:Stakeholder><stratml:Objective><stratml:Name/><stratml:Desc-ription/><stratml:Identifier/><stratml:SequenceIndicator/><stratml:OtherInformation/><stratml:Stakeholder><stratml:Name/><stratml:Desc-ription/><stratml:Role><stratml:Name/><stratml:Desc-ription/><stratml:RoleType/></stratml:Role></stratml:Stakeholder><stratml:PerformanceIndicator >> ValueChainStage=\"\" >> IndicatorType=\"\"><stratml:MeasurementDimension/><stratml:UnitOfMeasurement/><stratml:Identifier/><stratml:OtherInformation/><stratml:RelationshipRelationshipType=\"\"><stratml:Name/><stratml:Desc-ription/><stratml:Identifier/></stratml:Relationship><stratml:MeasurementInstance><stratml:TargetResult><stratml:Desc-ription/><stratml:NumberOfUnits/><stratml:StartDate/><stratml:EndDate/></stratml:TargetResult><stratml:ActualResult><stratml:Desc-ription/><stratml:NumberOfUnits/><stratml:StartDate/><stratml:EndDate/></stratml:ActualResult></stratml:MeasurementInstance></stratml:PerformanceIndicator></stratml:Objective></stratml:Goal></stratml:StrategicPlanCore><stratml:AdministrativeInformation><stratml:StartDate/><stratml:EndDate/><stratml:PublicationDate/><stratml:Source/></stratml:Admi >> nistrativeInformation><stratml:Submitter><stratml:FirstName/><stratml:LastName/><stratml:PhoneNumber/><stratml:EmailAddress/></stratml:Submit >> ter></stratml:PerformancePlanOrReport>")@http://localhost:8080/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:341 >> ("","UTF-8","string","XSLTForms Java >> Saver","<stratml:PerformancePlanOrReport >> xmlns:stratml=\"http://www.stratml.net/PerformancePlanOrReport\" >> Type=\"Strategic_Plan\"><stratml:Name>Plan Name Goes >> Here</stratml:Name><stratml:Desc-ription/><stratml:OtherInformation/><stratml:StrategicPlanCore><stratml:Organization><stratml:Name/><stratml:Acronym/><stratml:Identifier/><stratml:Desc-ription/><stratml:Stakeholder><stratml:Name/><stratml:Desc-ription/><stratml:Role><stratml:Name/><stratml:Desc-ription/><stratml:RoleType/></stratml:Role></stratml:Stakeholder></stratml:Organization><stratml:Vision><stratml:Desc-ription/><stratml:Identifier/></stratml:Vision><stratml:Mission><stratml:Desc-ription/><stratml:Identifier/></stratml:Mission><stratml:Value><stratml:Name/><stratml:Desc-ription/></stratml:Value><stratml:Goal><stratml:Name/><stratml:Desc-ription/><stratml:Identifier/><stratml:SequenceIndicator/><stratml:OtherInformation/><stratml:Stakeholder><st >> ratml:Name/><stratml:Desc-ription/><stratml:Role><stratml:Name/><stratml:Desc-ription/><stratml:RoleType/></stratml:Role></stratml:Stakeholder><stratml:Objective><stratml:Name/><stratml:Desc-ription/><stratml:Identifier/><stratml:SequenceIndicator/><stratml:OtherInformation/><stratml:Stakeholder><stratml:Name/><stratml:Desc-ription/><stratml:Role><stratml:Name/><stratml:Desc-ription/><stratml:RoleType/></stratml:Role></stratml:Stakeholder><stratml:PerformanceIndicator >> ValueChainStage=\"\" >> IndicatorType=\"\"><stratml:MeasurementDimension/><stratml:UnitOfMeasurement/><stratml:Identifier/><stratml:OtherInformation/><stratml:RelationshipRelationshipType=\"\"><stratml:Name/><stratml:Desc-ription/><stratml:Identifier/></stratml:Relationship><stratml:MeasurementInstance><stratml:TargetResult><stratml:Desc-ription/><stratml:NumberOfUnits/><stratml:StartDate/><stratml:EndDate/></stratml:TargetResult><stratml:ActualResult><stratml:Desc-ription/><stratml:NumberOfUnits/><stratml:StartDate/><stratml:EndDate/></stratml:ActualResult></stratml:MeasurementInstance></stratml:PerformanceIndicator></stratml:Objective></stratml:Goal></stratml:StrategicPlanCore><stratml:AdministrativeInformation><stratml:StartDate/><stratml:EndDate/><stratml:PublicationDate/><stratml:Source/></stratml:Admi >> nistrativeInformation><stratml:Submitter><stratml:FirstName/><stratml:LastName/><stratml:PhoneNumber/><stratml:EmailAddress/></stratml:Submit >> ter></stratml:PerformancePlanOrReport>")@http://localhost:8080/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:355 >> ()@http://localhost:8080/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:2659 >> ([object >> Event])@http://localhost:8080/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:7387 >> <Event]%29@http://localhost:8080/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:7387> >> ([object >> HTMLSpanElement],"xforms-submit")@http://localhost:8080/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:7285 >> ([object HTMLSpanElement],[object Element],[object >> Event])@http://localhost:8080/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:3280 >> <Event]%29@http://localhost:8080/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:3280> >> ([object HTMLSpanElement],[object Element],[object >> Event])@http://localhost:8080/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:3141 >> <Event]%29@http://localhost:8080/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:3141> >> ([object HTMLSpanElement],[object Element],[object >> Event])@http://localhost:8080/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:3126 >> <Event]%29@http://localhost:8080/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:3126> >> (2)@http://localhost:8080/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:1319 >> <2%29@http://localhost:8080/library/hyperform/stratml/asset/xml/xsltforms/xsltforms.js:1319> >> >> >> TypeError >> >> document.applets.xsltforms.writeFile is not a function >> >> >> >> Line 341 in xsltforms.js is indeed >> return document.applets["xsltforms"].writeFile(fname, >> encoding, xsdtype, title, content) == 1; >> >> So it seems that there was an improvement, but I must still have >> something wrong. Any light that you could shed would be still much >> appreciated. >> >> Thank you. >> >> Regards, >> Andre >> >> >> >>> Hi André, >>> >>> The message you obtained comes from an older version than Beta3 >>> which was indeed released on 2011-02-27. >>> >>> Please check the first line in the xsltforms.js file. >>> >>> Thanks! >>> >>> -Alain >>> >>> Le 04/03/2011 19:19, Andre Cusson a écrit : >>>> Hi Alain, >>>> >>>> Using RC3 from 2011-02-27, I tried getting the applet-based saving >>>> and loading but I must have missed something as I am getting this >>>> message when I either try to load or save: >>>> >>>> XSLTForms Submission >>>> --------------------------- >>>> >>>> file:// >>>> >>>> file:// is not supported for security reasons. >>>> >>>> Contents copied instead in clipboard if possible >>>> and displayed by the browser. >>>> >>>> >>>> In the model, I used >>>> >>>> <xf:submission id="save" method="put" replace="none" action="file://"> >>>> <xf:message level="modeless" ev:event="xforms-submit-error">Submit >>>> error.</xf:message> >>>> </xf:submission> >>>> <xf:submission id="load" method="get" serialization="none" >>>> replace="instance" action="file://"> >>>> <xf:message level="modeless" ev:event="xforms-submit-error">Submit >>>> error.</xf:message> >>>> </xf:submission> >>>> >>>> and in the form I have: >>>> >>>> <xf:submit submission="save"> >>>> <xf:label>Save to local disk</xf:label> >>>> </xf:submit> >>>> <xf:submit submission="load"> >>>> <xf:label>Restore from local disk</xf:label> >>>> </xf:submit> >>>> >>>> >>>> What must I be doing wrong this time :)? >>>> >>>> Thank you. >>>> >>>> Rgards, >>>> Andre >>>> >>>> >>>> >>>> >>>> Hello, >>>> >>>> I have added"file://" support in submission allowing users to save and >>>> restore data instances on local disk with regular files. >>>> >>>> This is based on a Java applet. There are some integrated security >>>> restrictions such as forbidden file extensions (.exe,...) and maximum >>>> size (100 Mo). BOM is not yet supported. >>>> >>>> Each time, a Java file dialog is displayed to allow the user to select >>>> the folder and to enter the file shortname. This dialog is initialized >>>> with the path after"file://", if any. >>>> >>>> I have tested this successfully on Windows with FireFox, IE and Chrome >>>> (there were some errors before accepting the applet, maybe wait >>>> instructions (1 or 2 seconds) might help...) but it doesn't work yet >>>> with Opera. Please find my test case below. >>>> >>>> Thank you for your feedbacks! >>>> >>>> -Alain >>>> ------------------------------------------------------------------------ >>>> <?xml version="1.0" encoding="UTF-8"?> >>>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >>>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >>>> <html xmlns="http://www.w3.org/1999/xhtml" >>>> xmlns:xf="http://www.w3.org/2002/xforms"> >>>> <head> >>>> <title>Address Form</title> >>>> <xf:model> >>>> <xf:instance> >>>> <Address xmlns=""> >>>> <LocationStreetFullText/> >>>> <LocationCityName/> >>>> <LocationStateName/> >>>> <LocationPostalID/> >>>> </Address> >>>> </xf:instance> >>>> <xf:submission id="save" method="put" replace="none" action="file://"> >>>> <xf:message level="modeless" ev:event="xforms-submit-error">Submit >>>> error.</xf:message> >>>> </xf:submission> >>>> <xf:submission id="load" method="get" serialization="none" >>>> replace="instance" action="file://"> >>>> <xf:message level="modeless" ev:event="xforms-submit-error">Submit >>>> error.</xf:message> >>>> </xf:submission> >>>> </xf:model> >>>> </head> >>>> <body> >>>> <xf:group ref="/Address"> >>>> <fieldset> >>>> <legend>Mailing Address</legend> >>>> <xf:input ref="LocationStreetFullText"> >>>> <xf:label>Street:</xf:label> >>>> </xf:input> >>>> <br/> >>>> <xf:input ref="LocationCityName"> >>>> <xf:label>City:</xf:label> >>>> </xf:input> >>>> <br/> >>>> <xf:input ref="LocationStateName"> >>>> <xf:label>State:</xf:label> >>>> </xf:input> >>>> <br/> >>>> <xf:input ref="LocationPostalID"> >>>> <xf:label>Postal Code:</xf:label> >>>> </xf:input> >>>> </fieldset> >>>> </xf:group> >>>> <xf:submit submission="save"> >>>> <xf:label>Save to local disk</xf:label> >>>> </xf:submit> >>>> <xf:submit submission="load"> >>>> <xf:label>Restore from local disk</xf:label> >>>> </xf:submit> >>>> </body> >>>> </html> >>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> What You Don't Know About Data Connectivity CAN Hurt You >>> This paper provides an overview of data connectivity, details >>> its effect on application quality, and explores various alternative >>> solutions.http://p.sf.net/sfu/progress-d2d >>> >>> >>> _______________________________________________ >>> Xsltforms-support mailing list >>> Xsl...@li...<Xsl...@li...> >>> https://lists.sourceforge.net/lists/listinfo/xsltforms-support >> > > -- > Rajamani Marimuthu > Junior Research Fellow-JRF > NIC -Open Technology Centre > Rajaji Bhavan > Besant Nagar, > Chennai - 90 > Cell : 9791125383 > |
From: Leigh L K. Jr <lei...@xe...> - 2011-03-11 21:58:22
|
There is a way to express this in XForms 1.1: Use the date type in the XForms namespace, which is defined as union of empty and xsd:date. Processors should give you this effect when you use the unqualified names: <bind nodeset="foo" type="date" /> See http://www.w3.org/TR/xforms11/#empty-content-types In an XForms 1.0 processor, you can do the same thing by defining your own type to be a union of xsd:date and the empty string. Leigh. On 03/09/2011 08:11 AM, Philip Fennell wrote: > > Florent wrote: > > > Isn't that the purpose of xf:bind/@required? > > Which anyway has the default "false". > > The issue with xs:date, for example, is that a value of '' is not a > valid date and cases where a field that contains a non-mandatory date > the type xs:date cannot be used but the user may still desire a > date-picker control. I wonder whether the appearance attribute has a > role in this but that'd be purely implementation dependant. > > The only practical work around is to use a check box to control the > relevance of the date field and then the problem goes away because no > validation errors will be generated until the field is enabled. > > > Regards > > Philip > > > -----Original Message----- > From: Florent Georges [mailto:li...@fg...] > Sent: 09 March, 2011 4:03 PM > To: xsl...@li...; Philip Fennell > Subject: Re: [Xsltforms-support] Can you use the date picker without > setting the type to xs:date? > > Philip Fennell wrote: > > Hi, > > > If I set the type attribute on an xf:bind to xs:date then a > > date picker is rendered for a control that uses that bind. > > However, the xs:date type does not allow for empty values and > > therefore cannot be used where a date field might have no > > value. > > Isn't that the purpose of xf:bind/@required? Which anyway has > the default "false". > > Regards, > > -- > Florent Georges > http://fgeorges.org/ > > > > > > ------------------------------------------------------------------------------ > > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > |
From: Leigh L K. Jr <lei...@xe...> - 2011-03-11 21:53:33
|
Until the restriction on one bind element per node gets lifted, this helps you find the problem. (Note that the restriction is peculiar to XSLTForms and is not part of XForms 1.1) =================================================================== --- xsltforms.js (xsltforms-dataisland-478) +++ xsltforms.js (working copy) @@ -2340,7 +2340,7 @@ var node = this.nodes[i]; var bindid = Core.getMeta(node, "bind"); if (bindid && this.element.id != bindid) { - XFProcessor.error(el, "xforms-binding-exception", "Two binds affect one node"); + XFProcessor.error(el, "xforms-binding-exception", "Two binds affect one node: " + bindid + ", " + this.element.id); } else { Core.setMeta(node, "bind", this.element.id); @@ -9241,6 +9241,7 @@ if (arguments.length == 0) { throw XPathCoreFunctionsExceptions.serializeNoContext; } + if (!nodeSet[0]) return ""; return Core.saveXML(nodeSet[0]); } ), |
From: Leigh L K. Jr <lei...@xe...> - 2011-03-11 21:52:10
|
We're defining other widgets with XSLTForms. We've found some changes from Claudius Teodorescu are necessary. They seem not to have an effect on unmodified XSLTForms and they are necessary to write your own widgets. Changes from xsltforms-dataisland-481.zip Subset of changes from exsltforms. See step 4 of installation.txt (http://sourceforge.net/projects/extxsltforms). diff xsltforms-dataisland-481/xsltforms.xsl xsltforms.xsl 151c151 < <xsl:copy-of select="$config/extensions/beforeInit"/> --- > <xsl:copy-of select="$config/extensions/beforeInit/*"/> 180c180 < <xsl:copy-of select="$config/extensions/onBeginInit"/> --- > <xsl:value-of select="$config/extensions/onBeginInit"/> 333c333 < <xsl:copy-of select="$config/extensions/afterInit"/> --- > <xsl:copy-of select="$config/extensions/afterInit/*"/> |
From: COUTHURES A. <ala...@ag...> - 2011-03-09 21:17:30
|
Hi André, Here is my test case for the applet: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms"> <head> <title>Address Form</title> <xf:model> <xf:instance> <Address xmlns=""> <LocationStreetFullText/> <LocationCityName/> <LocationStateName/> <LocationPostalID/> </Address> </xf:instance> <xf:submission id="save" method="put" replace="none" action="file://"> <xf:message level="modeless" ev:event="xforms-submit-error">Submit error.</xf:message> </xf:submission> <xf:submission id="load" method="get" serialization="none" replace="instance" action="file://"> <xf:message level="modeless" ev:event="xforms-submit-error">Submit error.</xf:message> </xf:submission> </xf:model> </head> <body> <xf:group ref="/Address"> <fieldset> <legend>Mailing Address</legend> <xf:input ref="LocationStreetFullText"> <xf:label>Street: </xf:label> </xf:input> <br/> <xf:input ref="LocationCityName"> <xf:label>City: </xf:label> </xf:input> <br/> <xf:input ref="LocationStateName"> <xf:label>State: </xf:label> </xf:input> <br/> <xf:input ref="LocationPostalID"> <xf:label>Postal Code: </xf:label> </xf:input> </fieldset> </xf:group> <xf:submit submission="save"> <xf:label>Save to local disk</xf:label> </xf:submit> <xf:submit submission="load"> <xf:label>Restore from local disk</xf:label> </xf:submit> </body> </html> Do you have errors with it? Is it possible for you send me a link to your own test case? Thanks! -Alain Le 09/03/2011 14:25, ac a écrit : > Hi Alain, > > Unfortunately, I am still puzzled by the errors that I am getting from > trying to use applet-based save/load in XSLTForms. If this is a > version related issue, could you point me to a working version, or > indicate which file version I should pickup from SVN. > > If, rather, it is something else that I am doing wrong, could you > provide some indication? > > Does somebody else effectively use XSLTForms' new applet-based local > save/load features? if so, which version of XSLTForms and XSLTForms > components are you using? > > Thank you. > > Regards, > Andre |
From: Philip F. <Phi...@ma...> - 2011-03-09 16:11:50
|
Florent wrote: > Isn't that the purpose of xf:bind/@required? > Which anyway has the default "false". The issue with xs:date, for example, is that a value of '' is not a valid date and cases where a field that contains a non-mandatory date the type xs:date cannot be used but the user may still desire a date-picker control. I wonder whether the appearance attribute has a role in this but that'd be purely implementation dependant. The only practical work around is to use a check box to control the relevance of the date field and then the problem goes away because no validation errors will be generated until the field is enabled. Regards Philip -----Original Message----- From: Florent Georges [mailto:li...@fg...] Sent: 09 March, 2011 4:03 PM To: xsl...@li...; Philip Fennell Subject: Re: [Xsltforms-support] Can you use the date picker without setting the type to xs:date? Philip Fennell wrote: Hi, > If I set the type attribute on an xf:bind to xs:date then a > date picker is rendered for a control that uses that bind. > However, the xs:date type does not allow for empty values and > therefore cannot be used where a date field might have no > value. Isn't that the purpose of xf:bind/@required? Which anyway has the default "false". Regards, -- Florent Georges http://fgeorges.org/ |
From: Florent G. <li...@fg...> - 2011-03-09 16:02:58
|
Philip Fennell wrote: Hi, > If I set the type attribute on an xf:bind to xs:date then a > date picker is rendered for a control that uses that bind. > However, the xs:date type does not allow for empty values and > therefore cannot be used where a date field might have no > value. Isn't that the purpose of xf:bind/@required? Which anyway has the default "false". Regards, -- Florent Georges http://fgeorges.org/ |