diff ascii.xpl @ 8:785187b9caef

working toward doing an ascii-rectangle repr of a sheet
author Henry S. Thompson <ht@markup.co.uk>
date Sun, 02 Apr 2017 21:13:16 +0800
parents
children 01e80c7a9575
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ascii.xpl	Sun Apr 02 21:13:16 2017 +0800
@@ -0,0 +1,43 @@
+<?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="ascii">
+ 
+ <p:documentation xmlns="http://www.w3.org/1999/xhtml">
+  <div>Run this e.g. as follows:
+       xproc --input source=sample2/xl/worksheets/sheet1.xml ascii.xpl elabDir=file:/d/MT/sonra/OOXML</div>
+ </p:documentation>
+ 
+ <p:option name="elabDir" required="true">
+  <p:documentation xmlns="http://www.w3.org/1999/xhtml">
+   <div>Directory where stylesheets, other info for stylesheet elaboration are found</div>
+  </p:documentation>
+ </p:option>
+ 
+ <p:load name="ss1">
+  <p:with-option name="href" select="concat($elabDir,'/format.xsl')"/>
+ </p:load>
+
+ <p:xslt name="format">
+   <p:input port="source">
+    <p:pipe step="ascii" port="source"/>
+   </p:input>
+  <p:input port="stylesheet">
+   <p:pipe step="ss1" port="result"/>
+  </p:input>
+  <p:with-param name="elabDir" select="$elabDir"/>
+ </p:xslt>
+ 
+ <p:load name="ss2">
+  <p:with-option name="href" select="concat($elabDir,'/ascii.xsl')"/>
+ </p:load>
+ 
+ <p:xslt name="ascii">
+   <p:input port="source">
+    <p:pipe step="format" port="source"/>
+   </p:input>
+  <p:input port="stylesheet">
+   <p:pipe step="ss2" port="result"/>
+  </p:input>
+  <p:with-param name="elabDir" select="$elabDir"/>
+ </p:xslt>
+</p:pipeline>