John L. Clark wrote:
> Good day, everyone,
> 
> I attempted to follow the DTD configuration instructions[0],
> substituting my target configuration for the sample provided in the
> instructions, but I cannot get my style sheet to be recognized.  I am on
> a GNU/Linux system, using Java 1.4.1_01 and XXE 2.4p1.  Here is the
> layout of my configuration directory:
> 
> [user at host ~]$ ls ~/.xxe2/config/ldocbook/
> ldocbook.css  ldocbook.dtd  ldocbook.xml  ldocbook.xxe  ldocbook.xxe~
> 
> I have added my catalog to the list of catalogs in XXE as instructed,
> and a new, templated document correctly loads into XXE, but without any
> style information (just the tree view).  The contents of ldocbook.css
> and ldocbook.xxe are attached to this message; they are both small, and
> I believe they should be required in order to debug the problem.  The
> commented section of the style sheet file is what I want to use, but I
> commented it out and added a filler rule to try to see if my @imports
> were the problem.
> 
> I'm sure there's something obvious I'm missing, but I would appreciate
> it if someone could just point to it so that I can slap my forehead and
> move on.  I'll gladly provide any information I may have omitted on
> request.  Thanks!
> 
> 
> ------------------------------------------------------------------------
> 
> /*...@import 
> "/home/john/download/software/xxe-std-23p1/config/sdocbook/css/sdocbook.incl";
> @import 
> "/home/john/download/software/xxe-std-23p1/config/docbook/css/docbook.incl";
> @import 
> "/home/john/download/software/xxe-std-23p1/config/sdocbook/css/print.incl";
> @import "/home/john/In_progress/DocBook/litprog-1.0/css/xweb.css";*/
> 
> *
> {
>       display: block;
> }
> 
> 
> ------------------------------------------------------------------------
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <cfg:configuration name="ldocbook"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xs="http://www.w3.org/2001/XMLSchema";
> xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration";>
>   <cfg:detect>
>     <cfg:dtdSystemId>-//Normal Walsh//DTD lDocBook//EN</cfg:dtdSystemId>
>   </cfg:detect>
>   <cfg:css location="ldocbook.css"
>   name="Style Sheet" />
>   <cfg:template location="ldocbook.xml"
>   name="Template" />
> </cfg:configuration>

"-//Normal Walsh//DTD lDocBook//EN" is a Public ID, not a System ID.

If you replace:

---
<cfg:dtdSystemId>-//Normal Walsh//DTD lDocBook//EN</cfg:dtdSystemId>
---

by:

---
<cfg:dtdPublicId>-//Normal Walsh//DTD lDocBook//EN</cfg:dtdPublicId>
---

it should work.

(Just make sure that your template ldocbook.xml has a "<!DOCTYPE xxx 
PUBLIC "-//Normal Walsh//DTD lDocBook//EN" yyy>".)




Reply via email to