Altova Mailing List Archives


Re: Generating table

From: "Mark Goldin" <markgoldin@-------.--->
To: NULL
Date: 10/5/2003 11:19:00 AM
It's not giving me what I expect.
"Dimitre Novatchev" <dnovatchev@y...> wrote in message
news:bloh4u$e7jsq$1@I......
> Replace:
>
> <tr>
> <xsl:for-each select="//set">
> <xsl:call-template name="tablerow">
> <xsl:with-param name="value" select="@value" >
> </xsl:with-param>
> </xsl:call-template>
> </xsl:for-each>
> </tr>
>
>
> with
>
>     <xsl:for-each select="//*[set]">
>       <tr>
>         <xsl:for-each select="//set">
>           <xsl:call-template name="tablerow">
>             <xsl:with-param name="value" select="@value" />
>           </xsl:call-template>
>         </xsl:for-each>
>       </tr>
>     </xsl:for-each>
>
>
> =====
> Cheers,
>
> Dimitre Novatchev.
> http://fxsl.sourceforge.net/ -- the home of FXSL
>
>
>
> "Mark Goldin" <markgoldin@c...> wrote in message
> news:OCkuOhsiDHA.2564@T......
> > I want to create a row for categories and then a row per dataset.
> > <?xml version="1.0"?>
> > <?xml-stylesheet type="text/xsl" href="test.xsl"?>
> > <root>
> >  <categories>
> >   <category name="May" />
> >   <category name="June" />
> >   <category name="July" />
> >   <category name="August" />
> >   <category name="September" />
> >   <category name="October" />
> >   <category name="November" />
> >   <category name="December" />
> >   <category name="January" />
> >   <category name="February" />
> >   <category name="March" />
> >   <category name="April" />
> >   </categories>
> >  <dataset seriesname="EAST">
> >   <set value="310" />
> >   <set value="330" />
> >   <set value="323" />
> >   <set value="402" />
> >   <set value="391" />
> >   <set value="421" />
> >   <set value="373" />
> >   <set value="387" />
> >   <set value="403" />
> >   <set value="485" />
> >   <set value="545" />
> >   <set value="516" />
> >   </dataset>
> >  <dataset seriesname="WEST">
> >   <set value="261" />
> >   <set value="260" />
> >   <set value="271" />
> >   <set value="312" />
> >   <set value="329" />
> >   <set value="346" />
> >   <set value="341" />
> >   <set value="321" />
> >   <set value="298" />
> >   <set value="381" />
> >   <set value="435" />
> >   <set value="452" />
> >   </dataset>
> > </root>
> >
> > "Dimitre Novatchev" <dnovatchev@y...> wrote in message
> > news:blndsd$e9671$1@I......
> > >
> > > "Mark Goldin" <markgoldin@c...> wrote in message
> > > news:u%23kjXrqiDHA.2696@T......
> > > > If I put "tr" into "tablerow" template then that will create a row
for
> > > every
> > > > call to that template.
> > > > Thats' not what I want.
> > >
> > >
> > > Then tell us what you really "want".
> > >
> > >
> > > =====
> > > Cheers,
> > >
> > > Dimitre Novatchev.
> > > http://fxsl.sourceforge.net/ -- the home of FXSL
> > >
> > >
> >
> >
>
>


Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.