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 September 20th, 2004, 02:56 PM
Authorized User
 
Join Date: Jun 2003
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default URGENT multilayed table using one attribute

Right im trying to output into a table format an element from my xml file so that it goes ----> then inserts a new row after say 5 elements. this is what i've got so far but because of the </TR><TR> which will always logically produce valid xml it wont work. Any ideas i have a *tight* deadline and im panicing


<TABLE><TR>
<xsl:for-each select="./single_system_master_report/run_context">
   <TD width = "20%">
    <xsl:element name="A">
        <xsl:attribute name="HREF"><xsl:value-of select="./explored_system/hostname" />.<xsl:value-of select="./explored_system/hostid" />.contents.html</xsl:attribute>
        <xsl:value-of select="./explored_system/hostname" />
    </xsl:element>
    </TD>


<xsl:when test="position() mod 5 = 1">
        </TR><TR>
    </xsl:when>



</xsl:for-each>
</TR></TABLE>
 
Old September 20th, 2004, 03:50 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

I don't normally respond when people are in a hurry, because that's not a good time to learn.

Breathe deeply, relax, and carefully read http://www.dpawson.co.uk/xsl/sect2/N7450.html, especially the first entry.

Michael Kay

Michael Kay
http://saxon.sf.net/
 
Old September 21st, 2004, 02:19 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Take care when following Mr. Kay's link, the forum's URL spotter erroneously includes the trailing comma after the page name.



--

Joe (Co-author Beginning XML, 3rd edition)
 
Old September 21st, 2004, 04:53 AM
Authorized User
 
Join Date: Jun 2003
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Excellente thats what i want!! thanks! :)





Similar Threads
Thread Thread Starter Forum Replies Last Post
very urgent:cals table to indesign table using xsl franklinclinton XSLT 1 December 16th, 2009 03:48 PM
Sort Table Columns by Table Header Attribute omrieliav XSLT 4 June 7th, 2006 01:05 AM
Add an attribute to existing table peter_budo SQL Language 9 April 24th, 2005 01:35 PM
Urgent. Placing table on top of drop down tanusree_ghosh CSS Cascading Style Sheets 2 January 4th, 2005 02:05 PM
URGENT : Concatenate multiple records from table cool_rk SQL Language 2 October 7th, 2004 11:04 PM





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