Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 19th, 2006, 08:57 AM
Authorized User
 
Join Date: Jan 2006
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem running in loop on 2 identical parameters.

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"/>


 
Old December 19th, 2006, 09:03 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

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
 
Old December 19th, 2006, 09:09 AM
Authorized User
 
Join Date: Jan 2006
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you write my fault.
marry christmes

 
Old December 19th, 2006, 09:32 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

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)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ex10_01 Identical code, different output tonyjeffs BOOK: Ivor Horton's Beginning Visual C++ 2005 4 December 7th, 2007 05:50 AM
Finding identical values voskoue Access VBA 7 January 30th, 2007 08:43 AM
Identical results in Drop Down List 5ilverado ASP.NET 1.0 and 1.1 Professional 0 July 3rd, 2006 12:26 AM
query for identical field and echo... flyguylol Beginning PHP 2 January 15th, 2006 05:48 PM
multiple definitions with identical signatures Galina Crystal Reports 0 February 14th, 2004 05:39 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.