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 3rd, 2015, 07:03 AM
Registered User
 
Join Date: Dec 2015
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default move data to high

and can the data on the top :?:
Code:
 <td>
	  <table width="100%"  border="1" cellpadding="1" cellspacing="0" bordercolor="#FF0000">
	<th>
	  <a href="http://coa.inducks.org/story.php?c={custom01}"><xsl:value-of select="custom01"/></a>
	</th>
	  </table>
	 </td>
http://i.imgur.com/vlGQuno.png

thank you


Code:
        <xsl:if test="numberofsections>0">
            <tr> 
              <td class="record_pane_table_group" colspan="2">Contents</td>
            </tr>
            <tr>
              <td class="record_pane_table_group_padding" colspan="2"></td>
            </tr>
            <tr>  
              <td colspan="2">
                <table class="record_pane_table" cellspacing="1" cellpadding="0" with="100%">
                  <xsl:apply-templates select="/data/record/contentsdata"/>
                </table>    
              </td>
             </tr>                  
          </xsl:if>                                                                                        
        </table>
      </td>
    </tr>
  </table>
</xsl:template>

<xsl:template match="contentsdata">  
  <xsl:apply-templates select="item"/>
</xsl:template>

<xsl:template match="item">
  <xsl:if test="../@items &gt; 1">
    <tr>
      <td class="list_itemtitle" colspan="2">
        <b> 
        <xsl:if test="title=''">
          <xsl:text># </xsl:text><xsl:value-of select="itemno"/>
        </xsl:if>
        <xsl:if test="title!=''">           
          <xsl:value-of select="title"/>
        </xsl:if>          
        </b>
      </td>
    </tr>
  </xsl:if>
  <xsl:apply-templates select="contents"/>
</xsl:template>

<xsl:template match="contents">
  <tr>
    <xsl:attribute name="class">
      <xsl:choose>
        <xsl:when test="position() mod 2 = 0">list_table_row1</xsl:when>
        <xsl:otherwise>list_table_row2</xsl:otherwise>
      </xsl:choose>
    </xsl:attribute>
    <td class="list_table_fieldvalue_topalign" width="1" align="right">       
      <a href="CMD:EDIT:Contents,{@id}"><xsl:value-of select="index"/><xsl:text>.</xsl:text></a>
    
	</td>       
    <td class="list_table_fieldvalue">
      <a href="Contents.xsl?ID={@id}" target="_blank">
        <xsl:value-of select="title"/>
      </a>
      <!-- Red icons warning with counting, for "Credits" no biography in "Contents" by Dave, 
      +sostituzione testo da manca a mancano, e da biografia a biografie se sono piu' di uno	  start code (01) -->
            <xsl:if test="count(credits/credit/lookupdata[biography=''])>0">
			<xsl:text> </xsl:text>
        <span style="text-align:center;background-color:red;color:white;font-weight:bold;font-size:small">
          
		  <xsl:choose> 
            <xsl:when test="count(credits/credit/lookupdata[biography='']) =1">
               manca
            </xsl:when>
            <xsl:otherwise>
               mancano
            </xsl:otherwise>
          </xsl:choose>
		  (<xsl:value-of select="count(credits/credit/lookupdata[biography=''])"/>)
		  <xsl:choose> 
            <xsl:when test="count(credits/credit/lookupdata[biography='']) =1">
               Biografia
            </xsl:when>
            <xsl:otherwise>
               Biografie
            </xsl:otherwise>
          </xsl:choose>
        </span><xsl:text> </xsl:text><img class="index_image" src="blink.gif"/><!-- (*)-->  <!-- Replace with red icon -->
      </xsl:if>
	  
	  <td>
	  <table width="100%"  border="1" cellpadding="1" cellspacing="0" bordercolor="#FF0000">
	<th>
	  <a href="http://coa.inducks.org/story.php?c={custom01}"><xsl:value-of select="custom01"/></a>
	</th>
	  </table>
	 </td>
 
Old December 3rd, 2015, 07:21 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Sorry, I don't understand your question. Please show your XML input, your stylesheet, your desired output, and how this differs from the output you are getting. Post complete (but minimal) XML and XSLT, not fragments.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
 
Old December 3rd, 2015, 07:32 AM
Registered User
 
Join Date: Dec 2015
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

this code and very complex, part of a program to catalog the books (now defunct), named BookCAT
the database interfaces with the template xsl
what I want and move the selected data of yellow, above, under the blue horizontal line (storie contenute nell'albo), without the blank white

sorry for my bad English
 
Old December 3rd, 2015, 07:58 AM
Registered User
 
Join Date: Dec 2015
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

this and the complete code is where my problem
it entered into a hosting because it is very long

https://mega.nz/#!4dwWnTiJ!LaKdnCHBC...KlZRGk2aRC_DeA





Similar Threads
Thread Thread Starter Forum Replies Last Post
Why can't I navigate the data? Move does not work. RaySL Access VBA 4 February 11th, 2012 11:04 AM
Using VBA Code to Move Data Nanette Access VBA 1 November 3rd, 2006 04:16 PM
Need help: Move data with store proc Gunny SQL Server 2000 3 July 28th, 2006 12:10 AM
Best way to move data from 2000 to 2005 JimReid SQL Server 2005 1 May 19th, 2006 05:23 PM
Move Data from oracle10g to oracle8i mohammed_aid Oracle 0 December 11th, 2005 02:23 PM





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