Class XsltTransformationVisitor

java.lang.Object
org.openrewrite.TreeVisitor<Xml,P>
org.openrewrite.xml.XmlVisitor<org.openrewrite.ExecutionContext>
org.openrewrite.xml.XsltTransformationVisitor

@Incubating(since="8.30.0") public class XsltTransformationVisitor extends XmlVisitor<org.openrewrite.ExecutionContext>
  • Constructor Details

    • XsltTransformationVisitor

      public XsltTransformationVisitor()
  • Method Details

    • visitDocument

      public Xml visitDocument(Xml.Document document, org.openrewrite.ExecutionContext executionContext)
      Overrides:
      visitDocument in class XmlVisitor<org.openrewrite.ExecutionContext>
    • transformTag

      public static Xml.Tag transformTag(@Language("xml") String xmlContent, @Language("xslt") String xslt)
      Transform XML content using XSLT transformation. There are no formatting guarantees with this transformation.
      Parameters:
      xmlContent - XML content to transform
      xslt - XSLT transformation
      Returns:
      Transformed XML content