Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

In XHTML Transitional the attribute is not permitted for the tag

Posted on 2011-09-19
1
Medium Priority
?
537 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 84

Accepted Solution

by:
Dave Baldwin earned 2000 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

721 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