Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   Internet Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=25)
-   -   XML and XSL help needed (https://www.cableforum.uk/board/showthread.php?t=2001)

Jerrek 19-08-2003 20:26

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...

Richard M 19-08-2003 20:44

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.

MadGamer 25-08-2003 16:37

i TOTALLY agree with Roger K there


All times are GMT +1. The time now is 06:34.

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