Solved

In XHTML Transitional the attribute is not permitted for the tag

Posted on 2011-09-19
1
530 Views
Last Modified: 2013-11-19
I’m fairly inexperienced with HTML and I am using some sample code to help me write a web page
 that will take data from a CSV file and input it into a HTML table.  My page works fine with IE8,
 but it doesn’t work with Firefox.  I am working in ExpressionWeb and I am getting a red jagged
 line underneath some of the code.  When I move my cursor over the code I get a box saying
 “In XHTML 1.0 Transitional the attribute ‘datasrc’ is not permitted for the <table> tag.”  I also
 getting the error that  the ‘datafld’ is not permitted with the <span> tag.  How do I fix this so it will
 work with Firefox and other browsers?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

<head>
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>Book Sale Listing</title>
<style type="text/css">
</style>
</head>

<body>

<p>The following books are available for sale:<br />
</p>
<table border="1" cellspacing="0" cellpadding="2" datasrc="#data">

<thead style="font-size: small">
<tr><th class="style30">Date and Time</th><th>Book</th><th>Edition</th><th>Author</th><th>Condition</th><th>ISBN13</th>
	<th class="style32">ISBN10</th><th>Price</th><th>Name</th><th>Phone</th><th>Email</th></tr>
</thead>

<tbody style="font-size: small">
<tr>
<td><span datafld='Date'> </span></td>
<td><span datafld='Book'> </span></td>
<td><span datafld='Edition'></span></td>
<td><span datafld='Author'> </span></td>
<td><span datafld='Condition'> </span></td>
<td><span datafld='ISBN13'> </span></td>
<td><span datafld='ISBN10'> </span></td>
<td><span datafld='Price'> </span></td>
<td><span datafld='Name'> </span></td>
<td><span datafld='Phone'> </span></td>
<td><span datafld='Email'> </span></td>
</tr>
</tbody>

</table>

<object ID=data classid="clsid:333C7BC4-460F-11D0-BC04-0080C7055A83">
<param nAme="DataURL" value="formdata.csv" />
<param nAme="UseHeader" value="true" />
</object>

<font size="1" FACE="ARIAL"><span class="style28">
<a href= "booksalelisting.htm">
<span class="style12">1</span></a><span class="style12"> </span></span></font>
</ TT>
<font size="1" FACE="ARIAL"></font>

</body>
</html>

Open in new window

0
Comment
Question by:smith2001ja
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 36561165
You probably can't, it's an IE only feature.  http://www.w3schools.com/xml/xml_dont.asp
0

Featured Post

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question