473,624 Members | 2,274 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_FI LES 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:oasi s:names:tc:enti ty:xmlns:xml:ca talog">

<rewriteSyste m systemIdStartSt ring="http://www.oasis-open.org/docbook/xml/4.2/" rewritePrefix="/usr/share/xml/docbook/xml-dtd-4.2/"/>

<rewriteSyste m systemIdStartSt ring="http://www.oasis-open.org/docbook/xml/4.1.2/"
rewritePrefix="/usr/share/xml/docbook/xml-dtd-4.1.2/"/>

<rewriteSyste m systemIdStartSt ring="http://docbook.sourcef orge.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 1616

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

Similar topics

1
3118
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 have read through the documentation and the past postings and can't seem to find any reference to the topic. I currently can execute this statement to create the Sequence ...
81
4642
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 the past that serving xhtml is a bad thing (tm). I want the extra constraints xhtml imposes. It has been suggested before to create a DTD which requires these & includes all the requirements of HTML 4.01 & validate against that.
0
613
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
1154
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 constructed on-the-fly (just part of it) and i want to save that in a table in order to know what are the most used for optimizing them. Another reason for doing that is that i don't know all the selects in the program nor the page and this is...
1
1162
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 pg_catalog.pg_shadow(usename), ... );
5
5674
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
1891
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
2770
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 there a way to re-build them? Thanks in advance,
0
8175
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8625
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8336
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8482
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7168
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4082
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1487
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.