[#24] New language: XSLT
God, the horror of putting together this example. It boggles the mind how hard XSLT is to use.
This commit is contained in:
parent
b9eb65bc00
commit
647366a8ae
|
@ -2996,6 +2996,25 @@ main:
|
||||||
message:
|
message:
|
||||||
.string "Hello, world!\\n"
|
.string "Hello, world!\\n"
|
||||||
`,
|
`,
|
||||||
|
},
|
||||||
|
xslt: {
|
||||||
|
aliases: ["xsltproc", "xsl"],
|
||||||
|
name: "XSLT",
|
||||||
|
main: "main.xsl",
|
||||||
|
compile: "xsltproc main.xsl -o main",
|
||||||
|
run: "cat main",
|
||||||
|
template: `<?xml-stylesheet type="text/xml" href="#style"?>
|
||||||
|
<main>
|
||||||
|
<xsl:stylesheet xml:id="style"
|
||||||
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
|
version="1.0">
|
||||||
|
<xsl:template match="main">
|
||||||
|
<xsl:value-of select="data"/>
|
||||||
|
</xsl:template>
|
||||||
|
</xsl:stylesheet>
|
||||||
|
<data>Hello, world!</data>
|
||||||
|
</main>
|
||||||
|
`
|
||||||
},
|
},
|
||||||
yaml: {
|
yaml: {
|
||||||
aliases: ["yml"],
|
aliases: ["yml"],
|
||||||
|
|
|
@ -81,6 +81,9 @@ python3.7
|
||||||
# x86
|
# x86
|
||||||
clang
|
clang
|
||||||
|
|
||||||
|
# XSLT
|
||||||
|
xsltproc
|
||||||
|
|
||||||
# YAML
|
# YAML
|
||||||
jq
|
jq
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue