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: > >> ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
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 |
|
|||
|
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# |