I
Ian Malone
Hi, I'm wondering if it's possible for a document to
contain a namespace which is a self-reference.
e.g. in the following:
<?xml version="1.0"?>
<!DOCTYPE rdf:RDF [<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#">]>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:contribution="http://www.example.org/#"
xml:base="http://www.example.org/#">
<rdf
escription rdf:ID="marcreltermmaybe">
<rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Property"/>
</rdf
escription>
<rdf
escription rdf:ID="anexample">
<contribution:marcreltermmaybe>Or not
maybe</contribution:marcreltermmaybe>
</rdf
escription>
</rdf:RDF>
Description ends up as part of the contribution namespace,
because the base is the same. Is there any way to dispense
with the fictional www.example.org and make the namespace
point to the document itself? (I know this defeats the
point of a persistent namespace, but this is for purposes
of validating a test schema).
contain a namespace which is a self-reference.
e.g. in the following:
<?xml version="1.0"?>
<!DOCTYPE rdf:RDF [<!ENTITY xsd "http://www.w3.org/2001/XMLSchema#">]>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:contribution="http://www.example.org/#"
xml:base="http://www.example.org/#">
<rdf
<rdf:type rdf:resource="http://www.w3.org/2000/01/rdf-schema#Property"/>
</rdf
<rdf
<contribution:marcreltermmaybe>Or not
maybe</contribution:marcreltermmaybe>
</rdf
</rdf:RDF>
Description ends up as part of the contribution namespace,
because the base is the same. Is there any way to dispense
with the fictional www.example.org and make the namespace
point to the document itself? (I know this defeats the
point of a persistent namespace, but this is for purposes
of validating a test schema).