On 22 April 2017 at 04:28,  <[email protected]> wrote:
> Hi list,
>
> There was a thread about a2x.py failing due to xmllint error (xmllint cannot
> find catalog file):
> https://groups.google.com/d/msg/asciidoc/FC-eOwU8rYg/GLpFZOYXVGsJ
>
> We are assuming that docbook xml dtd & xsl stylesheets are installed
> somewhere in, say, /usr/local/share/xml and there is catalog file in
> /usr/local/etc/xml/catalog pointing at that installation.  More on it can be
> found at http://www.linuxfromscratch.org/blfs/view/svn/pst/xml.html
>
> People say that it's possible to symlink /usr/local/etc/xml/catalog to
> /etc/xml/catalog (default for xmllint), but this is not very elegant.
>
> The other way is to set env var
> SGML_CATALOG_FILES=/usr/local/etc/xml/catalog, but then we need to call
> xmllint with --catalogs option.
>
> So it would be nice if:
>
> - a2x.py checked for SGML_CATALOG_FILES env var and, if it set, called
> xmllint with --catalogs
>
> - ./configure provided option like --with-sgml-catalog-files with the
> following behavior: 1) default (not set) - current behavior; 2) set to empty
> string - pass --no-xmllint to a2x.py (we cannot use xmllint without a
> catalog); 3) set to non-empty string - set SGML_CATALOG_FILES for a2x.py
> invocation
>
> This would support non-default xml catalog installations and, in particular,
> macOS (without macports etc.)
>
> What do you think?

Well, a2x assumes that xmllint is installed correctly so it "just works".

Rather than add specific magic, a more general solution would be for
somebody to add a "--xmllint-opts" to allow any options to be passed
to xmllint the same as xsltproc and other programs.

Cheers
Lex

>
> Filipp
>
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/asciidoc.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to