W3C home > Mailing lists > Public > www-rdf-comments@w3.org > July to September 2007

Re: Glitch in test case RDF/XML Syntax Specification (Revised)

From: Dave Beckett <dave@dajobe.org>
Date: Thu, 02 Aug 2007 23:00:31 -0700
Message-ID: <46B2C47F.9000502@dajobe.org>
To: Gary King <gwking@metabang.com>
CC: www-rdf-comments@w3.org

Gary King wrote:
> The test case unrecognised-xml-attributes//test002.rdf currently reads:
> 
>> <?xml version="1.0"?>
>> <!--
>>   Copyright World Wide Web Consortium, (Massachusetts Institute of
>>   Technology, Institut National de Recherche en Informatique et en
>>   Automatique, Keio University).
>>   All Rights Reserved.
>>   Please see the full Copyright clause at
>>   <http://www.w3.org/Consortium/Legal/copyright-software.html>
>>
>>   Description: Test case for the proposal:
>>     Unrecognized attributes in the xml namespace should be ignored.
>>
>>   in http://lists.w3.org/Archives/Public/w3c-rdfcore-wg/2002Jan/0152.html
>>
>>   Although here it is not testing something in the xml namespace; but
>>   showing that an attribute that XML reserves is ignored.
>>
>>   Related issue:
>>
>>     NONE
>>
>>   $Id: test002.rdf,v 1.1 2007/03/23 16:03:53 gwking Exp $
>> -->
>> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>>          xmlns:ex="http://example.org/schema#">
>>   <rdf:Description rdf:about="http://example.org/thing">
>>     <ex:prop1 xmlnewthing="anything">stuff</ex:prop1>
>>   </rdf:Description>
>> </rdf:RDF>
>>
> 
> I believe that the third to the last line should read
> 
>>>     <ex:prop1 xml:newthing="anything">stuff</ex:prop1>
>                                     ^
> 
> I.e., replace xmlnewthing with xml:newthing.

As I understand it, the XML Specification reserves any attribute
beginning with the letters 'x' 'm' and 'l'.  So the example is
correct that xmlnewthing is an unrecognised XML attribute.

It does not have to look like a namespace attribute 'xml:NAME'.

Dave
Received on Friday, 3 August 2007 06:00:50 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 10 December 2014 20:06:16 UTC