Package org.openrewrite.xml
Class XsltTransformationVisitor
java.lang.Object
org.openrewrite.TreeVisitor<org.openrewrite.xml.tree.Xml,org.openrewrite.ExecutionContext>
org.openrewrite.xml.XmlVisitor<org.openrewrite.ExecutionContext>
org.openrewrite.xml.XsltTransformationVisitor
@Incubating(since="8.30.0")
public class XsltTransformationVisitor
extends org.openrewrite.xml.XmlVisitor<org.openrewrite.ExecutionContext>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.openrewrite.xml.tree.Xml.TagtransformTag(String xmlContent, String xslt) Transform XML content using XSLT transformation.org.openrewrite.xml.tree.XmlvisitDocument(org.openrewrite.xml.tree.Xml.Document document, org.openrewrite.ExecutionContext executionContext) Methods inherited from class org.openrewrite.xml.XmlVisitor
autoFormat, autoFormat, autoFormat, getLanguage, isAcceptable, maybeAutoFormat, maybeAutoFormat, maybeAutoFormat, visitAttribute, visitAttributeValue, visitCharData, visitComment, visitDocTypeDecl, visitDocTypeDeclExternalSubsets, visitElement, visitIdent, visitJspDirective, visitProcessingInstruction, visitProlog, visitTag, visitTagClosing, visitXmlDeclMethods inherited from class org.openrewrite.TreeVisitor
adapt, collect, collect, defaultValue, doAfterVisit, getAfterVisit, getCursor, isAdaptableTo, noop, postVisit, preVisit, reduce, reduce, reduce, setCursor, stopAfterPreVisit, updateCursor, visit, visit, visit, visitAndCast, visitAndCast, visitMarker, visitMarkers, visitNonNull, visitNonNull, visitorTreeType
-
Constructor Details
-
XsltTransformationVisitor
public XsltTransformationVisitor()
-
-
Method Details
-
visitDocument
public org.openrewrite.xml.tree.Xml visitDocument(org.openrewrite.xml.tree.Xml.Document document, org.openrewrite.ExecutionContext executionContext) - Overrides:
visitDocumentin classorg.openrewrite.xml.XmlVisitor<org.openrewrite.ExecutionContext>
-
transformTag
public static org.openrewrite.xml.tree.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 transformxslt- XSLT transformation- Returns:
- Transformed XML content
-