Re: [xml-dev] xml:base and fragments

From
Simon St.Laurent <>
To
Date
2017-05-08T20:26:54Z
ID
<>
Thread
Re: [xml-dev] xml:base and fragments
On 5/8/2017 2:51 PM, Peter Flynn wrote:
> I am clearly missing something here: why are people using #fragment
> identifiers in XML (non-XHTML/HTML5) documents (eg TEI)?

I'm not sure it's as complete an answer as you want, but you certainly 
can use fragment identifiers in XML.

"The syntax and semantics of fragment identifiers for the XML media
    types defined in this specification are based on the
    [XPointerFramework] W3C Recommendation.  It allows simple names and
    more complex constructions based on named schemes.  When the syntax
    of a fragment identifier part of any URI or Internationalized
    Resource Identifier (IRI) ([RFC3987]) with a retrieved media type
    governed by this specification conforms to the syntax specified in
    [XPointerFramework], conforming applications MUST interpret such
    fragment identifiers as designating whatever is specified by the
    [XPointerFramework] together with any other specifications governing
    the XPointer schemes used in those identifiers that the applications
    support.  Conforming applications MUST support the 'element' scheme
    as defined in [XPointerElement], but need not support other schemes."

https://tools.ietf.org/html/rfc7303#section-5

Section 6 even mentions the dreaded xml:base:

https://tools.ietf.org/html/rfc7303#section-6

Thanks,
Simon