xsl-list
[Top] [All Lists]

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

2006-08-31 14:12:02



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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>