Re: [xsl] Selecting and printing certain nodes

Subject: Re: [xsl] Selecting and printing certain nodes
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 19 Feb 2004 22:08:00 GMT
You haven't what transform you are trying to do so it's a bit hard to
offer help. Your stylesheet looks like it could be simplified an awful
lot.

In particular your text will never be output by the code you have shown
as you only generate elemnt nodes and attribute nodes and then recurse,
you never add any text. It may be that your cdata param has your text
but a) you don't show where that it is set, and b) it is never inserted
anywhere, just repeatedly passed from one call of this template to the
next.
The with-param in your xsl:when branch uses a variable data that isn't
defined here, presumably a global variable but again you haven't shown
its definituion.

What is your desired outpt, given the input?

David

-- 
http://www.dcarlisle.demon.co.uk/matthew

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


Current Thread