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

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