Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XML Catalogs on Linux

Thread Tools

XML Catalogs on Linux

Steve Whitlatch
Posts: n/a

It may be me, or it may be the Linux implementation of XML Catalogs on
slackware. Whichever, please shed some light on this XML Catalog problem.

When using the --catalogs option, xmllint resolves all system entities
to local copies. No problem, for example:

%:~/docbook-testdocs-1.1/tests> xmllint --noout --nonet --valid --catalogs book.001.xml

Produces no output, indicating that the referenced dtd was found and the
document is valid (using the SGML_CATALOG_FILES environment variable).
Additionally, if I am reading the output of xmlcatalog correctly, it
indicates that the /etc/xml/catalog file maps the docbook 4.1.2
dtd to a local copy:

%:/etc/xml> xmlcatalog --shell -v /etc/xml/catalog
> system

Resolve sysID
16384 Parsing catalog /etc/xml/catalog
/etc/xml/catalog added to file hash
Using rewriting rule
> exit

Catalogs cleanup
Free catalog entry
Free catalog entry
Free catalog entry
Free catalog entry /etc/xml/catalog
Free catalog entry
********** (what does all this "Free catalog . . ." mean?)

But xmllint, when using just XML Catalogs (no --catalogs option),
complains it cannot find the local docbook 4.1.2 dtd.

%:~/docbook-testdocs-1.1/tests> xmllint --noout --nonet --valid book.001.xml
Attempt to load network entity
book.001.xml:7: validity error: No declaration for attribute id of element book
<book id="book"> . . . [snip]

[more validity errors related to the same document]

xmllint can find the local copies for the docbook 4.2 dtd, but not the
local docbook 4.1.2 dtd. However, I see no difference in their entries
in the catalog file. For reference if necessary, exact /etc/xml/catalog
file contents:

<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "/etc/xml/xml-catalog-dtds/1.0/catalog.dtd">
<catalog xmlns="urnasis:names:tc:entitymlnsml:catalog ">

<rewriteSystem systemIdStartString="" rewritePrefix="/usr/share/xml/docbook/xml-dtd-4.2/"/>

<rewriteSystem systemIdStartString=""

<rewriteSystem systemIdStartString=""

XML Catalogs is taking way too much time to set up. Help please.


Steve Whitlatch Removed)

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Universal & Paramount's HUGE Catalogs HD-DVD has 43% of titiles avaliable just from those studios. Rock and Roll DVD Video 60 01-31-2008 05:47 AM
Global Catalogs =?Utf-8?B?S2FyYW5kZWVwIFNpbmdo?= MCSE 40 08-08-2007 08:26 PM
How do I use uriSuffix/systemSuffix with XML catalogs? Secret Guy XML 0 08-19-2005 06:02 PM
Canon Parts Catalogs d Digital Photography 3 07-17-2005 12:11 PM
FREE CATALOGS Lenny Jarvis Computer Support 8 09-29-2003 07:49 PM