Blame test/valid/xlink.xml

Packit 423ecb
Packit 423ecb
Packit 423ecb
Packit 423ecb
Packit 423ecb
]>
Packit 423ecb
Packit 423ecb
Packit 423ecb
Packit 423ecb
Packit 423ecb
href="file:///C|/Program%20Files/SoftQuad/XMetaL%201/display/xmlspec.css"
Packit 423ecb
type="text/css"?>
Packit 423ecb
<spec>
Packit 423ecb
Packit 423ecb
Packit 423ecb
<header>
Packit 423ecb
	<title>XML Linking Language (XLink)</title>
Packit 423ecb
	<version>Version 1.0</version>
Packit 423ecb
	<w3c-designation> WD-xlink-19990527</w3c-designation>
Packit 423ecb
	<w3c-doctype>World Wide Web Consortium Working Draft</w3c-doctype>
Packit 423ecb
	<pubdate><day>29</day><month>May</month><year>1999</year></pubdate>
Packit 423ecb
	<notice>
Packit 423ecb
	

This draft is for public discussion.

Packit 423ecb
	</notice>
Packit 423ecb
	<publoc><loc href="http://www.w3.org/XML/Group/1999/05/WD-xlink-current">http://www.w3.org/XML/Group/1999/05/WD-xlink-current</loc></publoc>
Packit 423ecb
	<prevlocs>
Packit 423ecb
	
Packit 423ecb
	<loc href="http://www.w3.org/XML/Group/1999/05/WD-xlink-19990527">http://www.w3.org/XML/Group/1999/05/WD-xlink-19990527</loc>
Packit 423ecb
	<loc href="http://www.w3.org/XML/Group/1999/05/WD-xlink-19990505">http://www.w3.org/XML/Group/1999/05/WD-xlink-19990505</loc>
Packit 423ecb
	<loc href="http://www.w3.org/TR/1998/WD-xlink-19980303">http://www.w3.org/TR/1998/WD-xlink-19980303</loc>
Packit 423ecb
	<loc href="http://www.w3.org/TR/WD-xml-link-970630">http://www.w3.org/TR/WD-xml-link-970630</loc></prevlocs>
Packit 423ecb
Packit 423ecb
	<authlist>
Packit 423ecb
		
Packit 423ecb
		 
Packit 423ecb
		<author>
Packit 423ecb
			<name>Steve DeRose</name>
Packit 423ecb
			<affiliation>Inso Corp. and Brown University</affiliation>
Packit 423ecb
			<email href="mailto:Steven_DeRose@Brown.edu">Steven_DeRose@Brown.edu</email>
Packit 423ecb
		</author>
Packit 423ecb
		<author>
Packit 423ecb
			<name>David Orchard</name>
Packit 423ecb
			<affiliation>IBM Corp.</affiliation>
Packit 423ecb
			<email href="mailto:dorchard@ca.ibm.com">dorchard@ca.ibm.com</email>
Packit 423ecb
		</author>
Packit 423ecb
		<author>
Packit 423ecb
			<name>Ben Trafford</name>
Packit 423ecb
			<affiliation>Invited Expert</affiliation>
Packit 423ecb
			<email href="mailto:bent@exemplary.net">bent@exemplary.net</email>
Packit 423ecb
		</author>
Packit 423ecb
		
Packit 423ecb
		also ought to add Gabe Beged-Dov there, as well. bent
Packit 423ecb
		how shall we cite Tim? sjd What about with an Acknowledgments section?
Packit 423ecb
		-elm <AUTHOR> <NAME>Tim Bray</NAME> <AFFILIATION>Textuality</AFFILIATION>
Packit 423ecb
		<EMAIL>tbray@textuality.com</EMAIL> </AUTHOR>-->
Packit 423ecb
	</authlist>
Packit 423ecb
Packit 423ecb
	<status>
Packit 423ecb
		

This is a W3C Working Draft for review by W3C members and other interested parties. It is a draft document and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use W3C Working Drafts as reference material or to cite them as other than "work in progress". A list of current W3C working drafts can be found at <loc href="http://www.w3.org/TR">http://www.w3.org/TR</loc>.

Packit 423ecb
		

<emph>Note:</emph> Since working drafts are subject to frequent change, you are advised to reference the above URI, rather than the URIs for working drafts themselves. Some of the work remaining is described in <specref ref="unfinished"/>.

Packit 423ecb
		

