[Home] [By Thread] [By Date] [Recent Entries]
On 08/02/2012 22:50, Karl Stubsjoen wrote:
because you have used parent::node() (which could more simply be written as ..) rather than parent::* then if it doesn't find the $node-id it will reach / and then (because your template only matches * not /) it will apply the default template to / which will apply templates to its element child, hitting this template again and looping forever. cahanging the match to "*|/" should fix it.This recursion template is failing. I'm getting the error, too many recursions... I would expect that when I get to the root element it would stop recursing. I guess I need a test for root element. Karl.. David -- google plus: https:/profiles.google.com/d.p.carlisle
|

Cart



