Re: [Hypercontent-users] xsl
Brought to you by:
alexvigdor
From: Alex V. <av...@co...> - 2006-01-25 14:23:22
|
Hi Carl, You should be able to add that as a clause to the xpath, e.g. <xsl:for-each select = "$navigation/nav-item/nav-item/nav-item[nav- item and starts-with(/cms:wrapper/cms:source/ @directory,@directory)]"> Cheers, Alex On Jan 25, 2006, at 9:04 AM, Carl Barrow wrote: > Hi Alex > > I'm creating menu items from various parts in the site using ie. > > <xsl:for-each select = "$navigation/nav-item/nav-item/nav-item > [starts-with(/cms:wrapper/cms:source/ @directory,@directory)]"> > > What I need to do is to check if there are child elements present > and only call the template when there is. I can't quite seem to > get that working. I know it's probably just a small if statement, > can you help at all? > > Cheers > Carl > > -- > ************************************ > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > ************************************ > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > |