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

Support xsl:use-package with xsl:package-location #366

Open
Arithmeticus opened this issue Feb 20, 2023 · 0 comments
Open

Support xsl:use-package with xsl:package-location #366

Arithmeticus opened this issue Feb 20, 2023 · 0 comments
Labels
Enhancement A change or improvement to an existing feature PRG-easy Categorized as "easy" at the Prague f2f, 2024 PRG-optional Categorized as "optional for 4.0" at the Prague f2f, 2024 XSLT An issue related to XSLT

Comments

@Arithmeticus
Copy link
Contributor

Unless I am misreading the specs (which I do commonly enough), there is currently no way for an XSLT writer using xsl:use-package to indicate where the package is to be found, except outside the XSLT environment. I propose to allow xsl:use-package to contain zero or more xsl:package-location children. I propose the addition of an element and not an attribute, because a package may be in multiple locations, and need nuance, as noted below.

Attributes:

  • @href, on the model of xsl:import and xsl:include, would specify by relative or absolute URI where the package is.
  • @priority (default 0) would provide a mechanism to indicate whether the specified xsl:package-location should override (value greater than 0), or simply provide a fallback for (less than or equal to 0), the preconfigured place the package should be retrieved from.
  • @use-when would allow a developer to manage different versions of a package for different cases.

Other attributes given to xsl:package-location would need discussion.

@ChristianGruen ChristianGruen added XSLT An issue related to XSLT Enhancement A change or improvement to an existing feature labels Feb 20, 2023
@ndw ndw added PRG-optional Categorized as "optional for 4.0" at the Prague f2f, 2024 PRG-easy Categorized as "easy" at the Prague f2f, 2024 labels Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement A change or improvement to an existing feature PRG-easy Categorized as "easy" at the Prague f2f, 2024 PRG-optional Categorized as "optional for 4.0" at the Prague f2f, 2024 XSLT An issue related to XSLT
Projects
None yet
Development

No branches or pull requests

3 participants