G
Gustaf
I'm trying to grasp this little passage from the XBRL spec:
"The xlink:href attribute MUST be a URI. The URI MUST point to an XML
document or to one or more XML fragments within an XML document. If the
URI is relative, it MUST be resolved to obtain an absolute URI as
specified in XML Base specification [XML Base]."
I guess they really mean "URI reference" and not "URI" in the formal
sense. But anyway, consider this document:
<?xml version="1.0"?>
<a xml:base="http://example.org/schema.xsd"
xmlns:xlink="http://www.w3.org/1999/xlink">
<b xlink:href="#myelement"/>
</a>
My question is: is a fragment ID by itself a URI reference? Is the above
example valid, or can xlink:href="#myelement" only refer to the same
document?
Gustaf
"The xlink:href attribute MUST be a URI. The URI MUST point to an XML
document or to one or more XML fragments within an XML document. If the
URI is relative, it MUST be resolved to obtain an absolute URI as
specified in XML Base specification [XML Base]."
I guess they really mean "URI reference" and not "URI" in the formal
sense. But anyway, consider this document:
<?xml version="1.0"?>
<a xml:base="http://example.org/schema.xsd"
xmlns:xlink="http://www.w3.org/1999/xlink">
<b xlink:href="#myelement"/>
</a>
My question is: is a fragment ID by itself a URI reference? Is the above
example valid, or can xlink:href="#myelement" only refer to the same
document?
Gustaf