Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define support for fragment identifiers in URIs on p:import #34

Open
xml-project opened this issue Dec 21, 2022 · 2 comments
Open

Define support for fragment identifiers in URIs on p:import #34

xml-project opened this issue Dec 21, 2022 · 2 comments

Comments

@xml-project
Copy link
Member

Currently the spec does not say anything about handling fragment identifiers in URIs on p:import. The same is for p:import-functions. The XSLT spec at least says that support is implementation defined.
I think we should say some more about this case. Here are my suggestions:

  • Support for (types of ) fragment identifiers should be implementation defined.
  • A processor not supporting (a given type of) fragment identifiers <RFC 2119>must</RFC 2119) raise a specific error (XS0052 or other).
  • The document referenced by the URI (without fragment identifier) <RFC 2119>must</RFC 2119) be a well formed XML document. (I do not think we need to deal with xml islands in plain text documents, do we?)
  • It is an error if the fragment identifier does not specify exactly one element node.
  • All in scope namespaces on that element are respected for XProc processing.
  • The evaluation of the fragment identifier is done before any evaluation of static options or [p:]use-when expressions.

I am not sure, I cover all relevant points, so please feel free to add comments.

@xml-project
Copy link
Member Author

Addendum: We need to consider whether and how support fragment identifiers has consequences for duplicate, circular chain of imports, or a re-entrant import. E.g. consider import via id-fragmenter and xpointer-selector point to the same element. Is there a way for a processor to know, that this is a case of duplicate import?

@ndw
Copy link

ndw commented Jan 3, 2023

That all sounds reasonable to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants