[xslt] Resolving SGML catalogs



Hello,

I want to use the catalog support from the libxml2-2.4.3 library, and if
the first line of the catalog is empty (it contains only a \n) it
complains. Is it the expected behaviour (if so it's not really robust
;-)?

For instance with the following:

\n
 -- Catalog Example --
\n
PUBLIC ""-//OASIS//DTD DocBook XML V4.1.2//EN"
  "file:///path/to/docbook/docbkx412/docbookx.dtd"

It produces the error:
"Entity: line 2: error: Start tag expected, '<' not found
 -- Catalog Example --
 ^"

But the following works:

 \n
 -- Catalog Example --
\n
PUBLIC ""-//OASIS//DTD DocBook XML V4.1.2//EN"
  "file:///path/to/docbook/docbkx412/docbookx.dtd"

I attach an example, with a small program used to resolve ID's and two
catalogs. The command line to compile and run the test is:

make LIBPATH=<where the libxml2 is>

Thanks,
BG

libxml2-cat.tar.gz



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