I have been using a CMS which is called Umbraco(umbraco.org) and for displaying flash news on the website using SlideShowPro Standalone product(www.slideshowpro.net)
In brief I created a section on admin panel as follows.
-Flash(which has a xslt file)
- Month name
- A node with image
- A node with video
Every month I will be creating a node with name of the month and add image and videos to them. Month node might have all image or video perhaps both are mixed. I do not have any input xml file cause on SlideShowPro Standalone has only a file which outputs desired xml file for flash
here is the xml file:
<album id="ssp" lgPath="" tnPath="" title="Album One" description="" tn="">
<img src="1.jpg" id="id1" title="" caption="" link="" target="_blank" pause="" />
<img src="1.f4v" id="id1" tn="" title="" caption="" link="" target="_blank" pause="" vidpreview" />
</album>
What I did in xslt file is;
<xsl:for-each select="$currentPage/node [string(data [@alias='umbracoNaviHide']) != '1']">
<album lgPath="http://localhost" tnPath="http://localhost" title="{data[@alias = 'albumTitle']}" description="{data[@alias = 'albumDescription']}" tn="http://localhost">
<xsl:for-each select="node">
<xsl:if test = "string-length(./data [@alias = 'image']) > 0" >
<img src="{data[@alias = 'image']}" title="{data[@alias = 'title']}" caption="{data[@alias = 'caption']}" link="{data[@alias = 'link']}" target="_blank" pause=""/>
</xsl:if>
<xsl:if test = "string-length(./data [@alias = 'video']) > 0" >
<img src="{data[@alias = 'video']}" tn="http://localhost" title="{data[@alias = 'title']}" caption="{data[@alias = 'caption']}" link="{data[@alias = 'link']}" target="_blank" pause="" vidpreview="/flash/gallery/album2/video/1_preview.png"/>
</xsl:if>
</xsl:for-each>
</album>
</xsl:for-each>
and that outputs
<album lgPath="http://localhost" tnPath="http://localhost" title="" description="" tn="http://localhost"><img src="/media/951/untitled.png" title="örnek" caption="örnek" link="" target="_blank" pause=""/><img src="/media/1026/1.f4v" title="flash" caption="flash" link="" target="_blank" pause=""/></album>
Even though Larsh pointed out that I should use statament, the result is same...