473,473 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

RDFa about= attribute and the W3C validator

I've been working on a new release of my website http://mushroomobserver.org
and trying to get all the pages to pass the W3C validator. However, a
recent change I made has me stumped. An example page is:

http://mushroomobserver.org/test/show_image.html

I'm running it through the validator with:

http://validator.w3.org/check?uri=ht...how_image.html

The error I get is:

Line 105, Column 15: there is no attribute "about".

<div about="640/#{@image.id}.jpg">

The reason I added the 'about=' attribute (and in fact the div itself)
was to use RDFa to generate the correct RDF for the Creative Commons
license I want to put the image under. I was turned onto the use of
RDFa for this purpose by the folks at Creative Commons. I think this
might have to do with the DTD I'm using for the page and perhaps there
is some additional definition file I need to load, but I'm a bit hazy
on all of this at the moment.

Any help would be most appreciated!

-Nathan

Sep 17 '07 #1
3 2456
Nathan wrote:
>
Line 105, Column 15: there is no attribute "about".
<div about="640/#{@image.id}.jpg">

I was turned onto the use of
RDFa for this purpose by the folks at Creative Commons.
http://en.wikipedia.org/wiki/RDFa

Note where it says RDFa is still a proposal, which means it won't pass
validation and probably won't for a long time yet. That isn't
necessarily a reason not to use it, but it does mean that it is subject
to change so use at your own risk. See the links at the bottom of that
page for more info.

--
Berg
Sep 17 '07 #2
Thanks for all the quick replies! Sounds like I've found a hairy edge
of 'doing the right thing' :-). For now, I've left the attribute in
the pages that need it, but I'm not marking them as valid and its use
is restricted tags that are only about RDFa.

I am hoping to expand my use of RDF (and probably RDFa) in the near
future, so it's good to know that this is an issue.

Sep 17 '07 #3
On 22 Sep, 11:37, "André Gillibert"
<tabkanDELETETHIS...@yahodeletethato.frwrote:
Andy Dingley wrote:
[...] HTML docs (and
Appendix C XHHTML docs) using RDFa are _not_ valid, and they only
remain compliant by relying on some reliable browser error-correction
behaviour regarding the ignoring of unknwon attributes (Jukka will
butt in somewhere around this point to bad-mouth it)

Maybe they're relatively reliably supported, but they're not compliant.
What does "compliant" mean?

I suspect that you're interpreting it to mean the same as "valid",
when the RDFa spec and I take a looser (but still workable) meaning of
it. If we'd meant "valid", we'd have said "valid" (and would then have
been unable to implement it under non-XML XHTML Appendix C)

Sep 24 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Lénaïc Huard | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I've some namespace problems when defining default values for attributes. My problem seems to come from the fact that the attributes are...
4
by: Stan Brown | last post by:
In converting my pages to 4.01 Strict, I've been removing ALIGN attributes everywhere. I was surprised to notice that a page that validated contained a <td align=left>. Sure enough, when I...
4
by: Martin Lucas-Smith | last post by:
I am wanting to know whether are XHTML1-valid characters for use within an id attribute and/or a name attribute. ...
52
by: Markus Elfring | last post by:
How much are you interested that the attribute "style" will offer the same or similar capabilities like they are provided by the element "style" in the element "head"? Do you want that the...
15
by: Gérard Talbot | last post by:
Hello all, I'd like to know and understand the difference between, say, <img src="/ImageFilename.png" width="123" height="456" alt=""> and <img src="/ImageFilename.png" style="width:...
19
by: Gérard Talbot | last post by:
posted to: alt.html and comp.infosystems.www.authoring.html followup-to: comp.infosystems.www.authoring.html Hello all, I have 2 questions about validations. 1- What's basically the...
19
by: Bert Lancaster | last post by:
I'm not actually using it on the web but can anyone tell me why the ID attribute on a <style> tag causes an error in the W3C validator for an XHTML 1.1 document? It doesn't have a problem for a...
5
by: Inta_Rob | last post by:
Hi all, I'm writing a site using C#/ASP.Net 2.0 and trying to make the resulting code valid XHTML 1.0 Strict, and i'm running into problem with the auto generation of the <form> tag. ...
2
by: Berryl Hesh | last post by:
I want a ConfigurationProperty property to be validated; it should always be the name of some interface of some sort so it just needs to start with an "I". Pattern = @"^I" TestInput =...
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...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.