$ mvn -C clean install
Copyright © 2014 <code@io7m.com> http://io7m.com
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
URI uri;
Log log;
InputStream stream;
final SDocument doc = SDocumentParser.fromStream(stream, uri, log);
Log log;
SDocument doc;
final SADocument adoc = SAnnotator.document (doc, log);
Log log;
SADocument doc;
SDocumentXHTMLWriterCallbacks callbacks;
SDocumentXHTMLWriterSingle writer = new SDocumentXHTMLWriterSingle();
SortedMap<String, Document> pages = writer.writeDocuments(callbacks, doc);
jsc: [options] --check file
or [options] --xhtml-single file outdir
or [options] --xhtml-multi file outdir
or [options] --version
--check Parse and validate all source files, but do not produce output
--debug Enable debugging (debug messages, exception backtraces)
-h,--help Show this help message
--version Display version
--xhtml-body-end <file> Insert the given file into the resulting XHTML at the end of the document's body
--xhtml-body-start <file> Insert the given file into the resulting XHTML at the start of the document's body
--xhtml-multi Produce multiple XHTML files as output
--xhtml-single Produce a single XHTML file as output
<s:term s:type="something" xml:id="a_term">Hello</s:term>The XHTML output will be similar to:
<a id="ref_a_term"></a> <span class="st200_term something">Hello</span>
<link s:target="elem_paragraph">paragraph</link>Produces the following output in the context of this document: paragraph.
<paragraph><link s:target="elem_paragraph"><image s:source="strawberry.png">Strawberry</image></paragraph></link>Produces the following output in the context of this document:
<s:link s:target="elem_formal-item.example">formal-item</s:link>Produces the following output in the context of this document: formal-item.
<link-external s:target="http://www.io7m.com">io7m</link-external>Produces the following output in the context of this document: io7m.
<paragraph><link-external s:target="http://www.io7m.com"><image s:source="strawberry.png">Strawberry</image></paragraph></link-external>Produces the following output in the context of this document:
<table>
<table-summary>Summary</table-summary>
<table-head>
<table-column-name>First</table-column-name>
<table-column-name>Second</table-column-name>
<table-column-name>Third</table-column-name>
</table-head>
<table-body>
<table-row>
<table-cell>Cell 1</table-cell>
<table-cell>Cell 2</table-cell>
<table-cell>Cell 3</table-cell>
</table-row>
<table-row>
<table-cell>Cell 1</table-cell>
<table-cell>Cell 2</table-cell>
<table-cell>Cell 3</table-cell>
</table-row>
</table-body>
</table>
Produces the following output in the context of this document:
| First | Second | Third |
|---|---|---|
| Cell 1 | Cell 2 | Cell 3 |
| Cell 1 | Cell 2 | Cell 3 |