comparison visualise.xpl @ 13:f78e8c55c06b

three steps now
author Henry S. Thompson <ht@markup.co.uk>
date Mon, 03 Apr 2017 14:46:01 +0100
parents 01e125d722be
children e767bef35bb9
comparison
equal deleted inserted replaced
12:01e125d722be 13:f78e8c55c06b
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="ascii"> 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"/>
4 5
5 <p:documentation xmlns="http://www.w3.org/1999/xhtml"> 6 <p:documentation xmlns="http://www.w3.org/1999/xhtml">
6 <div>Run this e.g. as follows: 7 <div>Run this e.g. as follows:
7 xproc --input source=sample2/xl/worksheets/sheet1.xml ascii.xpl elabDir=file:/d/MT/sonra/OOXML</div> 8 xproc --input source=sample2/xl/worksheets/sheet1.xml visualise.xpl elabDir=file:/d/MT/sonra/OOXML</div>
8 </p:documentation> 9 </p:documentation>
9 10
10 <p:option name="elabDir" required="true"> 11 <p:option name="elabDir" required="true">
11 <p:documentation xmlns="http://www.w3.org/1999/xhtml"> 12 <p:documentation xmlns="http://www.w3.org/1999/xhtml">
12 <div>Directory where stylesheets, other info for stylesheet elaboration are found</div> 13 <div>Directory where stylesheets, other info for stylesheet elaboration are found</div>
17 <p:with-option name="href" select="concat($elabDir,'/format.xsl')"/> 18 <p:with-option name="href" select="concat($elabDir,'/format.xsl')"/>
18 </p:load> 19 </p:load>
19 20
20 <p:xslt name="format"> 21 <p:xslt name="format">
21 <p:input port="source"> 22 <p:input port="source">
22 <p:pipe step="ascii" port="source"/> 23 <p:pipe step="vis" port="source"/>
23 </p:input> 24 </p:input>
24 <p:input port="stylesheet"> 25 <p:input port="stylesheet">
25 <p:pipe step="ss1" port="result"/> 26 <p:pipe step="ss1" port="result"/>
26 </p:input> 27 </p:input>
27 <p:with-param name="elabDir" select="$elabDir"/> 28 <p:with-param name="elabDir" select="$elabDir"/>
29 30
30 <p:load name="ss2"> 31 <p:load name="ss2">
31 <p:with-option name="href" select="concat($elabDir,'/rect.xsl')"/> 32 <p:with-option name="href" select="concat($elabDir,'/rect.xsl')"/>
32 </p:load> 33 </p:load>
33 34
34 <p:xslt name="asc"> 35 <p:xslt name="rect">
35 <p:input port="source"> 36 <p:input port="source">
36 <p:pipe step="format" port="result"/> 37 <p:pipe step="format" port="result"/>
37 </p:input> 38 </p:input>
38 <p:input port="stylesheet"> 39 <p:input port="stylesheet">
39 <p:pipe step="ss2" port="result"/> 40 <p:pipe step="ss2" port="result"/>
40 </p:input> 41 </p:input>
41 <p:with-param name="elabDir" select="$elabDir"/>
42 </p:xslt> 42 </p:xslt>
43 43
44 <p:load name="ss3"> 44 <p:load name="ss3">
45 <p:with-option name="href" select="concat($elabDir,'/ascii.xsl')"/> 45 <p:with-option name="href" select="concat($elabDir,'/ascii.xsl')"/>
46 </p:load> 46 </p:load>
47
48 <p:xslt name="asc">
49 <p:input port="source">
50 <p:pipe step="rect" port="result"/>
51 </p:input>
52 <p:input port="stylesheet">
53 <p:pipe step="ss3" port="result"/>
54 </p:input>
55 </p:xslt>
47 </p:pipeline> 56 </p:pipeline>