Hi all,

 I think there is a conflict between LayersControl and TimeSeries.

If the Context document contains the wmc:Extension tag (as using timeseries 
widget),
LayerControls expects a wmc:GroupList tag as child of wmc:Extension.
In this case wmc:GroupList dosen't exist, so LayersControl's output is empty!

A patch should be:

#svn diff LayerControl.xsl
Index: LayerControl.xsl
===================================================================
--- LayerControl.xsl    (revision 3996)
+++ LayerControl.xsl    (working copy)
@@ -57,12 +57,12 @@
   <xsl:template match="/wmc:ViewContext">
     <div>
       <div class="layerControl">
-        <xsl:if test="wmc:General/wmc:Extension">
+        <xsl:if test="wmc:General/wmc:Extension/wmc:GroupList">
                      <xsl:apply-templates 
select="wmc:General/wmc:Extension/wmc:GroupList/wmc:Group">
                                <xsl:sort select="position()" order="ascending" 
data-type="number"/>
                          </xsl:apply-templates>
                </xsl:if>
-        <xsl:if test="not(wmc:General/wmc:Extension)">
+        <xsl:if test="not(wmc:General/wmc:Extension/wmc:GroupList)">
                          <xsl:apply-templates select="wmc:LayerList/wmc:Layer">
                                          <xsl:sort select="position()" 
order="descending" data-type="number"/>
                          </xsl:apply-templates>


Regards,
-- 
Stefano Menegon

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
mapbuilder-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel

Reply via email to