Re: maxvars

Thomas Krichel <[email protected]> Wed, 7 Jan 2015 22:44:43 +0000
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
  Bjoern Hoehrmann writes

> You can write complicated functions in Perl using `register_function`.

  Yes. Actually I have done that in the past, and it worked. 
  But there are architectural considerations that make this approach
  not what I am looking for. 

  I could also prep the data in the DOM, to split textual values, say
  into <line> elements. But that would be very complicated once I want
  to layout several columns. Incidentally it was at the attempt of
  several columns that I first hit this maxvars issue.

  All this because there a limit here that most people would 
  agree with makes no sense on modern hardware.

> I forget whether there is a way to check in the XSLT whether a Perl
> helper function is available (and use the XSLT-only version
> otherwise).

  Yes, there is I think. 

> Also it might be an option to use http://exslt.org/ extension
> functions. I would consider that for performance and stability
> reasons in any case.

  I am not sure how that would make the requirement for variable
  creation at recursion go away. I need to create at least one
  variable at each recursion step, don't I? I could try to compress
  all information I need at any recursive step into one variable, but
  it would make the code close to unreadable.

-- 

  Cheers,

  Thomas Krichel                  http://openlib.org/home/krichel
                                              skype:thomaskrichel
_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs