|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Checking element to see if it has children...
On 10/12/03 1:50 AM, "David Carlisle" <davidc@xxxxxxxxx> wrote: > > >> I want the path to end with the element only if it doesn't contain other >> elements, i.e. what railroad fans might call a "stub": > > Since xml is normally called a tree rather than a network, that's a leaf > not a stub. > > <xsl:for-each select="/*//*"> > > selects ever descendent of the first child, ie every element except teh > document element, you want every element with no child element that's > <xsl:for-each select="//*[not(*)"> > > (testing for no children (and generating path expressions) are both in > the faq for this list at www.dpawson.co.uk) > > David > This worked like a charm--why is it every time I think you don't know what I'm talking about (because I can be unclear at 3AM as if you haven't already noticed) I find out you know exactly what I'm looking for? Thanks again, /johnny :) -- INTIMACY = In-to-me-I-see XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








