cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 16513] - simple form transformer aka SimpleFormTransformer problem, sticky </error> tag
Date Sun, 02 Feb 2003 11:05:49 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16513>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16513

simple form transformer aka SimpleFormTransformer problem, sticky </error> tag





------- Additional Comments From stark1@axelero.hu  2003-02-02 11:05 -------
In the documentation i read that 2.0.5-dev contains a bugfix:
SimpleFormTransfomer: fixed error tags when no validation data available.
So I had tried it. It is a downloadable version (link from the cocoon users
list):  http://www.apache.org/~vgritsenko/xml-cocoon-205-dev-20030201.tar.gz
Before validation there isn't any error tag in the result html, so the
transformer eliminates them successfully. But it also changes the surrounding
tags too. 
For example:
    Before:  
             <body>
                <form name="MG" action="mg.html" method="POST">
                    <error name="sp_description" when="is-null"><a
href="javascript:jumpTo(document.MG.sp_description);">description
required</a><br/></error>

                    <table>
                        <tr>     After: 
          <body>
          <form method="POST" action="mg.html" name="MG"></form>
          <table>
          <tr>
          ...
I'd tried to change the position of the error element, but the result was always
similar.
I always get the HTML result page and an error message in the error.log file too: 

FATAL_E (2003-02-02) 11:59.11:052   [core.xslt-processor] (/cocoon/twr/mg.html)
Thread-39/TraxErrorHandler: java.lang.ArrayIndexOutOfBoundsException
javax.xml.transform.TransformerException: java.lang.ArrayIndexOutOfBoundsException
        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1226)
        at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
        at java.lang.Thread.run(Thread.java:484)

If a comment out the error element from the xsl file the error breaks off.


I hope this information will help to solve the problem.

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message