Mercurial > hg > ooxml
comparison 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 |
comparison
equal
deleted
inserted
replaced
14:261e439a19fb | 15:e767bef35bb9 |
---|---|
1 <?xml version='1.0'?> | 1 <?xml version='1.0'?> |
2 <!DOCTYPE p:pipeline SYSTEM "../../../WWW/XML/XProc/docs/schemas/xproc.dtd" > | 2 <!DOCTYPE p:pipeline SYSTEM "../../../WWW/XML/XProc/docs/schemas/xproc.dtd" > |
3 <p:pipeline xmlns:p="http://www.w3.org/ns/xproc" xmlns:x="http://www.w3.org/1999/xhtml" version="1.0" name="vis"> | 3 <p:pipeline xmlns:p="http://www.w3.org/ns/xproc" xmlns:x="http://www.w3.org/1999/xhtml" version="1.0" name="vis"> |
4 <p:serialization method="text" port="result"/> | |
5 | 4 |
6 <p:documentation xmlns="http://www.w3.org/1999/xhtml"> | 5 <p:documentation xmlns="http://www.w3.org/1999/xhtml"> |
7 <div>Run this e.g. as follows: | 6 <div>Run this e.g. as follows: |
8 xproc --input source=sample2/xl/worksheets/sheet1.xml visualise.xpl elabDir=file:/d/MT/sonra/OOXML</div> | 7 xproc --input source=sample2/xl/worksheets/sheet1.xml visualise.xpl elabDir=file:/d/MT/sonra/OOXML</div> |
9 </p:documentation> | 8 </p:documentation> |
10 | 9 |
11 <p:option name="elabDir" required="true"> | 10 <p:option name="elabDir" required="true"> |
12 <p:documentation xmlns="http://www.w3.org/1999/xhtml"> | 11 <p:documentation xmlns="http://www.w3.org/1999/xhtml"> |
13 <div>Directory where stylesheets, other info for stylesheet elaboration are found</div> | 12 <div>Directory where stylesheets, other info for stylesheet elaboration are found</div> |
13 </p:documentation> | |
14 </p:option> | |
15 | |
16 <p:option name="format" select="'ascii.xsl'"> | |
17 <p:documentation xmlns="http://www.w3.org/1999/xhtml"> | |
18 <div>If supplied, then use as stylesheet (located relative to elabDir)</div> | |
14 </p:documentation> | 19 </p:documentation> |
15 </p:option> | 20 </p:option> |
16 | 21 |
17 <p:load name="ss1"> | 22 <p:load name="ss1"> |
18 <p:with-option name="href" select="concat($elabDir,'/format.xsl')"/> | 23 <p:with-option name="href" select="concat($elabDir,'/format.xsl')"/> |
40 <p:pipe step="ss2" port="result"/> | 45 <p:pipe step="ss2" port="result"/> |
41 </p:input> | 46 </p:input> |
42 </p:xslt> | 47 </p:xslt> |
43 | 48 |
44 <p:load name="ss3"> | 49 <p:load name="ss3"> |
45 <p:with-option name="href" select="concat($elabDir,'/ascii.xsl')"/> | 50 <p:with-option name="href" select="concat($elabDir,'/',$format)"/> |
46 </p:load> | 51 </p:load> |
47 | 52 |
48 <p:xslt name="asc"> | 53 <p:xslt name="asc"> |
49 <p:input port="source"> | 54 <p:input port="source"> |
50 <p:pipe step="rect" port="result"/> | 55 <p:pipe step="rect" port="result"/> |