-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #102 from ndw/master
Stylesheet, build, and infrastructure improvements
- Loading branch information
Showing
11 changed files
with
288 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.gradle/ | ||
output.xml | ||
output.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
buildscript { | ||
repositories { | ||
maven { url uri('/tmp/repo') } | ||
mavenLocal() | ||
mavenCentral() | ||
maven { url "http://maven.restlet.org" } | ||
} | ||
|
||
dependencies { | ||
classpath group: 'org.docbook', name: 'docbook-xslt2', version: '2.2.0' | ||
classpath group: 'org.docbook', name: 'docbook-schemas', version: '5.1-1' | ||
classpath group: 'com.xmlcalabash', name: 'xmlcalabash', version: '1.1.18-98' | ||
classpath group: 'com.xmlcalabash', name: 'xmlcalabash1-gradle', version: '1.3.2' | ||
classpath group: 'org.xmlresolver', name: 'xmlresolver', version: '0.13.1' | ||
} | ||
} | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
} | ||
|
||
import org.docbook.DocBookTask | ||
import com.xmlcalabash.XMLCalabashTask | ||
|
||
task helloWorld() { | ||
doFirst { | ||
println("Hello, world.") | ||
} | ||
} | ||
|
||
task testTask(type: XMLCalabashTask) { | ||
input("source", "input.xml") | ||
output("result", "output.xml") | ||
pipeline("pipeline.xpl") | ||
} | ||
|
||
task testDocBook(type: DocBookTask) { | ||
debug = true | ||
uriResolver = "org.xmlresolver.Resolver" | ||
input("source", "input.xml") | ||
output("result", "output.html") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<article xmlns="http://docbook.org/ns/docbook" | ||
version="5.0"> | ||
<info> | ||
<title>Test Article</title> | ||
</info> | ||
<para>This is a test.</para> | ||
</article> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" | ||
version="1.0"> | ||
<p:input port="source"/> | ||
<p:output port="result"/> | ||
|
||
<p:identity/> | ||
</p:declare-step> |
Oops, something went wrong.