Contribution: XProc XSpec pipeline
Closed this issue · 1 comments
GoogleCodeExporter commented
Hello Jeni,
I've created a simple XProc pipeline to execute a XSpec test. I did not
include any of the coverage report stuff because I didn't really understand
it. I've attached the pipeline below.
I've also written up instructions on how to integrate XSpec into Oxygen,
which you are welcome to add to the wiki:
http://www.wordsinboxes.com/2008/12/getting-started-with-xspec.html
-James
<p:pipeline xmlns:p="http://www.w3.org/ns/xproc"
xmlns:c="http://www.w3.org/ns/xproc-step"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:t="http://www.jenitennison.com/xslt/xspec"
name="xspec" type="t:xspec">
<p:documentation>
<p>This pipeline executes an XSpec test.</p>
<p><b>Primary input:</b> A XSpec test document.</p>
<p><b>Primary output:</b> A formatted HTML XSpec report.</p>
</p:documentation>
<p:serialization port="result" encoding="utf-8" method="html" />
<p:xslt name="create-test-stylesheet">
<p:input port="stylesheet">
<p:document href="generate-xspec-tests.xsl"/>
</p:input>
</p:xslt>
<p:xslt name="run-tests" template-name="t:main">
<p:input port="source">
<p:pipe step="xspec" port="source"/>
</p:input>
<p:input port="stylesheet">
<p:pipe step="create-test-stylesheet" port="result"/>
</p:input>
</p:xslt>
<p:xslt name="format-report">
<p:input port="stylesheet">
<p:document href="format-xspec-report.xsl"/>
</p:input>
</p:xslt>
</p:pipeline>
Original issue reported on code.google.com by jsulak@gmail.com
on 10 Dec 2008 at 11:23
GoogleCodeExporter commented
Thank you very much James. I've edited the Wiki to point to your description of
integration into Oxygen, and
added xspec.xpl to trunk (and put a link to it in the same page).
If you'd like me to add you as a member of the project, so that you can make
these kinds of changes yourself,
please let me know your Google email address.
Thanks,
Jeni
Original comment by jeni.ten...@gmail.com
on 11 Dec 2008 at 9:43
- Changed state: Done
- Added labels: Type-Enhancement
- Removed labels: Type-Defect