[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: A way to test only top level nodes to see if they

Subject: Re: A way to test only top level nodes to see if they have children
From: Syd Bauman <Syd_Bauman@xxxxxxxxx>
Date: Tue, 28 Aug 2012 12:12:59 -0400
Re:  A way to test only top level nodes to see if they
It would *really* help if you'd give us short snippet of input and of
desired output. See the posting guidelines at
http://www.mulberrytech.com/xsl/xsl-list/#posting

That said, if your input uses the same element type for top level and
lower level nav entries (in this case, <li>), you may be able to
match the top-level entries with
   <xsl:template match="li">
     <!-- process w/o assigning a link)
   </xsl:template>
and the lower-level nav entries with
   <xsl:template match="li//li">
     <!-- assign a link -->
   </xsl:template>

> I have a navigation list that I am assigning links to every /parent
> node that doesn't have children. Every nested list (children of the
> top level parents) needs to have links assigned to them always.
> Only effecting the top level nodes on the test is hard for me to
> grasp. Any help?
> 
> Eg: (for when top level nav has children)
> home (no link assigned)
> Child (link assigned)
> Child (link assigned)
> 	Grandchild (link assigned)
> Child (link assigned)
> 
> Eg:  (for when top level nav has no children)
> Some Top Level Nav (no link assigned)

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.