Re: [xsl] failed to find the right child node

Subject: Re: [xsl] failed to find the right child node
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 31 Aug 2006 22:11:44 +0100
> My output is also an xml file.  If all channel objects are in the same
> network, I will store a true() boolean value in a global variable.
> Otherwise I will store false(). This global variable I will use in other
> part of my process. 


So you apparently just want to test if all channel_object elements in a
document are siblings.

Which is to say you want to test if there is more than one parent of a
channel_object. So you don't need any recursive templates or variables
for that it's just

<xsl:variable name="morethanonenetwork"
 select="boolean((//channel_object/..)[2])"/>

> English is my second language.
Your english is pretty good, understanding the english text
wasn't the problem, see the list guidelines at the URL included at the
end of every message, which advise giving _short_ complete examples, and
stating what result you got and what result you wanted.

David

Current Thread