Ampersand Test Case Description (was: 2001-09-21 Minutes)

>> You write that the ampersand is replaced by its numerical value,
>> but it is not -- it is replaced with the string '&'.
> That wasn't my intent.  I added the following text to the
> test case:

Then I don't understand what you mean in this paragraph.

>
> [[
>  Description: the purpose of this test case is to show how
>  how XML's Predefined Entities - in this case the ampersand -
>  is escaped when it is used in the value of an rdf:about
>  attribute. Note that the ampersand is represented by its
>  numeric value as specified in:
>
>  http://www.w3.org/TR/REC-xml#sec-predefined-ent
>
>  In the associated N-Triples file the numeric value of the
>  ampersand will be replaced with single ampersand character.
>  Note: when a XML/HTML browser is used to display this file, the
>  ampersand may be displayed and not its numeric value.
> ]]
>
>> Please
>> correct this. As it stands now it is even more confusing than
>> before. :-(
>
> Anyhow, specific word changes would be helpful.

I'd be happy to provide:

  Description: the purpose of this test case is to show how
  reserved characters in XML - in this case the ampersand -
  are escaped when they are used in an RDF document.
  Note that the ampersand is represented by its
  corresponding entity as specified in:

  http://www.w3.org/TR/REC-xml#sec-predefined-ent

  In the associated N-Triples file the encoded ampersand entity
  will be replaced with a single ampersand character.
  Note: when a XML/HTML browser is used to display this file, the
  ampersand may be displayed instead of the '&' entity.

--
[ "Aaron Swartz" ; <mailto:me@aaronsw.com> ; <http://www.aaronsw.com/> ]

Received on Monday, 24 September 2001 18:41:19 UTC