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

Re: Installing a local SGML DTD



You should ask this question on debian-sgml list...

http://lists.debian.org/debian-sgml/

I'd put the dtd in /usr/local/name-of-the-dtd and add it to the
catalog with update-catalog (see the man)

Douglas Bates <bates@stat.wisc.edu> wrote:

> I am running the testing (sarge) distribution and would like to
> install a DTD for SGML files.  The files come from Oxford University
> Press (OUP).  The dtd itself is in the file ouphead.dtd and a typical
> public identifier is 
> 
> <!--Typical public identifier "-//OUP//DTD Article Header Database//EN"
> 
> Could someone please advise me on where to install the DTD so it is
> accessed by programs like sgml2xml?  Looking at other examples it
> seems to me that I want to end up with a symbolic link like
>  /usr/share/sgml/OUP/dtd/Article_Header_Database -> ../../dtd/ouphead.dtd
> 
> Are there other things that I need to do to update catalogs?  I did
> install the sgml-base and sgml-base-doc packages but the documents in
> sgml-base-doc seem to be incomplete.
> 
> My ultimate goal is to build DOMs from these files in Python scripts
> and process them that way.  I plan on using sgml2xml to convert these
> to XML then use a reader such as xml.dom.ext.reader.PyExpat.Reader
> Does this seem to be a reasonable approach to building a DOM or can I
> use the sgmllib in Python directly?
> 
> -- 
> Douglas Bates                            bates@stat.wisc.edu
> Statistics Department                    608/262-2598
> University of Wisconsin - Madison        http://www.stat.wisc.edu/~bates/


-- Arnaud Vandyck
<http://vbstefi60.fapse.ulg.ac.be/~arnaud/>
<http://www.ulg.ac.be/cgi-bin/ph/search?id=u184137>



Reply to: