473,396 Members | 1,917 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

XML Catalogs on Linux


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 http://www.oasis-open.org/docbook/xm...2/docbookx.dtd Resolve sysID http://www.oasis-open.org/docbook/xm...2/docbookx.dtd
16384 Parsing catalog /etc/xml/catalog
/etc/xml/catalog added to file hash
Using rewriting rule http://www.oasis-open.org/docbook/xml/4.1.2/
/usr/share/xml/docbook/xml-dtd-4.1.2/docbookx.dtd exit

Catalogs cleanup
Free catalog entry http://www.oasis-open.org/docbook/xml/4.2/
Free catalog entry http://www.oasis-open.org/docbook/xml/4.1.2/
Free catalog entry http://docbook.sourceforge.net/release/xsl/current/
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 http://www.oasis-open.org/docbook/xm...2/docbookx.dtd
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="urn:oasis:names:tc:entity:xmlns:xml:catalog ">

<rewriteSystem systemIdStartString="http://www.oasis-open.org/docbook/xml/4.2/" rewritePrefix="/usr/share/xml/docbook/xml-dtd-4.2/"/>

<rewriteSystem systemIdStartString="http://www.oasis-open.org/docbook/xml/4.1.2/"
rewritePrefix="/usr/share/xml/docbook/xml-dtd-4.1.2/"/>

<rewriteSystem systemIdStartString="http://docbook.sourceforge.net/release/xsl/current/"
rewritePrefix="/usr/share/xml/docbook/xsl-stylesheets-1.64-1"/>
</catalog>
**********
XML Catalogs is taking way too much time to set up. Help please.
Thanks,

Steve Whitlatch
sw******@getnet.net
Jul 20 '05 #1
0 1604

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: JohnLH | last post by:
Hi, I am trying to get the meta data of a sequence that I created out from the system catalogs, so that I can reconstruct the SQL Statement. I need this for pre and post PG 7.3 ... or either. I...
81
by: Michael Rozdoba | last post by:
I've been wandering around the results of numerous googles for several hours without reaching a conclusive solution, so I'm dipping a tentative toe back in ciwah... I've been persuaded here in...
0
by: Tom Smith | last post by:
Hi, all, I am looking for the 1991 and 1992 Black Box Catalogs. I am will to pay $$ for them. If you have one, please email me. Thank you. Tom
1
by: Jaime Casanova | last post by:
Hi everybody, can anyone tell me if there's a way to retrieve the select instruction executed from the catalogs, or maybe via some structure in a trigger? The reason is that i have some selects...
1
by: elein | last post by:
Can someone explain the reasoning behind not allowing a user table to contain a foreign key of a system table? For example: create table myusers ( login text references...
5
by: cranium.2003 | last post by:
hi, Here is my code #include <iostream.h> int main() { cout <<"HI"; return 0; } and using following command to compile a C++ program g++ ex1.cpp -o ex1
0
by: Gerben Abbink | last post by:
Hi, Is there an implementation of System.Xml.XmlResolver for OASIS XML Catalogs (http://www.oasis-open.org/committees/download.php/14809/xml-catalogs.html)? thanks, - Gerben Abbink
3
by: Laurence | last post by:
Hi there, Is there any command or tool for doing DB2 Catalogs reorg/check to keep the contents are correct? If the contents within catalogs are incorrect due to unexpected situations, is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.