[xsl] parent node ??

Subject: [xsl] parent node ??
From: "Markus Hanel" <markus.hanel@xxxxxx>
Date: Thu, 27 Nov 2003 09:26:59 +0100 (MET)
hallo,
Perhaps someone can help me, I want to count some node. But it does not
work.
Many thanks , Markus

dtd
<!ELEMENT solution
(#PCDATA|valid_input)*>

xml
<solution>Inhalt<valid_input>Inhalt</valid_input><valid_input>Inhalt_1</valid_input></solution>

xsl
<xsl:variable name="total"
select="count(solution/valid_input[parent::solution = self::valid_input])" />

-- 
HoHoHo! Seid Ihr auch alle schön brav gewesen?

GMX Weihnachts-Special: Die 1. Adresse für Weihnachts-
männer und -frauen! http://www.gmx.net/de/cgi/specialmail

+++ GMX - die erste Adresse für Mail, Message, More! +++


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread