This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] xsltproc, XInclude, and use of XML catalog


Given a modularized docset where a main document XIncludes files in 
subdirectories:

myset.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC  "-//mycompany//DTD DocBook XML V4.2-Based Extension 
V1.0//EN" "mycustomized-docbook.dtd" [
<!ENTITY % local.common.attrib "xml:base  CDATA  #IMPLIED">
<!ENTITY % xinclude SYSTEM "my/xinclude.mod">
%xinclude;
]>
<set>
  <title>my doc set</title>
  <xi:include href="book_a/book_a.xml"/>
</set>

book_a/book_a.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC  "-//mycompany//DTD DocBook XML V4.2-Based Extension 
V1.0//EN" "mycustomized-docbook.dtd" [
<!ENTITY % local.common.attrib "xml:base  CDATA  #IMPLIED">
<!ENTITY % xinclude SYSTEM "my/xinclude.mod">
%xinclude;
]>
<book>
  <title>my doc set</title>
  <xi:include href="chapter_1.xml"/>
  <xi:include href="chapter_2.xml"/>
</book>

How should I set up the XML catalog?

When I run xsltproc on the main document, and it comes to process the 
book_a.xml file, 
it tries to resolve "book_a/mycustomized-docbook.dtd" instead of 
"mycustomized-docbook.dtd"
and fails to load the DTD.

-Taro

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]