-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add XSLT transformation recipe (#3606)
* Add XSLT transformation recipe * Update rewrite-maven/src/main/java/org/openrewrite/maven/ChangePluginConfiguration.java Co-authored-by: Tim te Beek <[email protected]> * Update rewrite-maven/src/main/java/org/openrewrite/maven/ChangePluginConfiguration.java Co-authored-by: Tim te Beek <[email protected]> * Update rewrite-xml/src/main/java/org/openrewrite/xml/XsltTransformation.java Co-authored-by: Tim te Beek <[email protected]> * Update rewrite-xml/src/main/java/org/openrewrite/xml/XsltTransformationVisitor.java Co-authored-by: Tim te Beek <[email protected]> * Update rewrite-xml/src/main/java/org/openrewrite/xml/XsltTransformationVisitor.java Co-authored-by: Tim te Beek <[email protected]> * Update rewrite-xml/src/main/java/org/openrewrite/xml/XsltTransformationVisitor.java Co-authored-by: Tim te Beek <[email protected]> * Update rewrite-xml/src/main/java/org/openrewrite/xml/XsltTransformationVisitor.java Co-authored-by: Tim te Beek <[email protected]> * Fix merge issues * Update build.gradle.kts * Fix compilation errors * Add example values as suggested * Complete XsltTransformation description * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Shorten and harden either/or validation * Small changes for consistency * Validate that configuration is set at most once --------- Co-authored-by: Tim te Beek <[email protected]> Co-authored-by: Jonathan Schnéider <[email protected]> Co-authored-by: Tim te Beek <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
6810d2f
commit c24ec1c
Showing
7 changed files
with
525 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | ||
|
||
<xsl:template match="@*|node()"> | ||
<xsl:copy> | ||
<xsl:apply-templates select="@*|node()"/> | ||
</xsl:copy> | ||
</xsl:template> | ||
|
||
<xsl:template match="recipe"> | ||
<activeRecipe> | ||
<xsl:value-of select="current()"/> | ||
</activeRecipe> | ||
</xsl:template> | ||
|
||
</xsl:stylesheet> |
Oops, something went wrong.