PHP 5, XSL transformations of big files

This is a discussion on PHP 5, XSL transformations of big files within the PHP Language forums, part of the PHP Programming Forums category; On May 3, 12:20 pm, Piotr <s...@poczta.onet.pl> wrote: > Meglio wrote: > >> ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 05-03-2008
Meglio
 
Posts: n/a
Default Re: PHP 5, XSL transformations of big files

On May 3, 12:20 pm, Piotr <s...@poczta.onet.pl> wrote:
> Meglio wrote:
> >> Maybe there is some issue that causes PHP xslt processor to fail or go
> >> into infinite loop. Try cutting the xsl template to few smaller parts
> >> (just for test) and see if the error occurs in any specyfic part. Maybe
> >> there is some syntax used that PHP doesn't really like..

>
> >> Not an xsl expert, so if this is way off, just ignore..

>
> >> best regards
> >> Piotr N

>
> > Hi. Thanks for you advice. But i'm not XSLT expert too so it is not
> > simple way for me to find such bug. So I'm still looking for an expert
> > who can help me to understand where the problems is.

>
> > Thanks,
> > Anton

>
> Afaik, you should find tags like his:
>
> <xsl:template match="some_tag">
> [..]
> </xsl:template>
>
> if you have more then one, simply comment all but one, see if this times
> out, if it doesn't, comment this template out and uncomment next one. Do
> so as long as you find the one that times out.
>
> When you find that one, comment out some functions, like xsl:for-each.
> To comment, use <!-- --> syntax.
>
> I suppose there is also xsl group for xslt specific problems.
>
> best regards
> Piotr N


I'm not sure I'll get working XSL template if I comment some
instructions.
Reply With Quote
  #12 (permalink)  
Old 05-03-2008
Piotr
 
Posts: n/a
Default Re: PHP 5, XSL transformations of big files

Meglio wrote:
>
> I'm not sure I'll get working XSL template if I comment some
> instructions.


It wont produce any good result for sure, but at this point, you
are just checking for what is causing the problem with PHP.
But as i said before, maybe it would be better to ask on xsl group about
template debugging.

best regards
Piotr N
Reply With Quote
  #13 (permalink)  
Old 05-03-2008
Meglio
 
Posts: n/a
Default Re: PHP 5, XSL transformations of big files

On May 3, 12:20 pm, Piotr <s...@poczta.onet.pl> wrote:
> Meglio wrote:
> >> Maybe there is some issue that causes PHP xslt processor to fail or go
> >> into infinite loop. Try cutting the xsl template to few smaller parts
> >> (just for test) and see if the error occurs in any specyfic part. Maybe
> >> there is some syntax used that PHP doesn't really like..

>
> >> Not an xsl expert, so if this is way off, just ignore..

>
> >> best regards
> >> Piotr N

>
> > Hi. Thanks for you advice. But i'm not XSLT expert too so it is not
> > simple way for me to find such bug. So I'm still looking for an expert
> > who can help me to understand where the problems is.

>
> > Thanks,
> > Anton

>
> Afaik, you should find tags like his:
>
> <xsl:template match="some_tag">
> [..]
> </xsl:template>
>
> if you have more then one, simply comment all but one, see if this times
> out, if it doesn't, comment this template out and uncomment next one. Do
> so as long as you find the one that times out.
>
> When you find that one, comment out some functions, like xsl:for-each.
> To comment, use <!-- --> syntax.
>
> I suppose there is also xsl group for xslt specific problems.
>
> best regards
> Piotr N


I'm not sure whether this is PHP or XSLT problem so I have created
another thread in XSLT group too:
http://groups.google.com/group/micro...fd7cc536afaa3#
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:11 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0