Re: [xml] xsltproc Error: I/O error : Attempt to load network entity

Ben Aurel wrote:
I've already tried this with no success. If I just leave --nonet out
then the command looks like:

   xsltproc --stringparam html.stylesheet "./docbook-xsl.css"
--stringparam 0
   --stringparam 0  --stringparam admon.textlabel 1
--stringparam 0  "/etc/asciidoc/docbook-xsl/xhtml.xsl"

.. and then the command hangs

If I leave out " --nonet "/etc/asciidoc/docbook-xsl/xhtml.xsl", the
command looks like

Note that "/etc/asciidoc/docbook-xsl/xhtml.xsl" is not part of the --nonet option--it is the argument to xsltproc that specifies the XSLT stylesheet. Since you omitted the stylesheet from your command, xsltproc tried to treat your input XML file as a stylesheet, with the result that it couldn't compile your XML as a transform. Omit only the --nonet option, not the string specifying the path the the XSLT file.

   xsltproc --stringparam html.stylesheet "./docbook-xsl.css"
   0         --stringparam 0  --stringparam
admon.textlabel 1 --stringparam 0   "/../source-highlight-filter.xml"

... and the answer is:

   compilation error: file /../source-highlight-filter.xml line 4 element
   articlexsltParseStylesheetProcess : document is not a stylesheet

this is how looks like:

  1 <?xml version="1.0" encoding="UTF-8"?>
  2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  4 <article lang="en">
  5 <articleinfo>
  6     <title>Source Code Highlight Filter</title>

Strange ...

On Tue, Nov 11, 2008 at 1:18 AM, Roumen Petrov
<bugtrack roumenpetrov info> wrote:
Ben Aurel wrote:

I have some problems with the asciidoc conversion from txt to xhtml.
Here's the asciidoc command:
xsltproc              --stringparam html.stylesheet
"./docbook-xsl.css" --stringparam 0
--stringparam 0         --stringparam admon.textlabel 1
       --stringparam 0 --nonet
Either remove --nonet flag or install docbook on the host and register it
into xml catalog.


Chuck Bearden (cbearden rice edu ; 713.348.3661)
XML Engineer, Connexions

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]