Re: @xml:base with @rendition (and maybe other pointers)
"C. M. Sperberg-McQueen" <[email protected]> Thu, 4 May 2017 14:42:11 -0600
| Newsgroups | gmane.text.tei.general |
|---|---|
| Message-ID | <[email protected]> |
> On May 4, 2017, at 1:31 PM, John P. McCaskey = <[email protected]> wrote: >=20 > What is the short bottom-line guidance for someone trying to encode a = document? Is it this? >=20 > To point inside a TEI document, as for @rendition, use pointers of the = form #destination. Any later changes to xml:base values will not mess up = your internal # pointers. >=20 > Don=E2=80=99t try to point outside your TEI document by using xml:base = plus a #destination in the pointer attribute. No xml:base attribute will = be prepended to a pointer that begins with a #. No. Sorry. That=E2=80=99s not the way it works, and I think this = discussion has already demonstrated that it=E2=80=99s a dangerous way to = describe the behavior. =20 If you want to keep things simple for the encoders, I=E2=80=99d rephrase = this as something like: Don=E2=80=99t try to point outside your TEI = document by using xml:base plus a #destination in the pointer attribute. = It does not have the desired meaning. Point outside your TEI document = either using an absolute URI or an xml:base attribute plus the final = part of the path (the =E2=80=98file name=E2=80=99 part) and the fragment = identifier. So NOT <ptr xml:base=3D=E2=80=9Clib/foo.xml=E2=80=9D = target=3D=E2=80=9C#bar=E2=80=9D/> but <ptr xml:base=3D=E2=80=9Clib/=E2=80=9D= target=3D=E2=80=9Cfoo.xml#bar=E2=80=9D/>. ******************************************** C. M. Sperberg-McQueen Black Mesa Technologies LLC [email protected] http://www.blackmesatech.com ********************************************