Subject: RE: [xsl] Need to fill in number of output nodes... From: "Michael Kay" <mhk@xxxxxxxxx> Date: Thu, 11 Sep 2003 14:41:40 +0100 |
> <doc> > <header> > ... > </header> > <body> > <data> > <elem1/> <!-- actual names vary --> > <elem2/> > </data> > <summary dataCount="2"/> > </body> > </doc> > > > The number of elements within <data> is variable. I need to > calculate > the dataCount attribute from the number of <data> elements. > What is a > good solution for this? I'd rather not use a second transform step > unless absolutely necessary. Three solutions: (a) go back to the input document and calculate the information from that (b) a two-stage transformation (c) cheat, by using saxon:assign or similar. I would go for (b). Michael Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Need to fill in number of out, Steve Freeman | Thread | Re: [xsl] Need to fill in number of, Steve Freeman |
RE: [xsl] How to use two xmls for c, Dipesh Khakhkhar | Date | RE: [xsl] How to use two xmls for c, Jarno . Elovirta |
Month |