Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | XML and XSL help needed

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > Internet Discussion

XML and XSL help needed
Reply
 
Thread Tools
Old 19-08-2003, 20:26   #1
Jerrek
Inactive
 
Jerrek's Avatar
 
Join Date: Jul 2003
Posts: 2,545
Jerrek can only hope to improve
XML and XSL help needed

Hi I'm wondering about some XML and XSL stuff. Suppose I have the following XML file:

Code:
<xmlfile>
	<type1>
	</type1>

	<type2>
	</type2>

	<type2>
	</type2>

	<type2>
	</type2>

	<type3>
	</type3>
</xmlfile>
Each ot the "typeX" sections gets matched in an XSL file by:
Code:
<xsl:template match="type1">

<xsl:template match="type2">

<xsl:template match="type3">
and so on. My problem is that there are multiple <type2> blocks, and that <type2> generates a table. As a result I end up with three tables, where what I really want is one table with three line items. Any way of doing that?

Thanks...
Jerrek is offline   Reply With Quote
Advertisement
Old 19-08-2003, 20:44   #2
Richard M
Inactive
 
Join Date: Jun 2003
Location: Los Angeles, CA
Age: 46
Posts: 6,343
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
Richard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze arrayRichard M has a bronze array
I haven't had much practice with XSL yet but there must be a way of using just a simple <td> for each Type 2, if you really must use tables.

Personally I'd use <div> or <span> tags myself.
Richard M is offline   Reply With Quote
Old 25-08-2003, 16:37   #3
MadGamer
Eva Longoria Fan
 
MadGamer's Avatar
 
Join Date: Jun 2003
Location: Essex
Age: 37
Services: Sky multiroom (Sky Q) Sky Fibre Unlimited Sky Landline
Posts: 8,851
MadGamer has a nice shiny star
MadGamer has a nice shiny starMadGamer has a nice shiny star
i TOTALLY agree with Roger K there
MadGamer is offline   Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 19:23.


Server: osmium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum