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

Thank you! You are, not surprisingly, right. At least according to 
this technical note:
> http://www.w3.org/TR/NOTE-sgml-xml-971215
> XML predefines the semantics of the attributes xml:space and 
> xml:lang. It also reserves all attribute, element type and notation 
> names beginning with [Xx][Mm][Ll].
>
On Aug 3, 2007, at 2:00 AM, Dave Beckett wrote:
> 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
--
Gary Warren King, metabang.com
Cell: (413) 885 9127
Fax: (206) 338-4052
gwkkwg on Skype * garethsan on AIM

Received on Sunday, 5 August 2007 17:54:43 UTC

AltStyle によって変換されたページ (->オリジナル) /