This work is part of the W3C XML Activity (for current status, see <loc href="http://www.w3.org/MarkUp/SGML/Activity">http://www.w3.org/XML/Activity </loc>). For information about the XPointer language which is expected to be used with XLink, see <loc href="http://www.w3.org/MarkUp/SGML/Activity">http://www.w3.org/TR/WD-xptr</loc>.

Packit 423ecb
		

Packit 423ecb
		

See <loc href="http://www.w3.org/TR/NOTE-xlink-principles">http://www.w3.org/TR/NOTE-xlink-principles </loc> for additional background on the design principles informing XLink.

Packit 423ecb
		

Also see <loc href="http://www.w3.org/TR/NOTE-xlink-req/">http://www.w3.org/TR/NOTE-xlink-req/</loc> for the XLink requirements that this document attempts to satisfy.

Packit 423ecb
	</status>
Packit 423ecb
Packit 423ecb
	<abstract>
Packit 423ecb
		
Packit 423ecb
		

This specification defines constructs that may be inserted into XML DTDs, schemas and document instances to describe links between objects. It uses XML syntax to create structures that can describe the simple unidirectional hyperlinks of today's HTML as well as more sophisticated links.

Packit 423ecb
	</abstract>
Packit 423ecb
Packit 423ecb
	<pubstmt>
Packit 423ecb
		

Burlington, Seekonk, et al.: World-Wide Web Consortium, XML Working Group, 1998.

Packit 423ecb
	</pubstmt>
Packit 423ecb
Packit 423ecb
	<sourcedesc>
Packit 423ecb
		

Created in electronic form.

Packit 423ecb
	</sourcedesc>
Packit 423ecb
Packit 423ecb
	<langusage>
Packit 423ecb
		<language id="en">English</language>
Packit 423ecb
		<language id="ebnf">Extended Backus-Naur Form (formal grammar)</language>
Packit 423ecb
	</langusage>
Packit 423ecb
Packit 423ecb
	<revisiondesc>
Packit 423ecb
		<slist>
Packit 423ecb
			<sitem>1997-01-15 : Skeleton draft by TB</sitem>
Packit 423ecb
			<sitem>1997-01-24 : Fleshed out by sjd</sitem>
Packit 423ecb
			<sitem>1997-04-08 : Substantive draft</sitem>
Packit 423ecb
			<sitem>1997-06-30 : Public draft</sitem>
Packit 423ecb
			<sitem>1997-08-01 : Public draft</sitem>
Packit 423ecb
			<sitem>1997-08-05 : Prose/organization work by sjd</sitem>
Packit 423ecb
			<sitem>1997-10-14: Conformance and design principles; a bit of cleanup by elm</sitem>
Packit 423ecb
			<sitem>1997-11-07: Update for editorial issues per issues doc, by sjd.</sitem>
Packit 423ecb
			<sitem>1997-12-01: Update for editorial issues per issues doc in preparation for F2F meeting, by sjd.</sitem>
Packit 423ecb
			<sitem>1998-01-13: Editorial cleanup, addition of new design principles, by elm.</sitem>
Packit 423ecb
			<sitem>1998-02-27: Splitting out of XLink and XPointer, by elm.</sitem>
Packit 423ecb
			<sitem>1998-03-03: Moved most of the XPointer locator stuff here. elm</sitem>
Packit 423ecb
			<sitem>1999-04-24: Editorial rewrites to represent new ideas on XLink, especially the inclusion of arcs. bent</sitem>
Packit 423ecb
			<sitem>1999-05-05: Prose/organization work by dorchard. Moved much of the semantics section around, from: locators, link semantics, remote resource semantics, local resource semantics; to: resource semantics, locators, behavior semantics, link semantics, arc semantics</sitem>
Packit 423ecb
			<sitem>1999-05-12: Prose/organization work. Re-organized some of the sections, removed XML constructs from the document, added descriptive prose, edited document text for clarity. Rewrote the link recognition section. bent</sitem>
Packit 423ecb
			<sitem>1999-05-17: Further prose work. Added non-normative examples. Clarified arcs. bent</sitem>
Packit 423ecb
			<sitem>1999-05-23: Edited for grammar and clarity. bent</sitem>
Packit 423ecb
			<sitem>1999-05-27: Final once-over before sending to group. Fixed sjd's email address. bent</sitem>
Packit 423ecb
		</slist>
Packit 423ecb
	</revisiondesc>
Packit 423ecb
</header>
Packit 423ecb
Packit 423ecb
<body>
Packit 423ecb
	<div1>
Packit 423ecb
		<head>Introduction</head>
Packit 423ecb
		

This specification defines constructs that may be inserted into XML DTDs, schemas, and document instances to describe links between objects. A <termref def="dt-link">link</termref>, as the term is used here, is an explicit relationship between two or more data objects or portions of data objects. This specification is concerned with the syntax used to assert link existence and describe link characteristics. Implicit (unasserted) relationships, for example that of one word to the next or that of a word in a text to its entry in an on-line dictionary are obviously important, but outside its scope.

Packit 423ecb
		

Links are asserted by <xtermref href="WD-xml-lang.html#dt-element">elements </xtermref> contained in <xtermref href="WD-xml-lang.html#dt-xml-doc">XML document instances</xtermref>. The simplest case is very like an HTML A link, and has these characteristics:

Packit 423ecb
			<ulist>
Packit 423ecb
				<item>

The link is expressed at one of its ends (similar to the A element in some document)

</item>
Packit 423ecb
				<item>

Users can only initiate travel from that end to the other

</item>
Packit 423ecb
				<item>

The link's effect on windows, frames, go-back lists, stylesheets in use, and so on is mainly determined by browsers, not by the link itself. For example, traveral of A links normally replaces the current view, perhaps with a user option to open a new window.

</item>
Packit 423ecb
				<item>

The link goes to only one destination (although a server may have great freedom in finding or dynamically creating that destination).

</item>
Packit 423ecb
			</ulist>
Packit 423ecb
		

Packit 423ecb
		

While this set of characteristics is already very powerful and obviously has proven itself highly useful and effective, each of these assumptions also limits the range of hypertext functionality. The linking model defined here provides ways to create links that go beyond each of these specific characteristics, thus providing features previously available mostly in dedicated hypermedia systems.

Packit 423ecb
		

Packit 423ecb
Packit 423ecb
<div2>
Packit 423ecb
	<head>Origin and Goals</head>
Packit 423ecb
	

Following is a summary of the design principles governing XLink:

Packit 423ecb
		<olist>
Packit 423ecb
			<item>

XLink must be straightforwardly usable over the Internet.

</item>
Packit 423ecb
			<item>

XLink must be usable by a wide variety of link usage domains and classes of linking application software.

</item>
Packit 423ecb
			<item>

XLink must support HTML 4.0 linking constructs.

</item>
Packit 423ecb
			<item>

The XLink expression language must be XML.

</item>
Packit 423ecb
			<item>

The XLink design must be formal, concise, and illustrative.

</item>
Packit 423ecb
			<item>

XLinks must be human-readable and human-writable.

</item>
Packit 423ecb
			<item>

XLinks may reside within or outside the documents in which the

Packit 423ecb
			participating resources reside. 

</item>
Packit 423ecb
			<item>

XLink must represent the abstract structure and significance of links.

</item>
Packit 423ecb
			<item>

XLink must be feasible to implement.

</item>
Packit 423ecb
			<item>

XLink must be informed by knowledge of established hypermedia systems and standards.

</item>
Packit 423ecb
		</olist>
Packit 423ecb
	

Packit 423ecb
</div2>
Packit 423ecb
Packit 423ecb
document. bent-->
Packit 423ecb
Packit 423ecb
<div2>
Packit 423ecb
	<head>Relationship to Existing Standards</head>
Packit 423ecb
	

Three standards have been especially influential:

Packit 423ecb
		<ulist>
Packit 423ecb
			<item>

<emph>HTML:</emph> Defines several SGML element types that represent links.

</item>
Packit 423ecb
			<item>

<emph>HyTime:</emph> Defines inline and out-of-line link structures and some semantic features, including traversal control and presentation of objects.

Packit 423ecb
			

</item>
Packit 423ecb
			<item>

<emph>Text Encoding Initiative Guidelines (TEI P3):</emph> Provides structures for creating links, aggregate objects, and link collections out of them.

</item>
Packit 423ecb
		</ulist>
Packit 423ecb
	

Packit 423ecb
	

Many other linking systems have also informed this design, especially Dexter, FRESS, MicroCosm, and InterMedia.

Packit 423ecb
</div2>
Packit 423ecb
Packit 423ecb
<div2>
Packit 423ecb
	<head>Terminology</head>
Packit 423ecb
	

The following basic terms apply in this document.

Packit 423ecb
	SRC="local://./linkdiag.gif">(figure to be inserted)-->
Packit 423ecb
		<glist>
Packit 423ecb
			<gitem>
Packit 423ecb
			<label><termdef id="dt-arc" term="Arc">arc</termdef></label>
Packit 423ecb
			<def>

A symbolic representation of traversal behavior in links, especially the direction, context and timing of traversal.

</def>
Packit 423ecb
			</gitem>
Packit 423ecb
			<gitem>
Packit 423ecb
				<label><termdef id="dt-eltree" term="Element Tree">element tree</termdef></label>
Packit 423ecb
				<def>

A representation of the relevant structure specified by the tags and attributes in an XML document, based on "groves" as defined in the ISO DSSSL standard.

</def>
Packit 423ecb
			</gitem>
Packit 423ecb
			<gitem>
Packit 423ecb
				<label><termdef id="dt-inline" term="In-Line Link">inline link</termdef></label>
Packit 423ecb
				<def>

Abstractly, a <termref def="dt-link">link</termref> which serves as one of its own <termref def="dt-resource">resources</termref>. Concretely, a link where the content of the <termref def="dt-linkel">linking element</termref> serves as a <termref def="dt-particip-resource">participating resource</termref>.

Packit 423ecb
				HTML A, HyTime clink, and TEI	XREF
Packit 423ecb
				are all inline links.

</def>
Packit 423ecb
			</gitem>
Packit 423ecb
			<gitem>
Packit 423ecb
				<label><termdef id="dt-link" term="Link">link</termdef></label>
Packit 423ecb
				<def>

An explicit relationship between two or more data objects or portions of data objects.

</def>
Packit 423ecb
			</gitem>
Packit 423ecb
			<gitem>
Packit 423ecb
				<label><termdef id="dt-linkel" term="Linking Element">linking element </termdef></label>
Packit 423ecb
				<def>

An <xtermref href="WD-xml-lang.html#dt-element">element</xtermref> that asserts the existence and describes the characteristics of a <termref def="dt-link"> link</termref>.

</def>
Packit 423ecb
			</gitem>
Packit 423ecb
			<gitem>
Packit 423ecb
				<label><termdef id="dt-local-resource" term="Local Resource">local resource</termdef></label>
Packit 423ecb
				<def>

The content of an <termref def="dt-inline">inline</termref>linking element. Note that the content of the linking element could be explicitly pointed to by means of a regular <termref def="dt-locator">locator</termref> in the same linking element, in which case the resource is considered <termref def="dt-remote-resource"> remote</termref>, not local.

</def>
Packit 423ecb
			</gitem>
Packit 423ecb
			<gitem>
Packit 423ecb
				<label><termdef id="dt-locator" term="Locator">locator</termdef> </label>
Packit 423ecb
				<def>

Data, provided as part of a link, which identifies a

Packit 423ecb
				<termref def="dt-resource">resource</termref>.

</def>
Packit 423ecb
			</gitem>
Packit 423ecb
			<gitem>
Packit 423ecb
				<label><termdef id="dt-multidir" term="Multi-Directional Link">multidirectional link</termdef></label>
Packit 423ecb
				<def>

A <termref def="dt-link">link</termref> whose <termref def="dt-traversal"> traversal</termref> can be initiated from more than one of its <termref def="dt-particip-resource"> participating resources</termref>. Note that being able to "go back" after following a one-directional link does not make the link multidirectional.

</def>
Packit 423ecb
			</gitem>
Packit 423ecb
			<gitem>
Packit 423ecb
				<label><termdef id="dt-outofline" term="Out-of-line Link">out-of-line link</termdef></label>
Packit 423ecb
				<def>

A <termref def="dt-link">link</termref> whose content does not serve as one of the link's <termref def="dt-particip-resource">participating resources </termref>. Such links presuppose a notion like <termref def="dt-xlg">extended link groups</termref>, which instruct application software where to look for links. Out-of-line links are generally required for supporting multidirectional <termref def="dt-traversal">traversal</termref> and for allowing read-only resources to have outgoing links.

</def>
Packit 423ecb
			</gitem>
Packit 423ecb
			<gitem>
Packit 423ecb
				<label><termdef id="dt-parsedq" term="Parsed">parsed</termdef></label> <def>

In the context of link behavior, a parsed link is any link whose content is transcluded into the document where the link originated. The use of the term "parsed" directly refers to the concept in XML of a

Packit 423ecb
				parsed entity.

</def>
Packit 423ecb
			</gitem>
Packit 423ecb
			<gitem>
Packit 423ecb
				<label><termdef id="dt-particip-resource" term="Participating Resource"> participating resource</termdef></label>
Packit 423ecb
				<def>

A <termref def="dt-resource">resource</termref> that belongs to a link. All resources are potential contributors to a link; participating resources are the actual contributors to a particular link.

</def>
Packit 423ecb
			</gitem>
Packit 423ecb
			<gitem>
Packit 423ecb
				<label><termdef id="dt-remote-resource" term="Remote Resource">remote resource</termdef></label>
Packit 423ecb
				<def>

Any participating resource of a link that is pointed to with a locator.

</def>
Packit 423ecb
			</gitem>
Packit 423ecb
			<gitem>
Packit 423ecb
				<label><termdef id="dt-resource" term="Resource">resource</termdef></label>
Packit 423ecb
				<def>

In the abstract sense, an addressable unit of information or service that is participating in a <termref def="dt-link">link</termref>. Examples include files, images, documents, programs, and query results. Concretely, anything reachable by the use of a <termref def="dt-locator">locator</termref> in some <termref def="dt-linkel">linking element</termref>. Note that this term and its definition are taken from the basic specifications governing the World Wide Web.

Packit 423ecb
				 

</def>
Packit 423ecb
			</gitem>
Packit 423ecb
			<gitem>
Packit 423ecb
				<label><termdef id="dt-subresource" term="sub-Resource">sub-resource</termdef></label>
Packit 423ecb
				<def>

A portion of a resource, pointed to as the precise destination of a link. As one example, a link might specify that an entire document be retrieved and displayed, but that some specific part(s) of it is the specific linked data, to be treated in an application-appropriate manner such as indication by highlighting, scrolling, etc.

</def>
Packit 423ecb
			</gitem>
Packit 423ecb
			<gitem>
Packit 423ecb
				<label><termdef id="dt-traversal" term="Traversal">traversal</termdef></label>
Packit 423ecb
				<def>

The action of using a <termref def="dt-link">link</termref>; that is, of accessing a <termref def="dt-resource">resource</termref>. Traversal may be initiated by a user action (for example, clicking on the displayed content of a <termref def="dt-linkel">linking element</termref>) or occur under program control.

</def>
Packit 423ecb
			</gitem>
Packit 423ecb
		</glist>
Packit 423ecb
	

Packit 423ecb
</div2>
Packit 423ecb
Packit 423ecb
<div2>
Packit 423ecb
	<head>Notation</head>
Packit 423ecb
	

The formal grammar for <termref def="dt-locator">locators</termref> is given using a simple Extended Backus-Naur Form (EBNF) location, as described in <xspecref href="http://www.w3.org/TR/REC-xml#sec-notation">the XML specification</xspecref>.

Packit 423ecb
	
Packit 423ecb
</div2>
Packit 423ecb
</div1>
Packit 423ecb
Packit 423ecb
<div1 id="addressing">
Packit 423ecb
	<head>Locator Syntax</head>
Packit 423ecb
	

The locator for a <termref def="dt-resource">resource</termref> is typically provided by means of a Uniform Resource Identifier, or URI. XPointers can be used in conjunction with the URI structure, as fragment identifiers, to specify a more precise sub-resource.

Packit 423ecb
	
Packit 423ecb
	

A locator generally contains a URI, as described in IETF RFCs <bibref ref="rfc1738"/> and <bibref ref="rfc1808"/>. As these RFCs state, the URI may include a trailing <emph>query</emph> (marked by a leading "?"), and be followed by a "#" and a <emph>fragment identifier</emph>, with the query interpreted by the host providing the indicated resource, and the interpretation of the fragment identifier dependent on the data type of the indicated resource.

Packit 423ecb
	
Packit 423ecb
	

In order to locate XML documents and portions of documents, a locator value may contain either a <xtermref href="http://www.w3.org/Addressing/rfc1738.txt"> URI</xtermref> or a fragment identifier, or both. Any fragment identifier for pointing into XML must be an <xtermref href="http://www.w3.org/TR/WD-xptr#dt-xpointer"> XPointer</xtermref>.

Packit 423ecb
	

Special syntax may be used to request the use of particular processing models in accessing the locator's resource. This is designed to reflect the realities of network operation, where it may or may not be desirable to exercise fine control over the distribution of work between local and remote processors.

Packit 423ecb
		<scrap id="locator" lang="ebnf">
Packit 423ecb
			<head>Locator</head>
Packit 423ecb
			<prod id="nt-locator">
Packit 423ecb
				<lhs>Locator</lhs>
Packit 423ecb
				<rhs><nt def="nt-uri">URI</nt></rhs>
Packit 423ecb
				<rhs>| <nt def="nt-connector">Connector</nt> (<xnt href="http://www.w3.org/TR/WD-xptr">XPointer</xnt> | <xnt href="WD-xml-lang.html#NT-Name">Name</xnt>)</rhs>
Packit 423ecb
				<rhs>| <nt def="nt-uri">URI</nt> <nt def="nt-connector">Connector</nt> (<xnt href="http://www.w3.org/TR/WD-xptr">XPointer</xnt> | <xnt href="WD-xml-lang.html#NT-Name">Name</xnt>)</rhs>
Packit 423ecb
			</prod>
Packit 423ecb
			<prod id="nt-connector">
Packit 423ecb
				<lhs>Connector</lhs><rhs>'#' | '|'</rhs>
Packit 423ecb
			</prod>
Packit 423ecb
			<prod id="nt-uri">
Packit 423ecb
				<lhs>URI</lhs><rhs><xnt href="WD-xml-lang.html#NT-URLchar">URIchar*</xnt></rhs>
Packit 423ecb
			</prod>
Packit 423ecb
		</scrap>
Packit 423ecb
	

Packit 423ecb
	

<termdef id="dt-designated" term="Designated Resource">In this discussion, the term <term>designated resource</term> refers to the resource which an entire locator serves to locate.</termdef> The following rules apply:

Packit 423ecb
		<ulist>
Packit 423ecb
			<item>
Packit 423ecb
				

<termdef id="dt-containing-resource" term="Containing Resource"> The URI, if provided, locates a resource called the <term>containing resource</term>.</termdef>

Packit 423ecb
			</item>
Packit 423ecb
			<item>
Packit 423ecb
				

If the URI is not provided, the containing resource is considered to be the document in which the linking element is contained.

Packit 423ecb
				

</item>
Packit 423ecb
			<item>
Packit 423ecb
				

<termdef id="dt-sub-resource" term="Sub-Resource">If an XPointer is provided, the designated resource is a <term>sub-resource</term>

Packit 423ecb
				of the containing resource; otherwise the designated resource is the
Packit 423ecb
				containing resource.</termdef>

Packit 423ecb
			</item>
Packit 423ecb
			
Packit 423ecb
			Oy, yes, i think so. it will require some fun wording, though, so i haven't fixed it yet here -sjd-->
Packit 423ecb
			<item>
Packit 423ecb
				

If the <nt def="nt-connector">Connector</nt> is followed directly by a <xnt href="http://www.w3.org/TR/REC-xml#NT-Name">Name</xnt>, the <xnt href="http://www.w3.org/TR/REC-xml#NT-Name">Name</xnt> is shorthand for the XPointer"id(Name)"; that is, the sub-resource is the element in the containing resource that has an XML <xtermref href="http://www.w3.org/TR/REC-xml#sec-attrtypes">ID attribute</xtermref> whose value <xtermref href="http://www.w3.org/TR/REC-xml#dt-match">matches</xtermref> the <xnt href="http://www.w3.org/TR/REC-xml#NT-Name">Name</xnt>. This shorthand is to encourage use of the robust id addressing mode.

Packit 423ecb
			</item>
Packit 423ecb
			
Packit 423ecb
			<item>
Packit 423ecb
				

If the connector is "#", this signals an intent that the containing resource is to be fetched as a whole from the host that provides it, and that the XPointer processing to extract the sub-resource

Packit 423ecb
				is to be performed on the client, that is to say on the same system where the linking element is recognized and processed.

Packit 423ecb
			</item>
Packit 423ecb
			<item>
Packit 423ecb
				

If the connector is "|", no intent is signaled as to what processing model is to be used to go about accessing the designated resource.

Packit 423ecb
			</item>
Packit 423ecb
		</ulist>
Packit 423ecb
	

Packit 423ecb
	

Note that the definition of a URI includes an optional query component.

Packit 423ecb
	

In the case where the URI contains a query (to be interpreted by the server), information providers and authors of server software are urged to use queries as follows:

Packit 423ecb
		<scrap id="querysyntax" lang="ebnf">
Packit 423ecb
			<head>Query</head>
Packit 423ecb
			<prod id="nt-query">
Packit 423ecb
				<lhs>Query</lhs><rhs>'XML-XPTR=' (<xnt href="http://www.w3.org/TR/WD-xptr"> XPointer</xnt> | <xnt href="http://www.w3.org/TR/REC-xml#NT-Name">Name</xnt>)</rhs>
Packit 423ecb
			</prod>
Packit 423ecb
		</scrap>
Packit 423ecb
	

Packit 423ecb
	
Packit 423ecb
</div1>
Packit 423ecb
Packit 423ecb
<div1>
Packit 423ecb
	<head>Link Recognition</head>
Packit 423ecb
	

The existence of a <termref def="dt-link">link</termref> is asserted by a <termref def="dt-linkel">linking element</termref>. Linking elements must be recognized reliably by application software in order to provide appropriate display and behavior. There are several ways link recognition could be accomplished: for example, reserving element type names, reserving attributes names, leaving the matter of recognition entirely up to stylesheets and application software, or using the XLink <xtermref href="http://www.w3.org/TR/REC-xml-names/">namespace</xtermref> to specify element names and attribute names that would be recognized by namespace and XLink-aware processors. Using element and attribute names within the XLink namespace provides a balance between giving users control of their own markup language design and keeping the identification of linking elements simple and unambiguous.

Packit 423ecb
	

The two approaches to identifying linking elements are relatively simple to implement. For example, here's how the HTML A element would be declared using attributes within the XLink namespace, and then how an element within the XLink namespace might do the same:

Packit 423ecb
		<eg><A xlink:type="simple" xlink:href="http://www.w3.org/TR/wd-xlink/"
Packit 423ecb
xlink:title="The Xlink Working Draft">The XLink Working Draft.</A></eg>
Packit 423ecb
		<eg><xlink:simple href="http://www.w3.org/TR/wd-xlink/"
Packit 423ecb
title="The XLink Working Draft">The XLink Working Draft</xlink:simple></eg>
Packit 423ecb
	Any arbitrary element can be made into an XLink by using the xlink:type attribute. And, of course, the explicit XLink elements may be used, as well. This document will go on to describe the linking attributes that are associated with linking elements. It may be assumed by the reader that these attributes would require the xlink namespace prefix if they existed within an arbitrary element, or that they may be used directly if they exist within an explicit Xlink element.

Packit 423ecb
		
Packit 423ecb
</div1>
Packit 423ecb
Packit 423ecb
Packit 423ecb
<div1>
Packit 423ecb
	<head>Linking Attributes</head>
Packit 423ecb
	

XLink has several attributes associated with the variety of links it may represent. These attributes define four main concepts: locators, arcs, behaviors, and semantics. <emph>Locators</emph> define where the actual resource is located. <emph>Arcs</emph> define the traversal of links. Where does the link come from? Where does it go to? All this information can be stored in the arc attributes. <emph>Behaviors</emph> define how the link is activated, and what the application should do with the resource being linked to. <emph>Semantics</emph> define useful information that the application may use, and enables the link for such specalized targets as constricted devices and accessibility software.

Packit 423ecb
	
Packit 423ecb
	<div2 id="link-locators">
Packit 423ecb
		<head>Locator Attributes</head>
Packit 423ecb
		

The only locator attribute at this time is href. This attribute must contain either a string in the form of a URI that defines the remote resource being linked to, a string containing a fragment identifier that links to a local resource, or a string containing a URI with a fragment identifier concacenated onto it.

Packit 423ecb
	</div2>
Packit 423ecb
Packit 423ecb
	<div2 id="link-arcs">
Packit 423ecb
		<head>Arc Attributes</head>
Packit 423ecb
		

Arcs contain two attributes, from and to. The from attribute may contain a string containing the content of a role attribute from the resource being linked from. The purpose of the from attribute is to define where this link is being actuated from.

Packit 423ecb
		

The to attribute may contain a string containing the content of a role attribute from the resource being linked to. The purpose of the to attribute is to define where this link traverses to.

Packit 423ecb
		

The application may use this information in a number of ways, especially in a complex hypertext system, but it is mainly useful in providing context for application behavior.

Packit 423ecb
		
Packit 423ecb
	</div2>
Packit 423ecb
Packit 423ecb
	<div2 id="link-behaviors">
Packit 423ecb
		<head>Behavior Attributes</head>
Packit 423ecb
		

There are two attributes associated with behavior: show and actuate. The show attribute defines how the remote resource is to be revealed to the user. It has three options: new, parsed, and replace. The new option indicates that the remote resource should be shown in a new window (or other device context) without replacing the previous content. The parsed option, relating directly to the XML concept of a parsed entity, indicates that the content should be integrated into the document from which the link was actuated. The replace option is the one most commonly seen on the World Wide Web, where the document being linked from is entirely replaced by the object being linked to.

Packit 423ecb
		

The actuate attribute defines how the link is initiated. It has two options: user and auto. The user option indicates that the link must be initiated by some sort of human-initiated selection, such as clicking on an HTML anchor. The auto option indicates that the link is automatically initiated when the application deems that the user has reached the link. It then follows the behavior set out in the show option.

Packit 423ecb
		
Packit 423ecb
	</div2>
Packit 423ecb
Packit 423ecb
	<div2 id="link-semantics">
Packit 423ecb
		<head>Semantic Attributes</head>
Packit 423ecb
		

There are two attributes associated with semantics, role and title. The role attribute is a generic string used to describe the function of the link's content. For example, a poem might have a link with a role="stanza". The role is also used as an identifier for the from and to attributes of arcs.

Packit 423ecb
		

The title attribute is designed to provide human-readable text describing the link. It is very useful for those who have text-based applications, whether that be due to a constricted device that cannot display the link's content, or if it's being read by an application to a visually-impaired user, or if it's being used to create a table of links. The title attribute contains a simple, descriptive string.

Packit 423ecb
	</div2>
Packit 423ecb
</div1>
Packit 423ecb
Packit 423ecb
<div1 id="linking-elements">
Packit 423ecb
	<head>Linking Elements</head>
Packit 423ecb
	

There are several kinds of linking elements in XLink: simple links, locators, arcs, and extended links. These elements may be instantiated via element declarations from the XLink namespace, or they may be instantiated via attribute declarations from the XLink namespace. Both kinds of instantiation are described in the definition of each linking element.

Packit 423ecb
	

The simple link is used to declare a link that approximates the functionality of the HTML A element. It has, however, a few added features to increase its value, including the potential declaration of semantics and behavior. The locator elements are used to define the resource being linked to. Some links may contain multiple locators, representing a choice of potential links to be traversed. The arcs are used to define the traversal semantics of the link. Finally, an extended linking element differs from a simple link in that it can connect any number of resources, not just one local resource (optionally) and one remote resource, and in that extended links are more often out-of-line than simple links.

Packit 423ecb
Packit 423ecb
<div2 id="simple-links">
Packit 423ecb
	<head>Simple Links</head>
Packit 423ecb
	

<termdef id="dt-simpleline" term="Simple Link"><term>Simple links</term> can be used for purposes that approximate the functionality of a basic HTML A link, but they can also support a limited amount of additional functionality. Simple links have only one locator and thus, for convenience, combine the functions of a linking element and a locator into a single element.</termdef> As a result of this combination, the simple linking element offers both a locator attribute and all the behavior and semantic attributes.

Packit 423ecb
	

The following are two examples of linking elements, each showing all the possible attributes that can be associated with a simple link. Here is the explicit XLink simple linking element.

Packit 423ecb
	<eg><!ELEMENT xlink:simple ANY>
Packit 423ecb
<!ATTLIST xlink:slink
Packit 423ecb
    href           CDATA    				#REQUIRED
Packit 423ecb
    role           CDATA    				#IMPLIED
Packit 423ecb
    title          CDATA    				#IMPLIED
Packit 423ecb
    show           (new|parsed|replace)  	"replace"
Packit 423ecb
    actuate        (user|auto) 				"user"
Packit 423ecb
></eg>
Packit 423ecb
	And here is how to make an arbitrary element into a simple link.
Packit 423ecb
	<eg><!ELEMENT xlink:simple ANY>
Packit 423ecb
<!ATTLIST foo
Packit 423ecb
	xlink:type     (simple|extended|locator|arc) #FIXED "simple"		
Packit 423ecb
    xlink:href     CDATA    				#REQUIRED
Packit 423ecb
    xlink:role     CDATA    				#IMPLIED
Packit 423ecb
    xlink:title    CDATA    				#IMPLIED
Packit 423ecb
    xlink:show     (new|parsed|replace)  	"replace"
Packit 423ecb
    xlink:actuate  (user|auto) 				"user"
Packit 423ecb
></eg>
Packit 423ecb
	Here is how the first example might look in a document:
Packit 423ecb
<eg><xlink:simple href="http://www.w3.org/TR/wd-xlink" role="working draft" 
Packit 423ecb
	title="The XLink Working Draft" show="replace" actuate="user">
Packit 423ecb
The XLink Working Draft.</xlink:simple></eg>
Packit 423ecb
<eg><foo xlink:href="http://www.w3.org/TR/wd-xlink" xlink:role="working draft"
Packit 423ecb
	xlink:title="The XLink Working Draft" xlink:show="new" xlink:actuate="user">
Packit 423ecb
The XLink Working Draft.</foo></eg>
Packit 423ecb
	Alternately, a simple link could be as terse as this:
Packit 423ecb
<eg><foo xlink:href="#stanza1">The First Stanza.</foo></eg>
Packit 423ecb
	

Packit 423ecb
	

Packit 423ecb
	There are no constraints on the contents of a simple linking element. In
Packit 423ecb
	the sample declaration above, it is given a content model of ANY
Packit 423ecb
	to illustrate that any content model or declared content is acceptable. In
Packit 423ecb
	a valid document, every element that is significant to XLink must still conform
Packit 423ecb
	to the constraints expressed in its governing DTD.

Packit 423ecb
	

Note that it is meaningful to have an out-of-line simple link, although

Packit 423ecb
	such links are uncommon. They are called "one-ended" and are typically used
Packit 423ecb
	to associate discrete semantic properties with locations. The properties might
Packit 423ecb
	be expressed by attributes on the link, the link's element type name, or in
Packit 423ecb
	some other way, and are not considered full-fledged resources of the link.
Packit 423ecb
	Most out-of-line links are extended links, as these have a far wider range
Packit 423ecb
	of uses.

Packit 423ecb
</div2>
Packit 423ecb
Packit 423ecb
<div2 id="extended-link">
Packit 423ecb
<head>Extended Links</head>
Packit 423ecb
	

<termdef id="dt-extendedlink" term="Extended Link">An <term>extended link</term> differs from a simple link in that it can connect any number of resources, not just one local resource (optionally) and one remote resource, and in that extended links are more often out-of-line than simple links.</termdef>

Packit 423ecb
	

These additional capabilities of extended links are required for:

Packit 423ecb
		<ulist>
Packit 423ecb
			<item>
Packit 423ecb
				

Enabling outgoing links in documents that cannot be modified to add an inline link

Packit 423ecb
			</item>
Packit 423ecb
			<item>
Packit 423ecb
				

Creating links to and from resources in formats with no native support for embedded links (such as most multimedia formats)

Packit 423ecb
			</item>
Packit 423ecb
			<item>
Packit 423ecb
				

Applying and filtering sets of relevant links on demand

Packit 423ecb
			</item>
Packit 423ecb
			<item>

Enabling other advanced hypermedia capabilities

</item>
Packit 423ecb
		</ulist>
Packit 423ecb
	

Packit 423ecb
	

Application software might be expected to provide traversal among all of a link's participating resources (subject to semantic constraints outside the scope of this specification) and to signal the fact that a given resource or sub-resource participates in one or more links when it is displayed (even though there is no markup at exactly that point to signal it).

Packit 423ecb
	

A linking element for an extended link contains a series of <xtermref href="http://www.w3.org/TR/REC-xml/#dt-parentchild">child elements</xtermref> that serve as locators and arcs. Because an extended link can have more than one remote resource, it separates out linking itself from the mechanisms used to locate each resource (whereas a simple link combines the two).

Packit 423ecb
	

The xlink:type attribute value for an extended link must be extended, if the link is being instantiated on an arbitrary element. Note that extended links introduce variants of the show and actuate behavior attributes. These attributes, the showdefault and actuatedefault define the same behavior as their counterparts. However, in this case, they are considered to define the default behavior for all the linking elements that they contain.

Packit 423ecb
	

However, when a linking element within an extended link has a show or actuate attribute of its own, that attribute overrides the defaults set on the extended linking element.

Packit 423ecb
	

The extended linking element itself retains those attributes relevant to the link as a whole, and to its local resource if any. Following are two sample declaration for an extended link. The first is an example of the explicit XLink extended link:

Packit 423ecb
	
Packit 423ecb
<eg><!ELEMENT xlink:extended ((xlink:arc | xlink:locator)*)>
Packit 423ecb
<!ATTLIST xlink:extended
Packit 423ecb
	role           CDATA    				#IMPLIED
Packit 423ecb
	title          CDATA    				#IMPLIED
Packit 423ecb
	showdefault    (new|parsed|replace)    	#IMPLIED 
Packit 423ecb
    actuatedefault (user|auto) 				#IMPLIED ></eg>
Packit 423ecb
Packit 423ecb
	The second is an example of an arbitrary element being used an extended link:
Packit 423ecb
Packit 423ecb
<eg><!ELEMENT foo ((xlink:arc | xlink:locator)*)>
Packit 423ecb
<!ATTLIST foo
Packit 423ecb
	xlink:type     	(simple|extended|locator|arc) 	#FIXED "extended"
Packit 423ecb
	xlink:role           CDATA    					#IMPLIED
Packit 423ecb
	xlink:title          CDATA    					#IMPLIED
Packit 423ecb
	xlink:showdefault    (new|parsed|replace)    	#IMPLIED 
Packit 423ecb
    xlink:actuatedefault (user|auto) 				#IMPLIED ></eg>
Packit 423ecb
Packit 423ecb
	The following two examples demonstrate how each of the above might appear within a document instance. Note that the content of these examples would be other elements. For brevity's sake, they've been left blank. The first example shows how the link might appear, using an explicit XLink extended link:
Packit 423ecb
Packit 423ecb
<eg><xlink:extended role="address book" title="Ben's Address Book" showdefault="replace" actuatedefault="user"> ... </xlink:extended></eg>
Packit 423ecb
Packit 423ecb
	And the second shows how the link might appear, using an arbitrary element:
Packit 423ecb
Packit 423ecb
<eg><foo xlink:type="extended" xlink:role="address book" xlink:title="Ben's Address Book" xlink:showdefault="replace" xlink:actuatedefault="user"> ... </foo></eg>
Packit 423ecb
	

Packit 423ecb
Packit 423ecb
</div2>
Packit 423ecb
Packit 423ecb
<div2 id="xlink-arcs">
Packit 423ecb
	<head>Arc Elements</head>
Packit 423ecb
	

<termdef id="dt-arc" term="Arc">An <term>arc</term> is contained within an extended link for the purpose of defining traversal behavior.</termdef> More than one arc may be associated with a link. Otherwise, arc elements function exactly as the arc attributes might lead on to expect.

Packit 423ecb
	
Packit 423ecb
</div2>
Packit 423ecb
Packit 423ecb
</div1>
Packit 423ecb
<div1>
Packit 423ecb
<head>Conformance</head>
Packit 423ecb

An element conforms to XLink if: <olist>

Packit 423ecb
<item>

The element has an xml:link attribute whose value is

Packit 423ecb
one of the attribute values prescribed by this specification, and

</item>
Packit 423ecb
<item>

the element and all of its attributes and content adhere to the

Packit 423ecb
syntactic
Packit 423ecb
requirements imposed by the chosen xml:link attribute value,
Packit 423ecb
as prescribed in this specification.

</item>
Packit 423ecb
</olist>

Packit 423ecb

Note that conformance is assessed at the level of individual elements,

Packit 423ecb
rather than whole XML documents, because XLink and non-XLink linking mechanisms
Packit 423ecb
may be used side by side in any one document.

Packit 423ecb

An application conforms to XLink if it interprets XLink-conforming elements

Packit 423ecb
according to all required semantics prescribed by this specification and,
Packit 423ecb
for any optional semantics it chooses to support, supports them in the way
Packit 423ecb
prescribed. 
Packit 423ecb
(e.g. inline links and out-of-line links), the
Packit 423ecb
conformance language will have to address the different
Packit 423ecb
levels of support. -elm--> 

Packit 423ecb
</div1>
Packit 423ecb
</body><back>
Packit 423ecb
<div1 id="unfinished">
Packit 423ecb
<head>Unfinished Work</head>
Packit 423ecb
<div2>
Packit 423ecb
<head>Structured Titles</head>
Packit 423ecb

The simple title mechanism described in this draft is insufficient to cope

Packit 423ecb
with internationalization or the use of multimedia in link titles. A future
Packit 423ecb
version will provide a mechanism for the use of structured link titles.

Packit 423ecb
</div2>
Packit 423ecb
</div1>
Packit 423ecb
<div1>
Packit 423ecb
<head>References</head>
Packit 423ecb
<blist>
Packit 423ecb
<bibl id="xptr" key="XPTR">Eve Maler and Steve DeRose, editors. <titleref>
Packit 423ecb
XML Pointer Language (XPointer) V1.0</titleref>. ArborText, Inso, and Brown
Packit 423ecb
University. Burlington, Seekonk, et al.: World Wide Web Consortium, 1998.
Packit 423ecb
(See <loc href="http://www.w3.org/TR/WD-xptr">http://www.w3.org/TR/WD-xptr
Packit 423ecb
 </loc>.)</bibl>
Packit 423ecb
<bibl id="iso10744" key="ISO/IEC 10744">ISO (International Organization for
Packit 423ecb
Standardization). <titleref>ISO/IEC 10744-1992 (E). Information technology
Packit 423ecb
- Hypermedia/Time-based Structuring Language (HyTime).</titleref> [Geneva]:
Packit 423ecb
International Organization for Standardization, 1992. <titleref>Extended
Packit 423ecb
Facilities
Packit 423ecb
Annex.</titleref> [Geneva]: International Organization for Standardization,
Packit 423ecb
1996. (See  
Packit 423ecb
href="http://www.ornl.gov/sgml/wg8/hytime/html/is10744r.html">http://www.ornl.go
Packit 423ecb
v/sgml/wg8/hytime/html/is10744r.html </loc> 
Packit 423ecb
broken. elm --> ).</bibl>
Packit 423ecb
<bibl id="rfc1738" key="IETF RFC 1738">IETF (Internet Engineering Task
Packit 423ecb
Force). <titleref>
Packit 423ecb
RFC 1738: Uniform Resource Locators</titleref>. 1991. (See  
Packit 423ecb
href="http://www.w3.org/Addressing/rfc1738.txt">
Packit 423ecb
http://www.w3.org/Addressing/rfc1738.txt</loc>).</bibl>
Packit 423ecb
<bibl id="rfc1808" key="IETF RFC 1808">IETF (Internet Engineering Task
Packit 423ecb
Force). <titleref>
Packit 423ecb
RFC 1808: Relative Uniform Resource Locators</titleref>. 1995. (See  
Packit 423ecb
href="http://www.w3.org/Addressing/rfc1808.txt">http://www.w3.org/Addressing/rfc
Packit 423ecb
1808.txt </loc>).</bibl>
Packit 423ecb
<bibl id="tei" key="TEI">C. M. Sperberg-McQueen and Lou Burnard, editors.
Packit 423ecb
<titleref>
Packit 423ecb
Guidelines for Electronic Text Encoding and Interchange</titleref>. Association
Packit 423ecb
for Computers and the Humanities (ACH), Association for Computational
Packit 423ecb
Linguistics
Packit 423ecb
(ACL), and Association for Literary and Linguistic Computing (ALLC). Chicago,
Packit 423ecb
Oxford: Text Encoding Initiative, 1994.  </bibl>
Packit 423ecb
<bibl id="chum" key="CHUM">]Steven J. DeRose and David G. Durand. 1995. "The
Packit 423ecb
TEI Hypertext Guidelines." In <titleref>Computing and the Humanities
Packit 423ecb
</titleref>29(3).
Packit 423ecb
Reprinted in <titleref>Text Encoding Initiative: Background and
Packit 423ecb
Context</titleref>,
Packit 423ecb
ed. Nancy Ide and Jean ronis , ISBN 0-7923-3704-2. </bibl>
Packit 423ecb
</blist></div1>
Packit 423ecb
</back></spec>
Packit 423ecb