|
Subject:
|
problem running in loop on 2 identical parameters.
|
|
Posted By:
|
kgoldvas
|
Post Date:
|
12/19/2006 7:57:49 AM
|
hello
I have a problem with the out put file. I have an input file that include 2 identical class parameter - <counter tid="110"> <display color="16" colorRGB="124" sortable="yes" sum-format="byte" avg-format="byte" /> <data class="statistic" type="float" dbcolumn="BYTES_READ" mandatory="no" func="SUM" collection-id="bytes-read" /> </counter> - <counter tid="120"> <display color="17" colorRGB="125" sortable="yes" sum-format="byte" avg-format="byte" /> <data class="statistic" type="float" dbcolumn="BYTES_WRITE" mandatory="no" func="SUM" collection-id="bytes-write" /> </counter>
in the xsl file, I am running on each dbcolumn (which can be seen that it is different), and in the out put file, I get an out put of 2 captions answers that are as a string, which suppose to be different. it can be seen that it is running the loop on each dbcolumn but in the different out put, it recieves the same caption for both the dbcolumns which it is suppose to be different for each
<element key="I3-BYTES_READ_BL" caption="7011170121" offset="" format="byte" color="16"/> <element key="I3-BYTES_READ_BL_RL-GROUP" caption="7011170121" offset="" format="" color="16"/> <element key="I3-BYTES_READ_BL_RL-GRAPH" caption="7011170121" offset="" format="graph" color="16"/> <element key="I3-BYTES_READ_BL_RL-NUMBER" caption="7011170121" offset="" format="byte" color="16"/> <element key="I3-BYTES_READ_BL_RL-STACK" caption="7011170121" offset="" format="stack-graph" color="16"/> <element key="I3-BYTES_WRITE_BL" caption="7011170121" offset="" format="byte" color="17"/> <element key="I3-BYTES_WRITE_BL_RL-GROUP" caption="7011170121" offset="" format="" color="17"/> <element key="I3-BYTES_WRITE_BL_RL-GRAPH" caption="7011170121" offset="" format="graph" color="17"/> <element key="I3-BYTES_WRITE_BL_RL-NUMBER" caption="7011170121" offset="" format="byte" color="17"/> <element key="I3-BYTES_WRITE_BL_RL-STACK" caption="7011170121" offset="" format="stack-graph" color="17"/>
|
|
Reply By:
|
mhkay
|
Reply Date:
|
12/19/2006 8:03:30 AM
|
I know it's Christmas, and miracles do happen, but do you really expect anyone to find the bugs in your XSLT code if you don't show them the code?
Michael Kay http://www.saxonica.com/ Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
|
|
Reply By:
|
kgoldvas
|
Reply Date:
|
12/19/2006 8:09:46 AM
|
you write my fault. marry christmes
|
|
Reply By:
|
joefawcett
|
Reply Date:
|
12/19/2006 8:32:10 AM
|
The psychic coder replies: Perhaps you are using an absolute reference and/or xsl:value-of which, in XPath 1.0, outputs the string value of the first node in the set. As Michael "mentioned", show the XSLT.
--
Joe (Microsoft MVP - XML)
|