@@ -16,9 +16,9 @@ |
||
| 16 | 16 | $target = $_SERVER['argv'][3]; |
| 17 | 17 | |
| 18 | 18 | if (!file_exists($doc)) |
| 19 | - error("KO: file $doc cannot be found"); |
|
| 19 | + error("KO: file $doc cannot be found"); |
|
| 20 | 20 | if (!file_exists($xss)) |
| 21 | - error("KO: file $xss cannot be found"); |
|
| 21 | + error("KO: file $xss cannot be found"); |
|
| 22 | 22 | |
| 23 | 23 | info("Starting xsl conversion process..."); |
| 24 | 24 | |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | * @todo rename to something akin to xsltproc |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | -if ($_SERVER['argc'] < 4) { |
|
| 10 | +if ($_SERVER['argc']<4) { |
|
| 11 | 11 | error("Usage: php convert.php docbook.xml stylesheet.xsl output-dir|output_file"); |
| 12 | 12 | } |
| 13 | 13 | |
@@ -15,10 +15,12 @@ |
||
| 15 | 15 | $xss = $_SERVER['argv'][2]; |
| 16 | 16 | $target = $_SERVER['argv'][3]; |
| 17 | 17 | |
| 18 | -if (!file_exists($doc)) |
|
| 18 | +if (!file_exists($doc)) { |
|
| 19 | 19 | error("KO: file $doc cannot be found"); |
| 20 | -if (!file_exists($xss)) |
|
| 20 | +} |
|
| 21 | +if (!file_exists($xss)) { |
|
| 21 | 22 | error("KO: file $xss cannot be found"); |
| 23 | +} |
|
| 22 | 24 | |
| 23 | 25 | info("Starting xsl conversion process..."); |
| 24 | 26 | |