[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
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)
|
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
|