W3C home > Mailing lists > Public > www-forms@w3.org > October 2003

Skipping emty Nodes/SVGs

From: Bastian Mueller <dzbabi@web.de>
Date: Fri, 24 Oct 2003 10:05:39 +0200
Message-Id: <200310240805.h9O85dQ10156@mailgate5.cinetic.de>
To: www-forms@w3.org

Hi all,

I have an XML in that form:


       <fondname> Der Oberfond  </fondname>                                                 



       <fondname> Der Unterfond  </fondname>                                                 


Here is my XSL File:

 <xsl:template match="wsx">
  <svg width="600px" height="500px">

                <g id="bar">

        <xsl:for-each select="comp">
          <xsl:variable name="value" select="val"/>
<rect x="{position()*70}" y="-{$value*4.0}" height="{$value*4.0}" width="30" style="fill:black;">
          <text x="{position()*70 + 7.5}" y="0" style="font-family:arial">
            <xsl:value-of select="sector"/>


It creates a SVG(as you see), but i want that it Creates 3(!) Bars (one for each sector, it is no problem that on Automobiles it is double):

Any Ideas?

Horoskop, Comics, VIPs, Wetter, Sport und Lotto im WEB.DE Screensaver1.2
Kostenlos downloaden: http://screensaver.web.de/?mc=021110
Received on Friday, 24 October 2003 04:32:14 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:09 UTC