[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xsl-list Digest 22 Jan 2005 06:10:00 -0000 Issue 3
jvalentin wrote:
The predicate is working, i.e. when you call template "XXX" with a value of 'A' for parameter "node", the template only outputs the names of nodes related to the 'A' element.i am using this duplicate removing xsl script: <xsl:template match = "/"> <!-- predicate to avoid node ABC... group repetition --> <xsl:apply-templates select="/xml/el[not(node=following::node)]"> <xsl:sort select="node" /> </xsl:apply-templates> </xsl:template> What the predicate doesn't do is restrict the range of the following:: and following-sibling:: axes. So when you are looking at node A-X and you ask if there is a following text node whose value is 'X', the answer is yes because there is one under B. Lars
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|