I don't know if this will work for David. It has worked for others in the
past and may work for others in the future. It doesn't involve
modifications to the DTD. It does have one advantage, if the URL for a
referenced resource changes, the URL has only to be changed in one place
in the TEI file.
Example using <gi>ref</gi>:
an example of mark-up inspired by the <ref target="tei">Text Encoding
The <gi>ref</gi> element takes a <attr>target</attr> with a value of
type IDREF. The value of the <attr>target</attr> matches the value of an
<attr>id</attr> with value of type ID on an <gi>item</gi> in a
<gi>list</gi> in a <gi>div</gi> in the <gi>back</gi>:
Of course, the <gi>ref</gi> can target another kind of element.
Using XSLT, one can output some HTML to insert hyperlinks. Example:
<!-- compares value of target attribute on ref element -->
<!-- to value of id attribute on item element -->
<xsl:param name="urlbuild" select="@target" />
<!-- builds an HTML anchor element -->
<xsl:value-of select="." />
I think this mechanism can be adapted to reference locations within an
external XML file.
> > I'm having to deal for the first time with references that will
> > address locations in XML files external to the current document. (The
> > situation is a digitized version of a 6-volume printed work, where
> > each volume will exist as a separate XML file; I need to handle
> > cross-references from one volume to another.) I have a couple of
> > beginner's questions.
> > 1. What is the proper format of the entity declaration for the
> > external document? Suppose Volume 1 is in file "vol1.xml"; would
> > this be the right sort of declaration to use the files for other
> > volumes?
> > <!NOTATION xml PUBLIC "someplace"> <!-- value for 'someplace'? -->
> > <!ENTITY vol1 SYSTEM 'vol1.xml' NDATA xml>
> > (note that in the printed TEI P4 guidelines, sec. 14.2.3 at the top
> > of p. 366, there's a sample declaration of a 'dunciad' element
> > lacking the NDATA portion--this is an error, no? My parser
> > complains that "xml" is not an unparsed element in this case.)
> > 2. Then would this be the proper form of a reference to a particular
> > note in that volume, assuming that note has an id=V1P374n2 ?
> > <note>See above <xref doc="vol1" from="id (V1P374n2)">1:374 n2.</note>
> > Thanks in advance for guidance,
> > David
> > --
> > David Sewell, Editorial and Technical Manager
> > Electronic Imprint, The University of Virginia Press
> > PO Box 400318, Charlottesville, VA 22904-4318 USA
> > Courier: 310 Old Ivy Way, Suite 302, Charlottesville VA 22903
> > Email: [log in to unmask] Tel: +1 434 924 9973
> > Web: http://www.ei.virginia.edu/