Re: [xml] standard dtd?!



Daniel Veillard wrote:
On Sun, Jul 27, 2003 at 06:49:41PM +0200, Thomas Rokohl wrote:

how can i specify the dtd-file in my program and not in the xml-file?


  You should not.

Have you read the doc ?
  http://xmlsoft.org/guidelines.html
  use canonical URL
  http://xmlsoft.org/xmlio.html
  how to write you own entity loader
  http://xmlsoft.org/catalog.html
  the catalog solution

There is many way to do it cleanly, what you seems to do is one one
the wrong solutions to a common problem.

Daniel


I've read the guidelines and the catalog and fixed my software (which was using
file-system local dtds). Now one question is left for me. You've written that
libxml2 is searching by default under '/etc/xml/catalog' for thye presence of
the catalog. My software build on cygwin as well. Is there any recommendation
for a default place of the catalog. (I've grepped the source and found the
reference in catalog.c and xmllint.c).

Stefan
-- 
      \|/            Stefan Kost
     <@ @>           private            business
+-oOO-(_)-OOo------------------------------------------------------ - - -  -   -
|       __  Address  Simildenstr. 5     HTWK Leipzig, Fb IMN, Postfach 301166
|      ///           04277 Leipzig      04277 Leipzig
| __  ///            Germany            Germany
| \\\///    Phone    +49341 2253538     +49341 30766101
|  \__/     EMail    st_kost_at_gmx.net kost_at_imn.htwk-leipzig.de
|           WWW      www.sonicpulse.de  www.imn.htwk-leipzig.de/~kost/about.html
===-=-=--=---=---------------------------------- - - -  -    -




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