Mercurial > hg > ooxml
diff visualise.xpl @ 15:e767bef35bb9
default to ascii, but accept html.xsl for pretty
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Mon, 03 Apr 2017 16:02:10 +0100 |
parents | f78e8c55c06b |
children | a874f2a81ed2 |
line wrap: on
line diff
--- a/visualise.xpl Mon Apr 03 15:07:00 2017 +0100 +++ b/visualise.xpl Mon Apr 03 16:02:10 2017 +0100 @@ -1,7 +1,6 @@ <?xml version='1.0'?> <!DOCTYPE p:pipeline SYSTEM "../../../WWW/XML/XProc/docs/schemas/xproc.dtd" > <p:pipeline xmlns:p="http://www.w3.org/ns/xproc" xmlns:x="http://www.w3.org/1999/xhtml" version="1.0" name="vis"> - <p:serialization method="text" port="result"/> <p:documentation xmlns="http://www.w3.org/1999/xhtml"> <div>Run this e.g. as follows: @@ -14,6 +13,12 @@ </p:documentation> </p:option> + <p:option name="format" select="'ascii.xsl'"> + <p:documentation xmlns="http://www.w3.org/1999/xhtml"> + <div>If supplied, then use as stylesheet (located relative to elabDir)</div> + </p:documentation> + </p:option> + <p:load name="ss1"> <p:with-option name="href" select="concat($elabDir,'/format.xsl')"/> </p:load> @@ -42,7 +47,7 @@ </p:xslt> <p:load name="ss3"> - <p:with-option name="href" select="concat($elabDir,'/ascii.xsl')"/> + <p:with-option name="href" select="concat($elabDir,'/',$format)"/> </p:load> <p:xslt name="asc">