mots
authorgggeek <giunta.gaetano@gmail.com>
Wed, 21 Dec 2022 15:25:49 +0000 (15:25 +0000)
committergggeek <giunta.gaetano@gmail.com>
Wed, 21 Dec 2022 15:25:49 +0000 (15:25 +0000)
.gitattributes
doc/build/convert.php
doc/build/custom.fo.xsl

index c776c5d..29c3b37 100644 (file)
@@ -10,5 +10,4 @@ tests/ export-ignore
 .editorconfig export-ignore
 .gitattributes export-ignore
 .gitignore export-ignore
-pakefile.php export-ignore
 phpunit.xml.dist export-ignore
index 75b085c..16aa9a7 100644 (file)
@@ -66,6 +66,16 @@ $processor->importStyleSheet($xsl);
 
 $out = $processor->transformToXML($xml);
 
+// bring back the xsl file to its pristine state
+file_put_contents(
+    $xss,
+    str_replace(
+        array($docbookFoXslPath, $docbookChunkXslPath),
+        array('%fo-docbook.xsl%', '%docbook-chunk.xsl%'),
+        file_get_contents($xss)
+    )
+);
+
 if (!is_dir($target)) {
     if (!file_put_contents($target, $out)) {
         error("KO saving output to '{$target}'");
index 074bc9f..2f37de6 100644 (file)
@@ -11,7 +11,7 @@
 
 
 <!-- import base stylesheet. This assumes the xslt is preprocessed before being used -->
-<xsl:import href="/home/docker/build/doc/build/vendor/docbook/docbook-xsl/fo/docbook.xsl"/>
+<xsl:import href="%fo-docbook.xsl%"/>
 
 
 <!-- customization vars -->