You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2003/02/06 00:42:03 UTC
DO NOT REPLY [Bug 16824] New: -
XMLForm Nested Repeat Problem
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=16824>.
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=16824
XMLForm Nested Repeat Problem
Summary: XMLForm Nested Repeat Problem
Product: Cocoon 2
Version: 2.0
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: general components
AssignedTo: cocoon-dev@xml.apache.org
ReportedBy: mark@golden-orb.com
When i make a nested repeat the nodeset isnt getting the context added to it.
Ive patched my own code with the following fix without any problems:
XMLFormTransformer.java Line 1098:
// reset ignore hooks counter
this.ignoreHooksCount = 0;
Form currentForm = (Form) formStack.peek();
// START PATCH
//ADD the ablity to unroll nodesets just like ref's
String cRef;
if ( !refStack.isEmpty() ) {
// this is a nested nodeset
cRef = nodeset.startsWith ("/") ? nodeset : ( ((Entry) refStack.peek
()).getValue() + "/" + nodeset );
} else {
// top level nodeset
cRef = nodeset;
}
Collection locations = currentForm.locate( cRef );//was nodeset
//END PATCH
Iterator iter = locations.iterator();
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org