| 1 |
<?xml version="1.0"?> |
| 2 |
<!-- |
| 3 |
Copyright World Wide Web Consortium, (Massachusetts Institute of |
| 4 |
Technology, Institut National de Recherche en Informatique et en |
| 5 |
Automatique, Keio University). |
| 6 |
|
| 7 |
All Rights Reserved. |
| 8 |
|
| 9 |
Please see the full Copyright clause at |
| 10 |
<http://www.w3.org/Consortium/Legal/copyright-software.html> |
| 11 |
|
| 12 |
Author: Dan Connolly |
| 13 |
|
| 14 |
Description: the purpose of this test case is to show |
| 15 |
how one of XML's Predefined Entities - in this case the |
| 16 |
ampersand - is represented when it is used in the value of |
| 17 |
an rdf:about attribute. The ampersand is represented |
| 18 |
by its numeric character reference as specified in: |
| 19 |
|
| 20 |
http://www.w3.org/TR/REC-xml#sec-predefined-ent |
| 21 |
|
| 22 |
In the associated N-Triples file, the ampersand will be |
| 23 |
represented with a single ampersand character (and not the |
| 24 |
ampersand's numeric character reference). |
| 25 |
|
| 26 |
Note: when a XML/HTML browser is used to display this file, |
| 27 |
a single ampersand character may be displayed and not the |
| 28 |
ampersand's numeric character reference. In this case, the |
| 29 |
browser may provide an alternate way to view the file (such |
| 30 |
as viewing the file's source or saving to a file). |
| 31 |
|
| 32 |
$Id: test001.rdf,v 1.5 2001/09/27 21:39:27 barstow Exp $ |
| 33 |
--> |
| 34 |
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> |
| 35 |
|
| 36 |
<rdf:Description rdf:about="http://example/q?abc=1&def=2"> |
| 37 |
<rdf:value>xxx</rdf:value> |
| 38 |
</rdf:Description> |
| 39 |
|
| 40 |
</rdf:RDF> |