ENV: solaris9/TS65SP1/LiveSite2.1
Hi all,
I configured the RSS linefeeds for SingleSelect and the Directory one along the ls.210.dev.pdf, however I have some issues with the dropdown one. I use this code and I get the dropdowns, however I do not get them populated. Any ideas here?
Content XML
<Data>
<External>
<Parameters>
<Datum ID="PARAM1" Name="URL" Type="SelectSingle">
<Option Selected="true">
<Display>Business: general</Display>
<Value>
<![CDATA[
http://p.moreover.com/cgi-local/page?c=CRM%20news&o=rss]]></Value>
</Option>
<Option>
<Display>Stencil Group News</Display>
<Value>
<![CDATA[
http://www.stencilgroup.com/ideas_scope_wsindex_rss.xml]]></Value>
</Option>
</Datum>
</Parameters>
<Object>com.interwoven.livesite.external.impl.XML</Object>
<Method>GetURLXML</Method>
</External>
</Data>
Width: 335
Height: 935
Top: 10
Left: 10
Background Color: #FFFFFF
Cache Time: Until Published
Appearance XML:
<Properties>
<Group Name="Main Table" ID="group-2">
<Datum ID="MT1" Type="Number" Name="Cellpadding">5</Datum>
<Datum ID="MT2" Type="Number" Name="Cellspacing">0</Datum>
<Datum ID="MT3" Type="Number" Name="Width">100%</Datum>
<Datum ID="MT4" Type="Number" Name="Border">0</Datum>
<Datum ID="MT5" Type="Color" Name="BGColor">#000000</Datum>
<Datum ID="MT6" Type="Font" Name="Title Font">
<Font Size="80%" Family="verdana" Style="normal" Weight="bold" Color="#ffff00"/>
</Datum>
<Datum ID="MT7" Type="Font" Name="Description Font">
<Font Size="70%" Family="verdana" Style="normal" Weight="normal" Color="#ffffff"/>
</Datum>
</Group>
<Group Name="Item Table" ID="group-3">
<Datum ID="IT1" Type="Color" Name="BGColor">#eeeeee</Datum>
<Datum ID="IT2" Type="Font" Name="Headline Font">
<Font Size="80%" Family="verdana" Style="normal" Weight="bold" Color="#0000cc"/>
</Datum>
<Datum ID="IT3" Type="Font" Name="Source Font">
<Font Size="60%" Family="verdana" Style="normal" Weight="normal" Color="#000000"/>
</Datum>
</Group>
<Datum ID="MAXDATUM" Name="Number of Headlines to Display" Type="Number">6</Datum>
</Properties>
Appearance XSL
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"><xsl:template match="/">
<span>
<script language="javascript">
function getCategories()
{
document.form.submit();
}
</script>
<TABLE>
<xsl:attribute name="cellpadding"><xsl:value-of select="/Properties/Group[
@Name='Main Table']/Datum[
@Name='Cellpadding']"/></xsl:attribute>
<xsl:attribute name="cellspacing"><xsl:value-of select="/Properties/Group[
@Name='Main Table']/Datum[
@Name='Cellspacing']"/></xsl:attribute>
<xsl:attribute name="width"><xsl:value-of select="/Properties/Group[
@Name='Main Table']/Datum[
@Name='Width']"/></xsl:attribute>
<xsl:attribute name="border"><xsl:value-of select="/Properties/Group[
@Name='Main Table']/Datum[
@Name='Border']"/></xsl:attribute>
<xsl:attribute name="bgcolor"><xsl:value-of select="/Properties/Group[
@Name='Main Table']/Datum[
@Name='BGColor']"/></xsl:attribute>
<form>
<xsl:attribute name="name">form</xsl:attribute>
<TR>
<TD colspan="2">
<xsl:attribute name="align"><xsl:value-of select="/Properties/Group[
@Name='Main Table']/Datum[
@Name='Align']"/></xsl:attribute>
<FONT>
<xsl:apply-templates select="/Properties/Group[
@Name='Main Table']/Datum[
@Name='Font']/Font"/>
NEWS HEADLINES - MOREOVER.COM
</FONT>
</TD>
</TR>
<TR>
<xsl:attribute name="bgcolor"><xsl:value-of select="/Properties/Group[
@Name='Dropdowns']/Datum[
@Name='BGColor']"/></xsl:attribute>
<TD>
<table cellpadding="0" cellspacing="0" border="0">
<tr><td>
<FONT>
<xsl:apply-templates select="/Properties/Group[
@Name='Dropdowns']/Datum[
@Name='Font']/Font"/>
Category
</FONT>
</td>
<td width="5"></td>
<td>
<SELECT>
<xsl:attribute name="name">Channel</xsl:attribute>
<xsl:attribute name="style">font-size:<xsl:value-of select="/Properties/Group[
@Name='Dropdowns']/Datum[
@Name='Font']/Font/
@Size"/>;</xsl:attribute>
<xsl:attribute name="onChange">getCategories();</xsl:attribute>
<option>Choose Category</option>
<xsl:for-each select="/Properties/Data/External/Channels/Channel">
<option>
<xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute>
<xsl:if test=". = /Properties/Data/External/selectedChannel">
<xsl:attribute name="selected">true</xsl:attribute>
</xsl:if>
<xsl:value-of select="."/>
</option>
</xsl:for-each>
</SELECT>
</td>
</tr>
</table>
</TD>
<TD align="right">
<table cellpadding="0" cellspacing="0" border="0">
<tr><td>
<FONT>
<xsl:apply-templates select="/Properties/Group[
@Name='Dropdowns']/Datum[
@Name='Font']/Font"/>
<span style="margin-left:5px;">News Feed</span>
</FONT>
</td>
<td width="5"></td>
<td>
<SELECT>
<xsl:attribute name="style">font-size:<xsl:value-of select="/Properties/Group[
@Name='Dropdowns']/Datum[
@Name='Font']/Font/
@Size"/>;</xsl:attribute>
<xsl:attribute name="name">Category</xsl:attribute>
<xsl:attribute name="onChange">getCategories();</xsl:attribute>
<option>Choose Feed</option>
<xsl:for-each select="/Properties/Data/External/Categories/Category">
<option>
<xsl:attribute name="value"><xsl:value-of select="."/></xsl:attribute>
<xsl:if test=". = /Properties/Data/External/selectedCategory">
<xsl:attribute name="selected">true</xsl:attribute>
</xsl:if>
<xsl:value-of select="."/>
</option>
</xsl:for-each>
</SELECT>
</td>
</tr>
</table>
</TD>
</TR>
</form>
</TABLE>
<TABLE>
<xsl:attribute name="width">
<xsl:value-of select="/Properties/Group[
@Name='Main Table']/Datum[
@Name='Width']"/>
</xsl:attribute>
<xsl:attribute name="border">
<xsl:value-of select="/Properties/Group[
@Name='Main Table']/Datum[
@Name='Border']"/>
</xsl:attribute>
<xsl:attribute name="cellpadding">
<xsl:value-of select="/Properties/Group[
@Name='Main Table']/Datum[
@Name='Cellpadding']"/>
</xsl:attribute>
<xsl:attribute name="cellspacing">
<xsl:value-of select="/Properties/Group[
@Name='Main Table']/Datum[
@Name='Cellspacing']"/>
</xsl:attribute>
<xsl:attribute name="bgcolor">
<xsl:value-of select="/Properties/Group[
@Name='Main Table']/Datum[
@Name='BGColor']"/>
</xsl:attribute>
<TR>
<TD>
<A target="linkWindow">
<xsl:attribute name="href">
<xsl:value-of select="/Properties/Data/rss/channel/link"/>
</xsl:attribute>
<FONT>
<xsl:apply-templates select="/Properties/Group[
@Name='Main Table']/Datum[
@Name='Title Font']/Font"/>
<xsl:value-of select="/Properties/Data/rss/channel/title"/>
</FONT>
</A>
<p style="margin:8px;">
<FONT>
<xsl:apply-templates select="/Properties/Group[
@Name='Main Table']/Datum[
@Name='Description Font']/Font"/>
<xsl:value-of select="/Properties/Data/rss/channel/description"/>
</FONT>
</p>
</TD>
</TR>
<TR>
<TD>
<xsl:attribute name="bgcolor">
<xsl:value-of select="/Properties/Group[
@Name='Item Table']/Datum[
@Name='BGColor']"/>
</xsl:attribute>
<ul style="margin-left:5px; margin-top:0px;">
<xsl:for-each select="/Properties/Data/rss/channel/item">
<A target="linkWindow">
<xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute>
<FONT>
<xsl:apply-templates select="/Properties/Group[
@Name='Item Table']/Datum[
@Name='Headline Font']/Font"/>
<xsl:value-of select="title"/>
</FONT>
</A>
<p style="margin:0px;"></p>
<FONT>
<xsl:apply-templates select="/Properties/Group[
@Name='Item Table']/Datum[
@Name='Source Font']/Font"/>
<xsl:value-of select="description "/>
</FONT>
<p style="margin:8px;"></p>
</xsl:for-each>
</ul>
</TD>
</TR>
</TABLE>
</span>
</xsl:template>
<xsl:template match="Font">
<xsl:attribute name="face"><xsl:value-of select="
@Family"/></xsl:attribute>
<xsl:attribute name="color"><xsl:value-of select="
@Color"/></xsl:attribute>
<xsl:attribute name="style">font-size:<xsl:value-of select="
@Size"/>;font-style:<xsl:value-of select="
@Style"/>;font-weight:<xsl:value-of select="
@Weight"/>;</xsl:attribute>
</xsl:template>
</xsl:stylesheet>