473,403 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

HTML parsing errors with rdfa in Common Tag span elements?

8
I have been trying to get my HTML pages all up to a common standard and I am now at a point where the only parsing errors are in Amaya.

Amaya rejects the Common Tag attributes in span elements that are RDFa, i.e., use the attributes of
typeof="ctag:Tag"
and the essential attribute
resource=

What version of DOCTYPE for HTML will tolerate these attributes in span elements? Must it be a doctype for XHTML ?

I only have my pages up to 4.01 Transitional with the html4 loose.dtd

The pages in question are at phil.aule-browser.com

I was able to remove many bogus HTML error reports for elements below the tag by not closing the "empty" cspan element that declares the common tag with />

I just close with > and follow that immediately with </span>

HTML5 should address that annoyance ...
Jun 9 '10 #1

✓ answered by Dormilich

HTML5 should address that annoyance ...
HTML5 doesn’t have a complete DTD like HTML 4.01.

RDFa was never intended to work with HTML 4. you would have to use XHTML (there is a XHTML+RDFa DTD), HTML5 or XHTML5 (both can’t be validated).

5 2265
Dormilich
8,658 Expert Mod 8TB
HTML5 should address that annoyance ...
HTML5 doesn’t have a complete DTD like HTML 4.01.

RDFa was never intended to work with HTML 4. you would have to use XHTML (there is a XHTML+RDFa DTD), HTML5 or XHTML5 (both can’t be validated).
Jun 9 '10 #2
drhowarddrfine
7,435 Expert 4TB
You can take a look at this draft: RDFa in HTML
Jun 9 '10 #3
lcurlr
8
@Dormilich
There are a variety of suggestions out there for HTML4 - including profile - but I can get none to parse against a DTD
Jun 10 '10 #4
lcurlr
8
@Dormilich
I am now doing a split in my page structure: all .htm are HTML4+ and all .HTML are XHTML + RDFa using
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
which is now parsing error-free.

HTML5 should give the option not to use XML-style markup
Jun 13 '10 #5
Dormilich
8,658 Expert Mod 8TB
HTML5 should give the option not to use XML-style markup
if you don’t serve XHTML, you can style your HTML/XHTML source code as you like it.
Jun 13 '10 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Christopher Benson-Manica | last post by:
http://ataru.gomen.org/files/html/files/test.html: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Test page</title> <style...
27
by: Nicholas Couch | last post by:
I have a little form with a couple of dynamically generated list boxes. When the user makes a selection from the first box, the second box is refreshed. When they make a selection from the second...
3
by: SKG | last post by:
can any one help me with HTML Parsing Regular Expression or class. I need to parse all href tags with <A> elements. Thanks
3
by: Sanjay Arora | last post by:
We are looking to select the language & toolset more suitable for a project that requires getting data from several web-sites in real- time....html parsing/scraping. It would require full emulation...
78
by: Robert Baer | last post by:
The homepage i have had up and seemingly working is: http://oil4lessllc.com/ However, the validator has so many complaints, and being so incompetent, i have no clue as to how to fix it all. Would...
1
by: yonido | last post by:
hello, my goal is to get patterns out of email files - say "message forwarding" patterns (message forwarded from: xx to: yy subject: zz) now lets say there are tons of these patterns (by gmail,...
5
by: mailtogops | last post by:
Hi All, I am involved in one project which tends to collect news information published on selected, known web sites inthe format of HTML, RSS, etc and sortlist them and create a bookmark on our...
7
by: mavigozler | last post by:
IE7 does not appear to set an event on contained text inside SPAN elements whose 'onclick', 'onmouseover', and 'onmouseout' events, defying the HTML recommendation. Firefox appears to conform. ...
8
by: Ted Zlatanov | last post by:
Hello, my problem is very simple. I have: <div id="enclosing"> <div id="d1"> <span id="s1">S1</span> <span id="s2">S2</span> <span id="s3">S3</span> </div>
3
by: Kreauchee | last post by:
am at my wits end here (no stranger to JavaScripts but no guru by any stretch of the imagination). I've been struggling with this page for some time now and can't figure out why it just flat out does...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.