XMLForm transformer

2002-10-15 Thread Nuno Santos

When i was developing a multi edit form, using the xf:repeat tag, i 
realised that it didn´t work before a simple tag call before, like 
"count(*)".

I then checked the source code and found the function that's responsible 
for the Repeat tag unrolling :
"protected void unrollRepeatTag( DocumentFragment docFragment )throws 
SAXException"

inside the function i found a block wich is responsible to get all the 
possible locations inside the «nodeset»:
" Collection locations = currentForm.locate( nodeset );"
" Iterator iter = locations.iterator();"
" while ( iter.hasNext() ){"
"   String nextNodeLocation = (String) iter.next ();"

after expanding the location to a group, there is also a condition 
check, which in point of view is unneeded:
"if (value_ != null)"


is say it because there is no previous "value_" setting if our top tag 
is "xf:repeat", wich means that we need to access a simple tag before 
using the "xf:repeat".

My sugestion is that eather remove the check (that i think is undeed) or 
replace it for a condition check on the group location object " 
Form.getvalue(nextNodeLocation)!=null"



    Best regards
Nuno Santos



-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Form Validator enconding problem

2001-09-26 Thread Nuno Santos

Got a problem whenever i insert some data into a form, using the form
validation action. It just keep enconding characters in diferent ways
 for exmpl: [é] becomes [é] ). Can anyone just give me some clue on
what's the problem and what's causing it??

I'm feeling kinda desperate!!!

    Nuno santos

 smime.p7s