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 August 2nd, 2007, 05:07 PM
Authorized User
 
Join Date: Jul 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default insert problem

is there any way to insert a value into certain position in the table whlie the code is in for-each loop?

---------------------------------------
    1 | | |
---------------------------------------
    2 | | |
---------------------------------------
    3 | x | y |
---------------------------------------
that's say i already move the 1,2,3 column and i want to paste the value store in 3 into x, but not in y cell

xml:
<TOTALDATA>3</TOTALDATA><TOTALDATA></TOTALDATA><TOTALDATA></TOTALDATA>

xsl:
<xsl:for-each select="TOTALDATA">
 <xsl:if test=". !='3' ">
  <TD><b>
   <xsl:value-of select="."/>
  </b></TD>
 </xsl:if>
</xsl:for-each>

is that possible?

 
Old August 2nd, 2007, 05:27 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

I'm sorry, but you're not making yourself clear. I have no idea how the 9 cells in your output relate to the 3 elements in your input, or what part the XSLT fragment plays in describing the problem.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old August 3rd, 2007, 10:29 AM
Authorized User
 
Join Date: Jul 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

problem is sloved, thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
insert into problem yami56 Access 3 March 3rd, 2005 05:16 AM
Validation and Insert problem addos Beginning PHP 0 January 17th, 2005 06:50 PM
problem with insert iosqar JSP Basics 0 May 19th, 2004 10:07 AM
Insert problem CW Classic ASP Databases 14 September 9th, 2003 04:52 AM





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