Hi:
Thank you for your help, Alex. Before to integrate the Orbeon XForms engine in ours web applications, i'm trying to process my XForms in your Example Applications, by deploy these ones in a directory of Tomcat (..\webapps\orbeon\WEB-INF\resources\apps). The page-flow.xml archive has this configuration: <config xmlns="http://www.orbeon.com/oxf/controller" xmlns:xu="http://www.xmldb.org/xupdate"> <page path-info="*" view="adok.xhtml"/> <epilogue url="oxf:/config/epilogue.xpl"/> </config> .. where adok.xhtml (a fragment infra) is my xform. <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cac="urn:igae:names:draft:telcon:schema:xsd:CommonAggregateComponents-1" xmlns:cbc="urn:igae:names:draft:telcon:schema:xsd:CommonBasicComponents-1" xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" xmlns:gc="http://genericode.org/2006/ns/CodeList/0.4/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <head> <title>XForm ADOK</title> <link href="stylesheets/SGACC_xsl.css" rel="stylesheet"/> <link href="stylesheets/igae-xforms.css" rel="stylesheet"/> <script type="text/javascript"> var popup_lista = function(listname) { window.open('listas/'+listname+'.xhtml', listname, "height=200,width=200,menubar=no,status=no") } </script> <xforms:model id="igae"> <xforms:instance id="main" src="oxf:/apps/telconxml/instance/adok.xml"/> <xforms:instance id="ac" src="oxf:/apps/telconxml/gc/autonomouscommunity-1.0.xml"/> <xforms:instance id="pt" src="oxf:/apps/telconxml/gc/paymentmeans-1.0.xml"/> <xforms:instance id="pm" src="oxf:/apps/telconxml/gc/paymentchannel-1.0.xml"/> <xforms:bind nodeset="//cbc:IssueDate" type="xsd:date" /> <xforms:action ev:event="xforms-ready"> <xforms:setfocus control="doctype"/> <xforms:setvalue ref="//cbc:IssueDate" value="substring-before(now(), 'T')"/> </xforms:action> <xforms:bind id="0000-t" nodeset="//cac:Operation/cbc:TypeCode"/> <xforms:bind id="0104" nodeset="//cac:Accounting/cbc:AccountingDate" /> <xforms:bind id="0017" nodeset="//cac:Accounting/cbc:ID" /> <xforms:bind id="0118" nodeset="//cac:Accounting/cbc:PaymentDate" /> <xforms:bind id="0001" nodeset="//cac:AccountingParty/cac:PartyIdentification/cbc:ID" /> <xforms:bind id="0001-name" nodeset="//cac:AccountingParty/cac:PartyName/cbc:Name"/> <xforms:bind id="0006" nodeset="//cac:Accounting/cbc:PreviousOperationID" constraint="string-length(.) < 17"/> .. and more in the attached file (adok.xhtmladok.xhtml) When I click the link of my xform, Orbeon responds with the following error: Error Message [No error message provided.] Call Stack Resource URL Line Column Description XML Element oxf:/config/xforms-widgets.xsl 27 N/A running XForms action action name ? {http://www.w3.org/2002/xforms}setfocus running XForms action action name ? {http://www.w3.org/2002/xforms}action dispatching XForms event event ? xforms-ready target id ? igae initializing XForms containing document <xforms:setfocus control="doctype" id="xforms-element-8"/> <xforms:action ev:event="xforms-ready" id="xforms-element-7">...</xforms:action> oxf:/ops/pfc/xforms-epilogue.xpl 122 68 reading processor output name ? document id ? xhtml-data <p:output name="document" id="xhtml-data"/> oxf:/ops/pfc/xforms-epilogue.xpl 128 67 reading processor output name ? data ref ? xformed-data <p:output name="data" ref="xformed-data"/> oxf:/config/epilogue.xpl 44 58 reading processor output name ? xformed-data id ? xformed-data <p:output name="xformed-data" id="xformed-data"/> oxf:/config/epilogue-servlet.xpl 31 48 reading processor output name ? xformed-data <p:param type="input" name="xformed-data"/> oxf:/config/epilogue.xpl 62 46 executing processor name ? {http://www.orbeon.com/oxf/processors}pipeline <p:processor name="oxf:pipeline">...</p:processor> oxf:/apps/telconxml/page-flow.xml 19 47 executing processor name ? {http://www.orbeon.com/oxf/processors}pipeline oxf:/page-flow.xml 44 106 reading page model data output page id ? apps model ? apps/${1}/page-flow.xml <page id="apps" path-info="/([^/]+)/.*" matcher="oxf:perl5-matcher" model="apps/${1}/page-flow.xml"/> Java Exceptions (5 total) java.lang.NullPointerException .. and Java Exceptions I would appreciate it tells me that might be the problem. Thank you very much. Greetings. P.S.: We have also sent a message to info@orbeon.com Hi: We are interested in your training and support services, and we wanted to know if these services are supplied in Spain, specifically Madrid. Hola: Estamos interesados en vuestros servicios de formación y soporte, y queríamos saber si los ofreceis en España, concretamente en Madrid. |
Administrator
|
First,
Is this with a recent build of Orbeon Forms? -Erik On May 25, 2009, at 11:31 PM, jfmoreno wrote: > > Hi: > > Thank you for your help, Alex. > > Before to integrate the Orbeon XForms engine in ours web > applications, > i'm trying to process my XForms in your Example Applications, by > deploy > these ones in a directory of Tomcat > (..\webapps\orbeon\WEB-INF\resources\apps). The page-flow.xml > archive has > this configuration: > > <config xmlns="http://www.orbeon.com/oxf/controller" > xmlns:xu="http://www.xmldb.org/xupdate"> > > <page path-info="*" view="adok.xhtml"/> > <epilogue url="oxf:/config/epilogue.xpl"/> > > </config> > > > .. where adok.xhtml (a fragment infra) is my xform. > > <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC > "-//W3C//DTD XHTML 1.0 Transitional//EN" "xhtml1-transitional.dtd"> > > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:ev="http://www.w3.org/2001/xml-events" > > xmlns:cac="urn:igae:names:draft:telcon:schema:xsd:CommonAggregateComponents-1 > " > xmlns:cbc="urn:igae:names:draft:telcon:schema:xsd:CommonBasicComponents-1 > " > > xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2 > " > xmlns:gc="http://genericode.org/2006/ns/CodeList/0.4/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > > <head> > > <title>XForm ADOK</title> > > <link href="stylesheets/SGACC_xsl.css" rel="stylesheet"/> <link > href="stylesheets/igae-xforms.css" rel="stylesheet"/> > > <script type="text/javascript"> > var popup_lista = function(listname) { > window.open('listas/'+listname+'.xhtml', listname, > "height=200,width=200,menubar=no,status=no") } </script> > > <xforms:model id="igae"> > > <!-- default instance: the first instance in document order --> > <xforms:instance id="main" > src="oxf:/apps/telconxml/instance/adok.xml"/> > <!-- xforms:instance id="ao" src="gc/accountingoffices-1.0.xml"/> > <xforms:instance id="oc" src="gc/operationcode-2.0.xml"/ --> > <xforms:instance id="ac" > src="oxf:/apps/telconxml/gc/autonomouscommunity-1.0.xml"/> > <xforms:instance id="pt" > src="oxf:/apps/telconxml/gc/paymentmeans-1.0.xml"/> > <xforms:instance id="pm" > src="oxf:/apps/telconxml/gc/paymentchannel-1.0.xml"/> > <!-- xforms:instance id="act" src="gc/activitiestypes-1.0.xml"/> > <xforms:instance id="cf" src="gc/financingcategories-1.0.xml"/> > <xforms:instance id="fi" src="gc/financialinstitutions-1.0.xml"/> > <xforms:instance id="pr" src="gc/countriessubentities-1.0.xml"/> > <xforms:instance id="rs" src="gc/relationships-1.0.xml"/> > <xforms:instance id="si" src="gc/publicsectors-1.0.xml"/> > <xforms:instance id="eo" src="gc/expenseoperation-1.0.xml"/> > <xforms:instance id="tp" src="gc/thirdpartytypes-1.0.xml"/> > <xforms:instance id="vp" src="gc/streettypes-1.0.xml"/> > <xforms:instance id="ct" src="gc/certificationtypes-1.0.xml"/> > <xforms:instance id="crt" src="gc/credittypes-1.0.xml"/> > <xforms:instance id="ec" src="gc/expensecontracttypes-1.0.xml"/> > <xforms:instance id="sa" src="gc/TenderingProcessCode-0.1.xml"/ --> > <!-- Llista CODICE--> > > <!-- 0105 Fecha documento cal grabarla pero no mostrarla!! --> > <xforms:bind nodeset="//cbc:IssueDate" type="xsd:date" /> > <xforms:action ev:event="xforms-ready"> > <xforms:setfocus control="doctype"/> > <xforms:setvalue ref="//cbc:IssueDate" > value="substring-before(now(), 'T')"/> </xforms:action> > <!-- Tipo Operación --> > <xforms:bind id="0000-t" nodeset="//cac:Operation/cbc:TypeCode"/> > > <!-- Fecha de contabilizacion --> > <xforms:bind id="0104" nodeset="//cac:Accounting/cbc:AccountingDate" > /> <xforms:bind id="0017" nodeset="//cac:Accounting/cbc:ID" /> > <xforms:bind id="0118" nodeset="//cac:Accounting/cbc:PaymentDate" /> > > > > <!-- Oficina Contable --> > <xforms:bind id="0001" > nodeset="//cac:AccountingParty/cac:PartyIdentification/cbc:ID" /> > <xforms:bind id="0001-name" > nodeset="//cac:AccountingParty/cac:PartyName/cbc:Name"/> > > <!-- Operación enlace --> > <!-- xforms:bind id="0006" > nodeset="//cac:Accounting/cbc:PreviousOperationID" / --> <xforms:bind > id="0006" nodeset="//cac:Accounting/cbc:PreviousOperationID" > constraint="string-length(.) < 17"/> > > .. and more in the attached file (adok.xhtml > http://www.nabble.com/file/p23717457/adok.xhtml adok.xhtml ) > > > When I click the link of my xform, Orbeon responds with the following > error: > > Error Message > [No error message provided.] > > Call Stack > Resource URL Line Column Description XML Element > oxf:/config/xforms-widgets.xsl 27 N/A running XForms action action > name ? {http://www.w3.org/2002/xforms}setfocus > running XForms action > action name ? {http://www.w3.org/2002/xforms}action > dispatching XForms event > event ? xforms-ready > target id ? igae > initializing XForms containing document <xforms:setfocus > control="doctype" id="xforms-element-8"/> <xforms:action > ev:event="xforms-ready" id="xforms-element-7">...</xforms:action> > oxf:/ops/pfc/xforms-epilogue.xpl 122 68 reading processor output name > ? document id ? xhtml-data <p:output name="document" > id="xhtml-data"/> oxf:/ops/pfc/xforms-epilogue.xpl 128 67 reading > processor output name ? data ref ? xformed-data <p:output name="data" > ref="xformed-data"/> oxf:/config/epilogue.xpl 44 58 reading processor > output name ? xformed-data id ? xformed-data <p:output > name="xformed-data" id="xformed-data"/> > oxf:/config/epilogue-servlet.xpl 31 48 reading processor output name ? > xformed-data <p:param type="input" name="xformed-data"/> > oxf:/config/epilogue.xpl 62 46 executing processor name ? > {http://www.orbeon.com/oxf/processors}pipeline <p:processor > name="oxf:pipeline">...</p:processor> > oxf:/apps/telconxml/page-flow.xml 19 47 executing processor name ? > {http://www.orbeon.com/oxf/processors}pipeline > oxf:/page-flow.xml 44 106 reading page model data output page id ? > apps model ? apps/${1}/page-flow.xml <page id="apps" > path-info="/([^/]+)/.*" matcher="oxf:perl5-matcher" > model="apps/${1}/page-flow.xml"/> > > Java Exceptions (5 total) > > java.lang.NullPointerException > > .. and Java Exceptions > > > I would appreciate it tells me that might be the problem. > Thank you very much. Greetings. > > > > P.S.: We have also sent a message to [hidden email] > > Hi: > > We are interested in your training and support services, and we > wanted > to know if these services are supplied in Spain, specifically Madrid. > > Hola: > Estamos interesados en vuestros servicios de formación y soporte, y > queríamos saber si los ofreceis en España, concretamente en Madrid. > > > > -- > View this message in context: http://www.nabble.com/Error-Message--No-error-message-provided.--tp23717457p23717457.html > Sent from the ObjectWeb OPS - Users mailing list archive at > Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Hi, Erik:
No. We have deployed the orbeon.war contains in the orbeon-3.6.0.200712061930.zip archive ( Orbeon Forms 3.6.0 - Released on December 7, 2007). Actually these XForms work with Mozilla XForms 0.8.6ff3 extension for FF3. Regarding this some questions, basically what are the differences between these implementations for XForms?, would make many changes to these XForms to work with the Orbeon engine?. Thanks in advance. Best regards. <quote author="Erik Bruchez"> First, Is this with a recent build of Orbeon Forms? -Erik |
Administrator
|
3.6 is quite old; could you try this on a recent nightly build (look for "Orbeon Forms Nightly Build" on http://www.orbeon.com/forms/download), and tell us if the problem still persists? Alex |
Hi:
Thanks for your help. I have install the recent nightly build of OXF. The previous problem does not persist. Still have the following: Error Message XPath syntax error at char 69 in {...ignIndicator='true','/','')...}: expected "then", found "," Show details Hide details Call Stack Resource URL Line Column Description XML Element oxf:/config/xforms-widgets.xsl 24 N/A preparing XPath expression expression ? string(subsequence(if(/cac:Operation/cbc:SignIndicator='true','/',''), 1, 1)) oxf:/ops/pfc/xforms-epilogue.xpl 140 60 reading processor output name ? document id ? xhtml-data <p:output name="document" id="xhtml-data"/> oxf:/ops/pfc/xforms-epilogue.xpl 151 59 reading processor output name ? data ref ? xformed-data <p:output name="data" ref="xformed-data"/> oxf:/config/epilogue.xpl 44 58 reading processor output name ? xformed-data id ? xformed-data <p:output name="xformed-data" id="xformed-data"/> oxf:/config/epilogue-servlet.xpl 31 48 reading processor output name ? xformed-data <p:param type="input" name="xformed-data"/> oxf:/config/epilogue.xpl 65 46 executing processor name ? {http://www.orbeon.com/oxf/processors}pipeline <p:processor name="oxf:pipeline">...</p:processor> oxf:/apps/telconxml/page-flow.xml 19 47 executing processor name ? {http://www.orbeon.com/oxf/processors}pipeline oxf:/page-flow.xml 33 106 reading page model data output page id ? apps model ? apps/${1}/page-flow.xml <page id="apps" path-info="/([^/]+)/.*" matcher="oxf:perl5-matcher" model="apps/${1}/page-flow.xml"/> Java Exceptions (8 total) Java Exceptions are the native mechanism by which Orbeon Forms reports errors. More than one exception may be provided below but usually the first exception along with the Orbeon Forms Stack Trace above provide enough information to track down an issue. org.orbeon.saxon.trans.StaticError Exception Class org.orbeon.saxon.trans.StaticError Message XPath syntax error at char 69 in {...ignIndicator='true','/','')...}: expected "then", found "," Servlet Stack Trace (327 method calls) The XPath expression of my XForm is: <xforms:output value="if(//cac:Operation/cbc:SignIndicator='true','/','')" /> Thanks in advance. Best regards. |
On May 28, 2009, at 2:43 AM, jfmoreno wrote: > > Hi: > > Thanks for your help. > > I have install the recent nightly build of OXF. The previous > problem does > not persist. Still have the following: > > > Error Message > XPath syntax error at char 69 in {...ignIndicator='true','/','')...}: > expected "then", found "," > > > The XPath expression of my XForm is: > > <xforms:output > value="if(//cac:Operation/cbc:SignIndicator='true','/','')" /> call xxforms:if(). Otherwise, use the XPath 2.0 notation: if (bolean-expr) then 'some-value' else 'another-value' http://www.orbeon.com/ops/doc/reference-xforms-functions#orbeon- extensions Regards, Hank > Hank Ratzesberger NEES@UCSB Institute for Crustal Studies, University of California, Santa Barbara 805-893-8042 -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Thank you Hank.
I corrected the XPath expression to 2.0 notation and work. There are still some things I have to solve, but I hope that work. It's very important for me that I can continue to work with Orbeon. Best regards, José. |
Free forum by Nabble | Edit this page |