Hi,
An XML Catalog is a mapping from the global URI of the DTD (e.g.
http://www.laszlosystems.com/lps/tools/lzx.dtd) to a local URI (e.g.
file:///usr/local/lib/lps-3.3.3/lps/tools/lzx.dtd). This reduces
bandwidth, latency, and makes the DTD available when the computer is
not connected to the Internet. It also allows you to map global DTD
references to the local file structure of your OS.
There are two main uses: creating a single catalog.xml that describes
everything DTD of interest on your computer, and creating per-project
catalog.xml files that map particular DTDs of interest.
Here's the first part of a catalog.xml for Docbook:
<?xml version='1.0'?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
prefer="public">
<!-- ...................................................................
... -->
<!-- XML Catalog data for DocBook XML
V4.5 ................................ -->
<!-- File
catalog.xml ..................................................... -->
<!-- This is the catalog data file for DocBook V4.5. It is provided as
a convenience in building your own catalog files. You need not use
the filenames listed here, and need not use the filename method of
identifying storage objects at all. See the documentation for
detailed information on the files associated with the DocBook DTD.
See XML Catalogs at http://www.oasis-open.org/committees/
entity/ for
detailed information on supplying and using catalog data.
-->
<!-- ...................................................................
... -->
<!-- DocBook driver
file .................................................. -->
<public publicId="-//OASIS//DTD DocBook XML V4.5//EN"
uri="docbookx.dtd"/>
<system systemId="http://www.oasis-open.org/docbook/xml/4.5/
docbookx.dtd"
uri="docbookx.dtd"/>
<system systemId="http://docbook.org/xml/4.5/docbookx.dtd"
uri="docbookx.dtd"/>
On Feb 10, 2007, at 2:48 PM, DL wrote:
Some XML Editors I'm testing (as a possible basis for an IDE
platform) require an "XML Catalog" file to be created. ???
New to me .. but I found this reference ..
http://www.oasis-open.org/committees/entity/spec.html
and here are the various OpenLaszlo reference files ..
http://www.openlaszlo.org/lps-latest/tools/index.html
DTD, RELAX NG schema, XML Schema
...
So how is an XML Catalog created (from above files) for *.lzx code
editing?
What does it look like?
d~l