Hmmmmm. For now, the intrusion is bugging me. For sure, the code is generated. As you write it, i have no control on generated code. I just hope it will go away ! I took away the french words because i get UTF-8 error, thus cannot use sandbox. If your able to test it by putting french words (in the title like : Aucun probl?me pour l'instant, je r?ve en couleur !) and you'll see OPS sandbox crash. Putting french words into instance also crashes the sandbox. Are you saying that i must put an encoding tag ! Trivial question, how to set up encoding into xhtml so xform sanbox does not crash with UTF-8 error msg ? Remember, the UTF-8 problem as nothing to do with the code generated by xforms-to-ajax-xhtml.xsl I founded the image not explicit enought and it did not prove anything except it get's rendered. Since to same code is generated in both side's, i assume that it's not my form wich generate's that extra row. You seem very
confident about this ! Probably i installed it the wrong way, or maybe misconfigured it, or maybe wrongly upgraded to an unstable build. I will again install the last nightly build, see and hope ! Since you ask me not to send you e-mail directly, but to the group, i was wondering if somebody else in the group can reproduce my problem with ops3beta3 with the files attached to this e-mail. I really would like to solve this ;-) home_orbeon.xhtml is the file generated by ops3beta3 orbeon.xhtml is the file generated by xform sandbox at orbeon Example.xhtml is the xform to be translated by OPS. Here is the last row produced by on-line sandbox <tr class="clsOdd xforms-repeat-template"> <td style="background-color:gray;"> <button type="button" id="xforms-element-17" class="xforms-control xforms-trigger">$xforms-label-value$</button> </td> <td
class="Texte"> <p> <span id="xforms-element-23" class="xforms-control xforms-output"></span> </p> </td> <td class="Texte"> <p> <span id="xforms-element-24" class="xforms-control xforms-output"></span> </p> </td> <td class="Texte"> <p> <span id="xforms-element-25" class="xforms-control xforms-output"></span> </p> </td> <td class="Texte"> <p> <span id="xforms-element-26" class="xforms-control xforms-output"></span> </p> </td> </tr> <tr id="repeat-end-info-repeat" class="xforms-repeat-begin-end"></tr> Here is the last row produced by ops3b3 installation at work ! <tr class="xforms-repeat-delimiter"></tr> <tr class="clsOdd xforms-repeat-template"> <td style="background-color:gray;"> <button
type="button" id="xforms-element-16" class="xforms-control xforms-trigger">$xforms-label-value$</button> </td> <td class="Texte"> <p> <span id="xforms-element-22" class="xforms-control xforms-output">$xforms-output-value$</span> </p> </td> <td class="Texte"> <p> <span id="xforms-element-23" class="xforms-control xforms-output">$xforms-output-value$</span> </p> </td> <td class="Texte"> <p> <span id="xforms-element-24" class="xforms-control xforms-output">$xforms-output-value$</span> </p> </td> <td class="Texte"> <p> <span id="xforms-element-25" class="xforms-control xforms-output">$xforms-output-value$</span>
</p> </td> </tr> <tr id="repeat-end-info-repeat" class="xforms-repeat-begin-end"></tr> As you can see, it is allmost the same code. I'm not using the legacy xForm scheme but maybe i should ? I noticed that y have modified the file xforms-to-ajax-xhtml.xsl , between the version 3beta3 and the nightly build ! Here is the code in xforms-to-ajax-xhtml.xsl <!-- - - - - - - XForms repeat - - - - - - --> <xsl:template match="xforms:repeat"> <xsl:param name="id-postfix" select="''" tunnel="yes"/> <xsl:param name="top-level-repeat" select="true()" as="xs:boolean" tunnel="yes"/> <xsl:param name="generate-template" select="true()" as="xs:boolean" tunnel="yes"/> <xsl:param name="repeat-selected" select="true()" as="xs:boolean" tunnel="yes"/> <xsl:variable name="id"
select="concat(@id, $id-postfix)"/> <xsl:variable name="xforms-repeat" select="." as="element()"/> <xsl:variable name="current-repeat-index" select="$repeat-indexes[@id = $xforms-repeat/@id]" as="element()"/> <xsl:variable name="current-repeat-iteration" select="$repeat-iterations[@id = $id]" as="element()?"/> <xsl:variable name="delimiter-local-name" as="xs:string" select="if (not(namespace-uri(*[1]) = 'http://www.w3.org/2002/xforms')) then local-name(*[1]) else 'div'"/> <xsl:variable name="delimiter-namespace-uri" as="xs:string" select="if (not(namespace-uri(*[1]) = 'http://www.w3.org/2002/xforms')) then xs:string(namespace-uri(*[1])) else 'http://www.w3.org/1999/xhtml'"/> <!-- Delimiter: begin repeat --> <xsl:copy-of select="xxforms:repeat-delimiter($delimiter-namespace-uri, $delimiter-local-name, concat('repeat-begin-', $id))"/> <xsl:copy-of select="xxforms:repeat-delimiter($delimiter-namespace-uri, $delimiter-local-name, ())"/> <xsl:if test="$top-level-repeat or not($generate-template)"> <!-- Repeat content for the number of occurrences the XForms Server gives us --> <xsl:for-each select="(1 to $current-repeat-iteration/@occurs)"> <!-- Delimiter: between repeat entries --> <xsl:if test="current() > 1"> <xsl:copy-of select="xxforms:repeat-delimiter($delimiter-namespace-uri, $delimiter-local-name, ())"/> </xsl:if> <!-- Is the
current iteration selected? --> <xsl:variable name="current-repeat-selected" as="xs:boolean" select="$repeat-selected and current() = $current-repeat-index/@index"/> <!-- Is the current iteration relevant? --> <xsl:variable name="action-repeat-iteration" as="element()" select="$response/xxforms:action/xxforms:control-values/xxforms:repeat-iteration[@id = $id and @iteration = current()]"/> <xsl:variable name="current-repeat-relevant" as="xs:boolean" select="$action-repeat-iteration/@relevant = 'true'"/> <!-- Classes we add on the element in the current repeat iteration --> <xsl:variable name="number-parent-repeat" as="xs:integer" select="count(tokenize($id-postfix, '-'))"/> <xsl:variable name="added-classes" as="xs:string*" select="(if ($current-repeat-selected) then concat('xforms-repeat-selected-item-', if
($number-parent-repeat mod 2 = 1) then '1' else '2') else (), if ($current-repeat-relevant) then () else 'xforms-disabled')"/> <!-- Get children of current repeat iteration adding a span element around text nodes --> <xsl:variable name="current-repeat-children-nodes" as="node()*"> <xsl:apply-templates select="$xforms-repeat/node()"> <xsl:with-param name="id-postfix" select="concat($id-postfix, '-', current())" tunnel="yes"/> <xsl:with-param name="top-level-repeat" select="false()" tunnel="yes"/> <xsl:with-param name="generate-template" select="false()" tunnel="yes"/> <xsl:with-param name="repeat-selected" select="$current-repeat-selected" tunnel="yes"/> </xsl:apply-templates> </xsl:variable> <xsl:variable name="current-repeat-children-with-span" as="node()*"> <xsl:for-each
select="$current-repeat-children-nodes"> <xsl:choose> <xsl:when test=". instance of element()"> <xsl:copy-of select="."/> </xsl:when> <xsl:when test="normalize-space() != ''"> <xhtml:span> <xsl:value-of select="."/> </xhtml:span> </xsl:when> <xsl:otherwise> <xsl:value-of select="."/> </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:variable> <!-- Copy elements in current repeat iteration adding class if necessary --> <xsl:for-each select="$current-repeat-children-with-span"> <xsl:choose> <xsl:when test=". instance of element()"> <xsl:copy> <xsl:variable name="classes-on-element" as="xs:string*"
select="(@class, $added-classes)"/> <xsl:if test="count($classes-on-element) > 0"> <xsl:attribute name="class" select="string-join($classes-on-element, ' ')"/> </xsl:if> <xsl:copy-of select="@* except @class"/> <xsl:copy-of select="node()"/> </xsl:copy> </xsl:when> <xsl:otherwise> <xsl:value-of select="."/> </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:for-each> </xsl:if> <xsl:if test="$generate-template"> <!-- Produce templates --> <xsl:if test="$current-repeat-iteration/@occurs > 0"> <xsl:copy-of select="xxforms:repeat-delimiter($delimiter-namespace-uri, $delimiter-local-name, ())"/> </xsl:if> <xsl:for-each
select="$xforms-repeat/node()"> <xsl:choose> <xsl:when test=". instance of element()"> <xsl:variable name="template" as="element()*"> <xsl:apply-templates select="."> <xsl:with-param name="id-postfix" select="$id-postfix" tunnel="yes"/> <xsl:with-param name="top-level-repeat" select="false()" tunnel="yes"/> <xsl:with-param name="generate-template" select="true()" tunnel="yes"/> <xsl:with-param name="selected" select="false()" tunnel="yes"/> </xsl:apply-templates> </xsl:variable> <xsl:for-each select="$template"> <xsl:copy> <xsl:copy-of select="@* except (@xhtml:class, @class)"/> <xsl:choose> <xsl:when test="$top-level-repeat"> <xsl:attribute name="class" select="string-join
((@xhtml:class, @class, 'xforms-repeat-template'), ' ')"/> </xsl:when> <xsl:otherwise> <xsl:copy-of select="@class"/> </xsl:otherwise> </xsl:choose> <xsl:copy-of select="node()"/> <!-- <xsl:apply-templates select="node()">--> <!-- <xsl:with-param name="id-postfix" select="$id-postfix" tunnel="yes"/>--> <!-- <xsl:with-param name="top-level-repeat" select="false()" tunnel="yes"/>--> <!-- <xsl:with-param name="generate-template" select="true()" tunnel="yes"/>--> <!-- <xsl:with-param name="selected" select="false()" tunnel="yes"/>--> <!-- </xsl:apply-templates>--> </xsl:copy> </xsl:for-each> </xsl:when> <xsl:otherwise> <xsl:copy-of
select="."/> </xsl:otherwise> </xsl:choose> </xsl:for-each> </xsl:if> <!-- Delimiter: end repeat --> <xsl:copy-of select="xxforms:repeat-delimiter($delimiter-namespace-uri, $delimiter-local-name, concat('repeat-end-', $id))"/> </xsl:template> <xsl:function name="xxforms:repeat-delimiter" as="element()"> <xsl:param name="delimiter-namespace-uri" as="xs:string"/> <xsl:param name="delimiter-local-name" as="xs:string"/> <xsl:param name="id" as="xs:string?"/> <xsl:element name="{$delimiter-local-name}" namespace="{$delimiter-namespace-uri}"> <xsl:choose> <xsl:when test="$id"> <xsl:attribute name="id" select="$id"/> <xsl:attribute
name="class">xforms-repeat-begin-end</xsl:attribute> </xsl:when> <xsl:otherwise> <xsl:attribute name="class">xforms-repeat-delimiter</xsl:attribute> </xsl:otherwise> </xsl:choose> </xsl:element> </xsl:function> I cannot explain better. I wanted to send you snapshot's and picture's of the results, but can't find snag-it. You ask for a reproductible example. That's the best i can do. I will continue tu build my app. Can anybody help on this !!! -----Message d'origine----- De : Erik Bruchez [[hidden email]] De la part de Erik Bruchez Envoy? : 16 novembre, 2005 12:06 ? : [hidden email] Objet : Re: [ops-users] $xforms-output-value$ extra row using xform:repeat
Phil Jean wrote: > > Erik, > > I use iso-8859-1 as encoding scheme. Look at the source code and see > attached files. I don't see a mention of that encoding in the attached files. > Attached file : orbeon.xhtml > Here is the last row produced by on-line sandbox [...] Yes, that's right, that's what OPS produces, but it's not a bug. Remember, OPS translates XForms + XHTML into HTML. This means that you will see some things in the resulting HTML that you haven't generated yourself. Of course there may be ways to be less intrusive in the case of xforms:repeat, but unless there is an actual problem with the current solution we are not focusing on alternatives at the moment. -Erik
Find your next car at Yahoo! Canada Autos Here is the last row produced by on-line sandbox <tr class="clsOdd xforms-repeat-template"> <td style="background-color:gray;"> <button type="button" id="xforms-element-17" class="xforms-control xforms-trigger">$xforms-label-value$</button> </td> <td class="Texte"> <p> <span id="xforms-element-23" class="xforms-control xforms-output"></span> </p> </td> <td class="Texte"> <p> <span id="xforms-element-24" class="xforms-control xforms-output"></span> </p> </td> <td class="Texte"> <p> <span id="xforms-element-25" class="xforms-control xforms-output"></span> </p> </td> <td class="Texte"> <p> <span id="xforms-element-26" class="xforms-control xforms-output"></span> </p> </td> </tr> <tr id="repeat-end-info-repeat" class="xforms-repeat-begin-end"></tr> ================================================= <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="stylesheet" href="/ops/config/theme/jscalendar/calendar-blue.css" type="text/css"><script type="text/javascript" src="/ops/config/theme/jscalendar/calendar.js"></script><script type="text/javascript" src="/ops/config/theme/jscalendar/lang/calendar-en.js"></script><script type="text/javascript" src="/ops/config/theme/jscalendar/calendar-setup.js"></script><link rel="stylesheet" href="/ops/config/theme/orbeon-layout.cssd" type="text/css"><script type="text/javascript" src="/ops/config/theme/javascript/xforms-style.js"></script><script type="text/javascript" src="/ops/ops/javascript/wz_tooltip.js"></script><script type="text/javascript" src="/ops/ops/javascript/overlib_mini.js"></script><script type="text/javascript" src="/ops/ops/javascript/time-utils.js"></script><script type="text/javascript" src="/ops/ops/javascript/sarissa.js"></script><script type="text/javascript" src="/ops/ops/javascript/xforms.js"></script><title>Orbeon PresentationServer (OPS) Examples</title> </head> <body> <table id="main" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="2" id="banner"> <div style="float: left"><a href="/"><img width="199" height="42" style="border: 0 white; margin-left: 1em; margin-top: 0.2em; margin-bottom: 0.4em" src="/ops/config/theme/images/orbeon-small-blueorange.gif" alt="home"></a></div><span style="float: right; margin-right: 1em; margin-top: .2em; white-space: nowrap"> <form method="GET" class="blue" style="margin:0.2em; margin-bottom:0em" action="http://www.google.com/custom"><a href="http://www.orbeon.com/">Orbeon.com</a> | <a href="/ops/doc/">Documentation</a> | <span style="white-space: nowrap"> Search: <input type="text" name="q" size="10" maxlength="255" value=""><input type="submit" name="sa" VALUE="Go" style="margin-left: 0.2em;"></span><input type="hidden" name="cof" VALUE="GIMP:#FF9900;T:black;LW:510;ALC:#FF9900;L:<a href="http://www.orbeon.com/pics/orbeon-google.png;GFNT:#666699;LC:#666699;LH:42;BGC:#FFFFFF;AH:center;VLC:#666699;GL:0;S:http://www.orbeon.com;GALT:#FF9900;AWFID:8ac636f034abb7d8;">http://www.orbeon.com/pics/orbeon-google.png;GFNT:#666699;LC:#666699;LH:42;BGC:#FFFFFF;AH:center;VLC:#666699;GL:0;S:http://www.orbeon.com;GALT:#FF9900;AWFID:8ac636f034abb7d8;"><input type="hidden" name="sitesearch" value="orbeon.com"></form></span></td> </tr> <tr> <td colspan="2"> <div class="tabs"> <form id="wsrp_rewrite_form_1" style="margin-bottom: 0" method="post" action="/ops/"><input type="hidden" id="wsrp_rewrite_action_1" name="" value=""><span class="tab-selected-left"> </span><span class="tab-selected">Run Example</span><a href="/ops/" onclick="; ; document.getElementById('wsrp_rewrite_action_1').name += '$action^setvalue%26node-ids%26A21R1qCnPIg%3D%26content%26show-portlet&setvalue%26node-ids%26kgJmi%2F61UQE%3D%26content%26OXFExamplesDocumentationPortlet'; document.forms['wsrp_rewrite_form_1'].submit(); event.returnValue=false; return false" class="tab">View Description</a><a href="/ops/" onclick="; ; document.getElementById('wsrp_rewrite_action_1').name += '$action^setvalue%26node-ids%26A21R1qCnPIg%3D%26content%26show-portlet&setvalue%26node-ids%26kgJmi%2F61UQE%3D%26content%26OXFExamplesSourceCodePortlet'; document.forms['wsrp_rewrite_form_1'].submit(); event.returnValue=false; return false" class="tab">View Source</a><input type="hidden" name="$instance" value="Fuly3mwf7Iy66+t14led4HlDff8pHVQKlt2MWs48qVR4zNuJLfwOrcc4aqMlwwgrFvYHeYGAChaV
WaRXSML8qbZNfh1/4/Qi0pJRleYFMmQZDJw0gXt5opTQxZdtL2+a+xpoIGkRC0M8GRVNQX8f3QsS
gQnO28g844GbBOnOlhVqg5hGGp3eZbLkd9fZzqV58+sWJrAQogUbTRiZCpLNfIJwDAUkGJC9"></form> </div> </td> </tr> <tr> <td id="leftcontent" valign="top" width="1%"> <h1>OPS Examples</h1> <form id="wsrp_rewrite_form_2" method="post" action="/ops/"><input type="hidden" id="wsrp_rewrite_action_2" name="" value=""><ul class="tree-sections"> <li class="tree-section">Welcome</li> <ul class="tree-items"> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/welcome">Welcome</a></li> </ul> <li class="tree-section">The Basics</li> <ul class="tree-items"> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/tutorial-hello1">Hello World Classic</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/tutorial-hello2">Hello World MVC</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/tutorial-hello3">Hello World XForms</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/tutorial-hello4">Hello World Page Flow</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/cart">Saving State in the Session</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/java">Integrating w/Java</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/examples-standalone/authentication" target="example">J2EE Authentication</a> <img src="/ops/images/new-window.gif" align="middle"></li> </ul> <li class="tree-section">Document-Centric Apps</li> <ul class="tree-items"> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/bizdoc">"BizDoc" Classic</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/bizdoc2">"BizDoc" NG</a> <span style="font-size: 9px; color: #f90; font-weight: normal">XForms NG</span></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/blog">The OPS Blog</a> <span style="font-size: 9px; color: #f90; font-weight: normal">XForms NG</span></li> </ul> <li class="tree-section">Database App</li> <ul class="tree-items"> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/employees">The "Employees" Example</a></li> </ul> <li class="tree-section">Controlling Page Flow</li> <ul class="tree-items"> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/atm">ATM Page Flow</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/counter">Counter Page Flow</a></li> </ul> <li class="tree-section">Form Handling w/XForms</li> <ul class="tree-items"> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/xforms-controls">Controls</a> <span style="font-size: 9px; color: #f90; font-weight: normal">XForms NG</span></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/xforms-upload">Upload Control</a> <span style="font-size: 9px; color: #f90; font-weight: normal">XForms NG</span></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/xforms-todo">To Do Lists</a> <span style="font-size: 9px; color: #f90; font-weight: normal">XForms NG</span></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/xforms-credit-card">Credit Card Verifier</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/xforms-report">Sortable Table</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/xforms-wizard-switch">Wizard with Switch</a> <span style="font-size: 9px; color: #f90; font-weight: normal">XForms NG</span></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/xforms-wizard-pfc">Wizard with PFC</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/xforms-ubl">Complex UBL Order</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/xforms-calculator">Calculator</a> <span style="font-size: 9px; color: #f90; font-weight: normal">XForms NG</span></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/xforms-tax">Tax Form</a> <span style="font-size: 9px; color: #f90; font-weight: normal">XForms NG</span></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/xforms-translate">Translate This</a> <span style="font-size: 9px; color: #f90; font-weight: normal">XForms NG</span></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/xforms-dynamic-image">Dynamic Image</a> <span style="font-size: 9px; color: #f90; font-weight: normal">XForms NG</span></li> <li class="tree-items-selected" style="white-space: nowrap">XForms Sandbox <span style="font-size: 9px; color: #f90; font-weight: normal">XForms NG</span></li> </ul> <li class="tree-section">Presenting Data</li> <ul class="tree-items"> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/reports">Data in multiple formats</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/charts">Charts & Graphs</a> <span style="font-size: 9px; color: #f90; font-weight: normal">XForms NG</span></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/imageserver">Image Transformations</a></li> </ul> <li class="tree-section">Database Access</li> <ul class="tree-items"> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/address-book">Address Book Classic</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/address-book2">Address Book NG</a> <span style="font-size: 9px; color: #f90; font-weight: normal">XForms NG</span></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/xmldb">XML:DB Databases</a></li> </ul> <li class="tree-section">PDF Processing</li> <ul class="tree-items"> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/pdf-upload">Extract PDF Info</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/pdf-template">PDF Templates</a></li> </ul> <li class="tree-section">Query & Transformation</li> <ul class="tree-items"> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/xquery">XQuery Sandbox</a> <span style="font-size: 9px; color: #f90; font-weight: normal">XForms NG</span></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/xupdate">XUpdate Sandbox</a> <span style="font-size: 9px; color: #f90; font-weight: normal">XForms NG</span></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/xpath">XPath Sandbox</a> <span style="font-size: 9px; color: #f90; font-weight: normal">XForms NG</span></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/xpl">XPL Sandbox</a> <span style="font-size: 9px; color: #f90; font-weight: normal">XForms NG</span></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/xslt">XSLT Sandbox</a> <span style="font-size: 9px; color: #f90; font-weight: normal">XForms NG</span></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/parsing">Parsing XML</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/knight">Computations using XSLT</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/stx">Streaming Transformations</a></li> </ul> <li class="tree-section">Calling a Web Service</li> <ul class="tree-items"> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/quotes">Famous Quotes</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/ca-traffic">California Traffic</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/stock-quote">Stock Quote</a></li> </ul> <li class="tree-section">Messaging</li> <ul class="tree-items"> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/email">Sending Email</a></li> </ul> <li class="tree-section">Cool Stuff</li> <ul class="tree-items"> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/xquery-the-web">XQuery The Web</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/url">HTML Screen-Scraping</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/rss">Create Your Own RSS Feeds</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/spellchecker">Google Spell Checker</a></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/flickr-spell">Flickr Spell</a> <span style="font-size: 9px; color: #f90; font-weight: normal">XForms NG</span></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/xml-to-url">XML to URL</a> <span style="font-size: 9px; color: #f90; font-weight: normal">XForms NG</span></li> <li class="tree-items" style="white-space: nowrap"><a href="/ops/goto-example/yim">Instant Messaging</a></li> </ul> </ul><input type="hidden" name="$instance" value="Fuly3mwf7Iy66+t14led4HlDff8pHVQKlt2MWs48qVR4zNuJLfwOrcc4aqMlwwgrFvYHeYGAChaV
WaRXSML8qbZNfh1/4/Qi0pJRleYFMmQZDJw0gXt5opTQxZdtL2+a+xpoIGkRC0M8GRVNQX8f3QsS
gQnO28g844GbBOnOlhVqg5hGGp3eZbLkd9fZzqV58+sWJrAQogUbTRiZCpLNfIJwDAUkGJC9"></form> </td> <td class="maincontent" valign="top" width="99%"> <h1>Run Example</h1> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td id="mainbody"> <div> <div> <form id="xforms-form" class="xforms-form" action="/ops/" method="POST" onsubmit="return false"><input type="hidden" name="$portlet$x1.target" value="a"><input type="hidden" name="$portlet$x1.mode" value="view"><input type="hidden" name="$portlet$x1.state" value="normal"><input type="hidden" name="$portlet$p1.oxf.path" value="/xforms-server-submit"><input type="hidden" name="$instance" value="Fuly3mwf7Iy66+t14led4HlDff8pHVQKlt2MWs48qVR4zNuJLfwOrcc4aqMlwwgrFvYHeYGAChaV
WaRXSML8qbZNfh1/4/Qi0pJRleYFMmQZDJw0gXt5opTQxZdtL2+a+xpoIGkRC0M8GRVNQX8f3QsS
gQnO28g844GbBOnOlhVqg5hGGp3eZbLkd9fZzqV58+sWJrAQogUbTRiZCpLNfIJwDAUkGJC9"><input type="hidden" name="$portlet$p1.$static-state" value="Fuly3mwf7IyFSd3sxJhHFvKMcWcYXVjgM+4CeUBvG4qkgl/pcnrBIZBnf14BHeiuDtq+uXxHhUgR
0Ht7kLsSAKdihaEtPyVHrkHGj7eHErFVMDnewHemG1A1W1GBtAxEvHDqHWMJpazpShvdZoS3Ddno
iCT3HCStNPRNxrtEgYrWoi1lPf09YoKE4O/ybh8F2HUPTtic3Kt7VyHBpzpnirczA8MaORiHsRjc
XAdoRFZPrMkDkMhiQqvzSNM74BS7YAP40qQIaPJLP7WaIEm+kmxAEQsFcQvDQaHmeTIvWmkuv9Wx
2IP4tLGoexBgQ5QxMSF82D/h85u/mNRx5fr57FvqxG+prg4TUGHM1L0lQxtWwV34I9tsYuIsZrUT
DVD9T1QNylvS7DGPEKa+JGn9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CTxY21+1
Ah1BJz+U1azXQgDCb522fQXbm0ainK1kpf6MuzbUEDoUrIhHXHIOuIcS/tEQb0Ev3kQ="><input type="hidden" name="$portlet$p1.$temp-dynamic-state" value=""><span id="xforms-repeat-tree">info-repeat</span><span id="xforms-repeat-indexes">info-repeat 1</span><span class="xforms-loading-loading"><img src="/ops/images/loading.gif" style="float: left"> Loading... </span><span class="xforms-loading-error"></span><span class="xforms-loading-none"></span> <table id="main" width="800" height="400" border="1" cellpadding="0" cellspacing="0" style="margin:5px;"> <tr height="20" width="800"> <td colspan="2" id="banner" height="20"> <p class="Texte"> <strong></strong> </p> <p class="Texte" style="float: right; margin-right: 1em; margin-top: .2em; white-space: nowrap"> <a href="http://www.uqam.ca">Uqam.ca</a>| <a href="/ops/?$portlet$x1.target=r&$portlet$x1.mode=view&$portlet$x1.state=normal&$portlet$p1.oxf.path=/doc/&$instance=Fuly3mwf7Iy66%2Bt14led4HlDff8pHVQKlt2MWs48qVR4zNuJLfwOrcc4aqMlwwgrFvYHeYGAChaV%0AWaRXSML8qbZNfh1%2F4%2FQi0pJRleYFMmQZDJw0gXt5opTQxZdtL2%2Ba%2BxpoIGkRC0M8GRVNQX8f3QsS%0AgQnO28g844GbBOnOlhVqg5hGGp3eZbLkd9fZzqV58%2BsWJrAQogUbTRiZCpLNfIJwDAUkGJC9">Documentation</a>| <span style="white-space: nowrap">Recherche:</span> <span id="xforms-element-13" class="xforms-group xforms-disabled"> <span id="xforms-element-14" class="xforms-control xforms-input xforms-disabled"><span class="xforms-date-display"></span><input type="text" name="$portlet$p1.xforms-element-14" value="" id="xforms-element-14" class="xforms-type-string"><span class="xforms-showcalendar xforms-type-string"></span></span><label for="xforms-element-14" class="xforms-alert-active xforms-disabled"></label> </span> </p> <br> </td> </tr> <tr height="25" width="800"> <td colspan="2"> <table width="100%" cellpadding="0" cellspacing="0" border="0" style="margin:5px;"> <tr> <td id="navigation tip" align="left" valign="top"> <p class="Texte"> <a href="/ops/?$portlet$x1.target=r&$portlet$x1.mode=view&$portlet$x1.state=normal&$portlet$p1.oxf.path=/entry-portal&$instance=Fuly3mwf7Iy66%2Bt14led4HlDff8pHVQKlt2MWs48qVR4zNuJLfwOrcc4aqMlwwgrFvYHeYGAChaV%0AWaRXSML8qbZNfh1%2F4%2FQi0pJRleYFMmQZDJw0gXt5opTQxZdtL2%2Ba%2BxpoIGkRC0M8GRVNQX8f3QsS%0AgQnO28g844GbBOnOlhVqg5hGGp3eZbLkd9fZzqV58%2BsWJrAQogUbTRiZCpLNfIJwDAUkGJC9">Acceuil</a>[fr] </p> </td> </tr> </table> </td> </tr> <tr width="800"> <td id="leftcontent" valign="top" width="150"> <table width="140" cellpadding="0" cellspacing="0" border="0" style="margin:5px;"> <tr> <td align="left" valign="top" id=""> <p> <table border="0" cellspacing="0" cellpadding="0" align="left"> <tr> <td> <table border="0" cellspacing="2" cellpadding="0" align="left" style="margin-bottom: 10px; padding: 0px;"> <tr> <td align="left" valign="middle" height="25"> <span class="SousTexte"> <strong>CONSULTATIONS</strong> </span> </td> </tr> <tr> <td> <A href="recherche?frameType=frameActeur"> <span class="TexteActeur">Acteurs</span> </A> </td> </tr> <tr> <td> <A href="recherche?frameType=frameDocument"> <span class="TexteDocument">Documents</span> </A> </td> </tr> <tr> <td> <A href="recherche?frameType=frameTerme"> <span class="TexteTerme">Termes</span> </A> </td> </tr> </table> <br> <br> </td> </tr> <tr> <td> <table border="0" cellspacing="2" cellpadding="0" align="left" style="margin: 0px; margin-right: 5px; padding: 0px; "> <tr> <td align="left" valign="middle" height="25"> <span class="SousTexte"> <strong>ADMINISTRATION</strong> </span> <br> </td> </tr> <tr> <td> <A href="propositions"> <span class="SousTexte"> <strong>Propositions</strong> </span> </A> </td> </tr> <tr> <td> <A href="selections"> <span class="SousTexte"> <strong>Selections</strong> </span> </A> </td> </tr> <tr> <td> <A href="administration"> <span class="SousTexte"> <strong>Administration</strong> </span> </A> </td> </tr> </table> <br> <br> </td> </tr> <tr> <td> <table border="0" cellspacing="2" cellpadding="0" align="left"> <tr> <td align="left" valign="middle" height="25"> <span class="SousTexte"> <strong>RAPPORTS</strong> </span> </td> </tr> <tr> <td> <A href="eamActeursReport"> <span class="TexteActeur">Acteurs</span> </A> </td> </tr> <tr> <td> <A href="eamDocumentsReport"> <span class="TexteDocument">Documents</span> </A> </td> </tr> <tr> <td> <A href="eamTermesReport"> <span class="TexteTerme">Termes</span> </A> </td> </tr> <tr> <td> <A href="findEmptysForComments"> <span class="SousTexte"> <strong>Commentaires</strong> </span> </A> </td> </tr> <tr> <td> <A href="eamCommentsRefsReport"> <span class="SousTexte"> <strong>Commentaires Refs</strong> </span> </A> </td> </tr> <tr> <td> <A href="findEmptysImagesForDocs"> <span class="SousTexte"> <strong>Images</strong> </span> </A> </td> </tr> </table> <br> <br> </td> </tr> </table> </p> </td> </tr> </table> </td> <td valign="top"> <table cellpadding="0" cellspacing="0" border="0" style="margin:5px;" width="640"> <tr> <td align="left" valign="top" id="mainbody"> <table width="600" cellpadding="2" cellspacing="2"> <span id="xforms-element-15" class="xforms-group"> <tr style="background-color:gray;"> <td class="Texte"> <p> <small></small> </p> </td> <td class="Texte"> <p> <small> <b>id</b> </small> </p> </td> <td class="Texte"> <p> <small> <b>prenom</b> </small> </p> </td> <td class="Texte"> <p> <small> <b>nom</b> </small> </p> </td> <td class="Texte"> <p> <small> <b>pays</b> </small> </p> </td> </tr> <tr id="repeat-begin-info-repeat" class="xforms-repeat-begin-end"></tr> <tr class="xforms-repeat-delimiter"></tr> <tr class="clsOdd xforms-repeat-selected-item-1"> <td style="background |
Administrator
|
Phil Jean wrote:
> I took away the french words because i get UTF-8 error, thus cannot use > sandbox. If your able to test it by putting french words (in the title > like : Aucun probl?me pour l'instant, je r?ve en couleur !) and you'll > see OPS sandbox crash. Putting french words into instance also crashes > the sandbox. Are you saying that i must put an encoding tag ! Trivial > question, how to set up encoding into xhtml so xform sanbox does not > crash with UTF-8 error msg ? Remember, the UTF-8 problem as nothing to > do with the code generated by xforms-to-ajax-xhtml.xsl The answer is quite easy. Add the following at the top of your XML file: <?xml version="1.0" encoding="ISO-8859-1"?> What happens otherwise is that the editor you are using is apparently not XML-aware, and uses the ISO-8859-1 encoding to write to an XML file which, by default, expects UTF-8. So you either keep using ISO-8859-1 and add the declaration above, or somehow tell your editor to use UTF-8. > I founded the image not explicit enought and it did not prove > anything except it get's rendered. Since to same code is generated > in both side's, i assume that it's not my form wich generate's that > extra row. You s eem very confident about this ! > Probably i installed it the wrong way, or maybe misconfigured it, or > maybe wrongly upgraded to an unstable build. I will again install the > last nightly build, see and hope ! Since you ask me not to send you > e-mail directly, but to the group, i was wondering if somebody else in > the group can reproduce my problem with ops3beta3 with the files > attached to this e-mail. I really would like to solve this ;-) Uh, ok Phil, I am completely lost: I don't have any clue what problem you are actually having. I see your source code, and you use xforms:repeat to iterate over 6 elements in your XForms instance. I run the code in the sandbox, and 6 rows appear quite as expected. > Here is the last row produced by on-line sandbox So what is the problem? > I cannot explain better. I wanted to send you snapshot's and > picture's of the results, but can't find snag-it. You ask for a > reproductible example. That's the best i can do. I will continue tu > build my app. Can anybody help on this !!! Reproducible example is good, but then it should be reproducible example of an issue, so that something can be done about it ;-) -Erik -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |