RE : $xforms-output-value$ extra row using xform:repeat

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

RE : $xforms-output-value$ extra row using xform:repeat

Phil Jean
How To validate xForm xHtml element's and attribute's with OPS ?
As for the rest, i have upgraded to the latest nightly build. The problem a reduce considerably. Now i'm stuck with one TD with the $....$ stuff. So my code seem to have different effect in xForm source generation depending on OPS versions and builds. Did you ever try to put an empty (no child element) repeat tag a see the result ? So looking (filediff) at the different version of xforms-to-ajax-xhtml.xsl, it should revel insightfull informations. Anyway, i will make sure that my xForms/xHtml is valid against the specs. How can i do that with OPS ?
PJ
-----Message d'origine-----
De : Erik Bruchez [[hidden email]] De la part de Erik Bruchez
Envoy? : 16 novembre, 2005 14:50
Objet : Re: [ops-users] $xforms-output-value$ extra row using xform:repeat
 
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
 
 


Find your next car at Yahoo! Canada Autos

--
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
Reply | Threaded
Open this post in threaded view
|

Re: RE : $xforms-output-value$ extra row using xform:repeat

Alessandro  Vernet
Administrator
Hi Phil,

One thing you can do to avoiding simple XHTML and XForms errors is to
use an editor which is aware of the XHTML and XForms schemas. When
doing this, the editor will warn you do things like using a <xhtml:p>
inside another <xhtml:p>, or incorrectly nest table elements.

You can get 2 schemas for XHTML and XForms that have been updated to
work well together from:

http://cvs.forge.objectweb.org/cgi-bin/viewcvs.cgi/ops/orbeon/src/java/org/orbeon/oxf/xml/schemas/

Look for xforms-1_0-orbeon.xsdc and xhtml1-transitional-orbeon.xsd.

Alex

On 11/17/05, Phil Jean <[hidden email]> wrote:

>
> How To validate xForm xHtml element's and attribute's with OPS ?
> As for the rest, i have upgraded to the latest nightly build. The problem a
> reduce considerably. Now i'm stuck with one TD with the $....$ stuff. So my
> code seem to have different effect in xForm source generation depending on
> OPS versions and builds. Did you ever try to put an empty (no child element)
> repeat tag a see the result ? So looking (filediff) at the different version
> of xforms-to-ajax-xhtml.xsl, it should revel insightfull informations.
> Anyway, i will make sure that my xForms/xHtml is valid against the specs.
> How can i do that with OPS ?
> PJ
> -----Message d'origine-----
> De : Erik Bruchez [mailto:[hidden email]] De la part de Erik Bruchez
> Envoyé : 16 novembre, 2005 14:50
> À : [hidden email]
>  Objet : Re: [ops-users] $xforms-output-value$ extra row using xform:repeat
>
> 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 a
> re 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
>
>
>
>
>  ________________________________
> Find your next car at Yahoo! Canada Autos
>
>
>
> --
> 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
>
>
>

--
Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/



--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet