aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 5f4790a8a281df40d72a717e2a1598b7fb9e9b68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# BuildXSLT

... is a simple XSLT build system built on [InputXSLT](https://github.com/KnairdA/InputXSLT).

## Current features:

- processing tasks contained within XML _Makefiles_
- generating single transformations
- generating chained transformations
- using files or embedded XML-trees as transformation input
- using external modules such as [StaticXSLT](https://github.com/KnairdA/StaticXSLT)

## Example:

BuildXSLT can for example be used to build a [static website](https://github.com/KnairdA/blog.kummerlaender.eu) using the following XML _Makefile_ called via `ixslt --input make.xml --transformation build.xsl --include ../StaticXSLT`:

```
<task type="module">
	<input mode="embedded">
		<datasource>
			<meta>
				<source>source</source>
				<target>target</target>
			</meta>
		</datasource>
	</input>
	<definition mode="file">[StaticXSLT.xml]</definition>
</task>
```

Where the module definition of `StaticXSLT.xml` looks as follows:

```
<transformation mode="chain">
	<link>src/steps/list.xsl</link>
	<link>src/steps/plan.xsl</link>
	<link>src/steps/process.xsl</link>
	<link>src/steps/summarize.xsl</link>
</transformation>
```