FAQ

On 6 Aug 2008, at 09:33, Mark Overmeer wrote:

* Mark Overmeer (mark@overmeer.net) [080805 22:35]:
* Drew Taylor (drew@drewtaylor.com) [080805 14:07]:
I think I've come across a bug in 0.91 regarding minOccurs. I've
tried
to simplify down things as much as possible w/o removing the
possible
sources of trouble.
I'll investigate it tomorrow.
Does it work if you change maxOccurs="5" into maxOccurs="unbounded"
in both cases? Those are different optimization paths.
Probably your problem is fixed with this change
XML/Compile/Translate/Writer.pm line 291

my $opt = $max - $min;
sub { my ($doc, $values) = @_;
my @values = ref $values eq 'ARRAY' ? @$values
: defined $values ? $values : ();

( (map { $required->($doc, shift @values) } 1..$min)
, (map { $optional->($doc, shift @values) } 1..$opt)
+ , undef
);
};

Same fix needed at line 274
That did the trick! Thanks for the quick turnaround. :-)

Drew

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 5 | next ›
Discussion Overview
groupxml-compile @
postedAug 1, '08 at 9:36p
activeAug 6, '08 at 10:21a
posts5
users2
websiteperl.overmeer.net...

2 users in discussion

Mark Overmeer: 3 posts Drew Taylor: 2 posts

People

Translate

site design / logo © 2022 Grokbase