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

Namespace declarations are not carried over from external schema fragments #316

Open
2 of 5 tasks
dmj opened this issue Jul 28, 2023 · 1 comment
Open
2 of 5 tasks
Labels
bug Something isn't working
Milestone

Comments

@dmj
Copy link
Member

dmj commented Jul 28, 2023

For an example see Schematron/schematron-enhancement-proposals#62 (comment)

This should work: When include/extends an external Fragment we add sch:ns elements from the target document if present. We turn these sch:ns elements in namespace nodes during the transpile stage.

  • Write a conformance test for this behavior
  • Implement for SchXsl2 Core
  • Implement for SchXslt
  • Implement for SchXslt Redux XSLT 1
  • Implement for SchXslt Redux XSLT 2
@dmj dmj added the bug Something isn't working label Jul 28, 2023
@dmj dmj added this to the bugfix milestone Jul 28, 2023
@dmj dmj changed the title Namespace declarations are not carried over from extern schema fragments Namespace declarations are not carried over from external schema fragments Jul 29, 2023
@dmj
Copy link
Member Author

dmj commented Jul 30, 2023

Note on implementation: Copying the sch:ns does not work if the include target is a sch:let variable with element content. This leaves converting sch:ns into xmlns pseudo attributes as the viable option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant