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

Transform xml-stylesheet processing instructions #9102

Merged

Conversation

AndrewKvalheim
Copy link
Contributor

↪️ Pull Request

XML documents may link to external assets via xml-stylesheet processing instructions. This is commonly used to transform XML into HTML via XSLT.

#6535 explored this prior to the addition of transformer-xml to support the use case of applying CSS to SVGs and ended up specializing as transformer-svg, but XSLT remains unsupported.

💻 Examples

Transformation:

- <?xml-stylesheet type="text/xsl" href="atom.xsl"?>
+ <?xml-stylesheet type="text/xsl" href="/atom.090d4d94.xsl"?>

This blog post explains practical usage and links to examples in the wild.

✔️ PR Todo

  • Added/updated unit tests for this change
  • Filled out test instructions (In case there aren't any unit tests)
  • Included links to related issues/PRs

XML documents may link to external assets via xml-stylesheet processing
instructions:

    https://www.w3.org/TR/xml-stylesheet/

This is commonly used to transform XML into HTML via XSLT:

    https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/Generating_HTML
@AndrewKvalheim AndrewKvalheim marked this pull request as ready for review June 22, 2023 00:06
@devongovett devongovett merged commit f10e262 into parcel-bundler:v2 Oct 9, 2023
14 of 16 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants