Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 20th, 2004, 02:56 PM
Authorized User
 
Join Date: Jun 2003
Location: , , .
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>
Reply With Quote
  #2 (permalink)  
Old September 20th, 2004, 03:50 PM
mhkay's Avatar
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
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/
Reply With Quote
  #3 (permalink)  
Old September 21st, 2004, 02:19 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
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)
Reply With Quote
  #4 (permalink)  
Old September 21st, 2004, 04:53 AM
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Excellente thats what i want!! thanks! :)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:27 PM.


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