diff --git a/_sources/transforms/transforms-example/examples.yaml b/_sources/transforms/transforms-example/examples.yaml index af78540..1ab5bdb 100644 --- a/_sources/transforms/transforms-example/examples.yaml +++ b/_sources/transforms/transforms-example/examples.yaml @@ -7,4 +7,18 @@ examples: "one": 1, "two": 2, "string": "value" - } \ No newline at end of file + } + + - title: Example for XSLT transform + snippets: + - language: xml + code: |- + +
+ My Article + + Mr. Foo + Mr. Bar + + This is my article text. +
\ No newline at end of file diff --git a/_sources/transforms/transforms-example/transforms.yaml b/_sources/transforms/transforms-example/transforms.yaml index c82719a..573ece8 100644 --- a/_sources/transforms/transforms-example/transforms.yaml +++ b/_sources/transforms/transforms-example/transforms.yaml @@ -14,3 +14,8 @@ transforms: type: jq code: | .test = "test" + + - id: sample-xslt + description: This transform applies some changes to input XML to demonstrate XSLT transforms + type: xslt + ref: transforms/sample.xslt \ No newline at end of file diff --git a/_sources/transforms/transforms-example/transforms/sample.xslt b/_sources/transforms/transforms-example/transforms/sample.xslt new file mode 100644 index 0000000..ef400e0 --- /dev/null +++ b/_sources/transforms/transforms-example/transforms/sample.xslt @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +