Lines Matching +full:- +full:- +full:catalog
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
5 <meta http-equiv="Content-Type" content="text/html">
7 <!--
8 TD {font-family: Verdana,Arial,Helvetica}
9 BODY {font-family: Verdana,Arial,Helvetica; margin-top: 2em; margin-left: 0em; margin-right: 0em}
10 H1 {font-family: Verdana,Arial,Helvetica}
11 H2 {font-family: Verdana,Arial,Helvetica}
12 H3 {font-family: Verdana,Arial,Helvetica}
13 A:link, A:visited, A:active { text-decoration: underline }
15 -->
44 <li><a href="#Catalog">Catalog setup</a></li>
126 href="http://www.w3.org/TR/REC-xml-names/">XML namespace</a> for your
130 will mean that XML parsers will not handle your element names as-is but as a
156 DTD, a stylesheet, a schema, or even non-XML data associated with an XML
169 <pre><!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"<br>
175 <pre><!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"<br>
178 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> </pre>
183 <pre><?xml-stylesheet
198 <h2><a name="Catalog">Catalog setup</a></h2>
205 href="http://www.oasis-open.org/committees/entity/">XML Catalogs</a> are
206 anchored in the root catalog (usually <code>/etc/xml/catalog</code> or
212 automatically test for a locally available version in the catalog, starting
213 from the root catalog, and possibly fetching sub-catalog resources until it
214 finds that the catalog has that resource or not. If not the default
216 case to recover from a catalog miss. The key point is that the document
217 instances are totally independent of the availability of a catalog or from
221 figure below tries to express that mechanism:<img src="catalog.gif"
222 alt="Picture describing the catalog "></p>
224 <h3>Usual catalog setup:</h3>
227 the root catalog containing only "delegates" indicating a separate subcatalog
228 dedicated to the project. The goal is to keep the root catalog clean and
229 simplify the maintenance of the catalog by using separate catalogs per
230 project. For example when creating a catalog for the <a
232 the root catalog:</p>
233 <pre> <delegatePublic publicIdStartString="-//W3C//DTD XHTML 1.0"
234 catalog="file:///usr/share/sgml/xhtml1/xmlcatalog"/>
236 catalog="file:///usr/share/sgml/xhtml1/xmlcatalog"/>
238 catalog="file:///usr/share/sgml/xhtml1/xmlcatalog"/></pre>
240 <p>They are all "delegates" meaning that if the catalog system is asked to
241 resolve a reference corresponding to them, it has to lookup a sub catalog.
250 <p><code>"-//W3C//DTD XHTML 1.0"</code></p>
252 <p>substring, then the catalog lookup should be limited to the specific given
253 lookup catalog. Similarly the second and third entries indicate those
265 <!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
266 "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
267 <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
268 <public publicId="-//W3C//DTD XHTML 1.0 Strict//EN"
269 uri="xhtml1-20020801/DTD/xhtml1-strict.dtd"/>
270 <public publicId="-//W3C//DTD XHTML 1.0 Transitional//EN"
271 uri="xhtml1-20020801/DTD/xhtml1-transitional.dtd"/>
272 <public publicId="-//W3C//DTD XHTML 1.0 Frameset//EN"
273 uri="xhtml1-20020801/DTD/xhtml1-frameset.dtd"/>
275 rewritePrefix="xhtml1-20020801/DTD"/>
277 rewritePrefix="xhtml1-20020801/DTD"/>
278 </catalog></pre>
290 keeping the same structure as the on-line server at the Canonical URL</li>
292 rewritePrefix attributes), the base being the containing sub-catalog URL,
295 <code>/usr/share/sgml/xhtml1/xmlcatalog/xhtml1-20020801/DTD/xhtml1-strict.dtd</code></li>
304 (un)installing the local copy of the resources. The catalog files being XML
312 CATALOG=/usr/share/sgml/xhtml1/xmlcatalog
314 # Register it in the super catalog with the appropriate delegates
316 ROOTCATALOG=/etc/xml/catalog
318 if [ ! -r $ROOTCATALOG ]
320 /usr/bin/xmlcatalog --noout --create $ROOTCATALOG
323 if [ -w $ROOTCATALOG ]
325 /usr/bin/xmlcatalog --noout --add "delegatePublic" \
326 "-//W3C//DTD XHTML 1.0" \
327 "file://$CATALOG" $ROOTCATALOG
328 /usr/bin/xmlcatalog --noout --add "delegateSystem" \
330 "file://$CATALOG" $ROOTCATALOG
331 /usr/bin/xmlcatalog --noout --add "delegateURI" \
333 "file://$CATALOG" $ROOTCATALOG
336 <p>The XHTML1 subcatalog is not created on-the-fly in that case, it is
338 make sure the root catalog exists and register the delegate rules.</p>
340 <p>Similarly, the script for the post-uninstall just remove the rules from the
341 catalog:</p>
347 CATALOG=/usr/share/sgml/xhtml1/xmlcatalog
348 ROOTCATALOG=/etc/xml/catalog
350 if [ -w $ROOTCATALOG ]
352 /usr/bin/xmlcatalog --noout --del \
353 "-//W3C//DTD XHTML 1.0" $ROOTCATALOG
354 /usr/bin/xmlcatalog --noout --del \
356 /usr/bin/xmlcatalog --noout --del \