PDA

View Full Version : XML and XSL help needed


Jerrek
19-08-2003, 19:26
Hi I'm wondering about some XML and XSL stuff. Suppose I have the following XML file:


<xmlfile>
<type1>
</type1>

<type2>
</type2>

<type2>
</type2>

<type2>
</type2>

<type3>
</type3>
</xmlfile>


Each ot the "typeX" sections gets matched in an XSL file by:

<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, 19: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, 15:37
i TOTALLY agree with Roger K there