Page 1 of 1

Line in template rejected, why?

Posted: Sun Sep 09, 2007 4:21 pm
by Art-art
Hi,

I'm trying to show some data in a table.
The stylesheet containing the layout says (if relevant)

Code: Select all

.left {
	width: 20%;
}		

.middle {
	width: 40%;
}		

.right {
	width: 40%;
}	
The data is shown in a html table that basically looks like this

Code: Select all

	<table>		
		<tr >	
			<col class="left"><col class="middle"><col class="right">		
			<td colspan=3><strong>General heading</strong></td>
		</tr>	
		<tr >	
			<td>Item1</td>
			<td>data 1a</td>
			<td>data 1b</td>
		</tr>	
		<tr >	
			<td>Item2</td>
			<td>data 2a</td>
			<td>data 2b</td>
		</tr>	
	</table>
This html code is rejected. The line

Code: Select all

<col class="left"><col class="middle"><col class="right">
in the table is causing problems. Without this line the code is accepted.

In an individual html test file I made on my local machine (so without CMSMS) It's working well.
Any idea why CMSMS rejects?

Re: Line in template rejected, why?

Posted: Sun Sep 09, 2007 4:38 pm
by alby
Arthur wrote: Hi,

I'm trying to show some data in a table.
The stylesheet containing the layout says (if relevant)

Code: Select all

.left {
	width: 20%;
}		

.middle {
	width: 40%;
}		

.right {
	width: 40%;
}	
The data is shown in a html table that basically looks like this

Code: Select all

	<table>		
		<tr >	
			<col class="left"><col class="middle"><col class="right">		
			<td colspan=3><strong>General heading</strong></td>
		</tr>	
		<tr >	
			<td>Item1</td>
			<td>data 1a</td>
			<td>data 1b</td>
		</tr>	
		<tr >	
			<td>Item2</td>
			<td>data 2a</td>
			<td>data 2b</td>
		</tr>	
	</table>
This html code is rejected. The line

Code: Select all

<col class="left"><col class="middle"><col class="right">
in the table is causing problems. Without this line the code is accepted.

In an individual html test file I made on my local machine (so without CMSMS) It's working well.
Any idea why CMSMS rejects?
Try with:

Code: Select all

	<table>		
		<colgroup span="3">
			<col class="left"></col>
			<col class="middle"></col>
			<col class="right"></col>
		</colgroup>
		<tr>	
			<td colspan=3><strong>General heading</strong></td>
		</tr>	
		<tr>	
			<td>Item1</td>
			<td>data 1a</td>
			<td>data 1b</td>
		</tr>	
		<tr>	
			<td>Item2</td>
			<td>data 2a</td>
			<td>data 2b</td>
		</tr>	
	</table>

Re: Line in template rejected, why?

Posted: Sun Sep 09, 2007 6:25 pm
by Art-art
Hi Alby,

I changed it to

Code: Select all

			<table>	
				<colgroup span="3">
					<col class="left"></col>
					<col class="middle"></col>
					<col class="right"></col>
				</colgroup>
				<tr >
					<td colspan=3><strong>General</strong></td>
				</tr>	
......
In here

Code: Select all

	
				<colgroup span="3">
					<col class="left"></col>
					<col class="middle"></col>
					<col class="right"></col>
				</colgroup>
Is rejected by CMSMS.
Does it matter that this is a part of a template? (I don't expect it, but you never know).

Re: Line in template rejected, why?

Posted: Sun Sep 09, 2007 6:31 pm
by RonnyK
Arthur,

did you try pasting the code in plain HTML (the button in TinyMCE) as well. I see a table when I paste the code you described in the last post. I did it without the CSS though, but that shouldn't make a difference.
It might be that the WYSIWYG is playing......

Ronny

Re: Line in template rejected, why?

Posted: Sun Sep 09, 2007 7:55 pm
by alby

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title></title>
</head>
</__body>
	<table>		
		<colgroup span="3">
			<col class="left"></col>
			<col class="middle"></col>
			<col class="right"></col>
		</colgroup>
		<tr>	
			<td colspan="3"><strong>General heading</strong></td>
		</tr>	
		<tr>	
			<td>Item1</td>
			<td>data 1a</td>
			<td>data 1b</td>
		</tr>	
		<tr>	
			<td>Item2</td>
			<td>data 2a</td>
			<td>data 2b</td>
		</tr>	
	</table>
<__body>
</__html>
This code pass validation XHTML 1.0 Strict
I don't know if it's forum editor but you have a space in open tr tag

Alby

Re: Line in template rejected, why?

Posted: Sun Sep 09, 2007 8:13 pm
by Art-art
Hi Ronny,

I know what you mean. This is not the case, I think. In fact I'm missing TinyMCE since I upgraded to ver.1.1.2.! So it can't disturb!
The other reason why I doubt if this is the reason is that the template is fully loaded with all kinds of HTML statements and SQL items.
Every thing works well when I delete the mentioned lines.

Alby,

I tried you suggestion of changing to without a positive result.
Perhaps one of you can give it a try on a test page of your own.

I have to log of now. I'll go on tomorrow morning.

Bye