Thread: [Hypercontent-users] xsl
Brought to you by:
alexvigdor
From: Carl B. <C.P...@hu...> - 2006-01-25 14:05:07
|
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 ************************************ |
From: Carl P B. <C.P...@hu...> - 2007-07-26 15:20:13
|
***************************************************************************************** To view the terms under which this email is distributed, please go to http://www.hull.ac.uk/legal/email_disclaimer.html ***************************************************************************************** |
From: Alex V. <al...@bi...> - 2007-07-27 00:51:26
|
Have you tried a CDATA section? e.g. <xsl:text> <![CDATA[<!--[if IE 6]><link href="elements/ie6.css" title="standard" rel="stylesheet" type="text/css" media="screen" /><![endif]-->]]> </xsl:text> Cheers, Alex On Jul 26, 2007, at 11:20 AM, Carl P Barrow wrote: > All, > > Does anyone know who I get get the folowing into an xsl template : > <!--[if IE 6]><link href="elements/ie6.css" title="standard" > rel="stylesheet" type="text/css" media="screen" /><![endif]--> > > I just need to check for IE6 and use that stylesheet. > > Cheers > Carl > > ************************************* > > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > > ************************************* > > > > ********************************************************************** > ******************* > To view the terms under which this email is distributed, please go > to http://www.hull.ac.uk/legal/email_disclaimer.html > ********************************************************************** > *******************--------------------------------------------------- > ---------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a > browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users |
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 > |
From: Carl B. <C.P...@hu...> - 2006-01-25 14:43:17
|
I see, thanks very much for that. It's doing what I need it to do now :) Cheers Carl Alex Vigdor wrote: > 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 >> > > > > ------------------------------------------------------- > 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 -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |