Package: python2.3-xml
Version: 0.8.4-1
Severity: minor

I wanted to try validating XML, so I wanted to run xmlproc_val against
the urls.xml file in the example.  

I had to read the source code for xmlproc_val to know that you have
to set XMLSOCATALOG to make it find the catalog.  It would be better
if this were in the manual entry for xmlproc_val.  However, that's too
trivial; the real bug is:

The offered catalog in
/usr/share/doc/python2.3-xml/examples/demo/xmlproc/catalog.soc points
to the URL http://www.schema.net/public-text/catalog.soc, which no
longer exists.  The fix is to delete the reference to the nonexistent
catalog.

Here's a terminal dialogue to make all this clear.  It includes a
patch to catalog.soc.

lobus:~> cp -ra /usr/share/doc/python2.3-xml/examples/demo/xmlproc /tmp/xmlproc
lobus:~> cd /tmp/xmlproc
lobus:/tmp/xmlproc> gunzip *.gz */*.gz
lobus:/tmp/xmlproc> xmlproc_val urls.xml 
xmlproc version 0.70

Parsing 'urls.xml'
E:hate-sysids:1:0: Couldn't open resource 'hate-sysids'
E:urls.xml:5:7: Element 'xbel' not declared
E:urls.xml:6:8: Element 'title' not declared
...trimmed...
Parse complete, 69 error(s) and 0 warning(s)
lobus:/tmp/xmlproc> setenv XMLSOCATALOG catalog.soc
lobus:/tmp/xmlproc> xmlproc_val urls.xml 
xmlproc version 0.70
Parsing catalog file 'catalog.soc'
ERROR: Couldn't open resource 'http://www.schema.net/public-text/catalog.soc' 
at http://www.schema.net/public-text/catalog.soc:1:0
TEXT: ''
lobus:/tmp/xmlproc> cp catalog.soc catalog.soc.orig
... Edited catalog.soc ...
lobus:/tmp/xmlproc> diff -u catalog.soc.orig catalog.soc
--- catalog.soc.orig    2005-03-03 15:50:18.000000000 -0800
+++ catalog.soc 2005-03-03 15:50:50.000000000 -0800
@@ -12,8 +12,3 @@
 
 PUBLIC "+//IDN python.org//DTD XML Bookmark Exchange Language 1.0//EN//XML"
        "dtds/xbel-1.0.dtd"
-
--- If we can't find a system identifier for the public identifier here, 
-   then go to James Tauber's public catalog                             --
-
-DELEGATE "" "http://www.schema.net/public-text/catalog.soc";
\ No newline at end of file
lobus:/tmp/xmlproc> xmlproc_val urls.xml 
xmlproc version 0.70
Parsing catalog file 'catalog.soc'

Parsing 'urls.xml'

Parse complete, 0 error(s) and 0 warning(s)

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (1500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.26-treo
Locale: LANG=C, LC_CTYPE=C

Versions of packages python2.3-xml depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  python2.3                   2.3.5-1      An interactive high-level object-o

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to