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

Missing ruling in p:xslt #187

Closed
xml-project opened this issue Aug 4, 2019 · 3 comments

Comments

@xml-project
Copy link
Contributor

commented Aug 4, 2019

In the specs we say:

Option output-base-uri sets the base output URI per XSLT 3.0 specification. If a final result tree is constructed, this URI is used to resolve a relative URI reference. If no value is supplied for output-base-uri, the base URI of the first document in the source port's sequence is used.

This is taken verbatim from the 1.0 specs, but: What happens if there is no document on port source because it is bound to p:empty?

If I remember right, XMLCalabash and MorganaXProc found two different solutions to this problem.

What to do? We could use

  1. base-url of the stylesheet
  2. base-uri of p:xslt
  3. base-url of p:declare-step
  4. base-uri of pipeline.

Suggestions?

@ndw

This comment has been minimized.

Copy link
Collaborator

commented Aug 5, 2019

I think the XSLT answer is that it's the base URI of the stylesheet.

@xml-project xml-project self-assigned this Aug 5, 2019

@xml-project

This comment has been minimized.

Copy link
Contributor Author

commented Aug 5, 2019

Will add a note to the specs.

This was referenced Aug 5, 2019

@xml-project

This comment has been minimized.

Copy link
Contributor Author

commented Aug 5, 2019

Fixed with #191

@xml-project xml-project closed this Aug 5, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.