What is throwing me here is that XXE produced the file ... and to  
figure out what it does conform to and above all how to fix it. What  
was done with "paste reference" is now mystery. Is it a reasonable  
assertion, as I think it may be, that heretofore XXE was basically  
making a (correct) guess in the absence of Doctype info that, now that  
it is present, points to stale DTD's? Perhaps said files had existed  
for quite some time, heretofore unused. That theory, which implies "no  
bug" (as we already know must be the case) sounds most plausible. I  
shall pursue it, and report.

Thanks for your prompt and continued help!

On Jul 25, 2009, at 4:01 AM, Hussein Shafie <hussein at xmlmind.com> wrote:

> Sundial Services wrote:
>> I don't know if additional declarations are needed for <xi:include>
>>
>> The verification command is:
>> xmllint --postvalid --xinclude --noout cs60_pro_userguide_book.xml
>>
>> XXE 4.4.0 rejects the document, highlighting four places:  (1)
>> "trademark:registered" because "the sequence of child elements is
>> incorrect,"
>
> This means that your catalog points to a very old DocBook DTD and  
> not to
> the DocBook 4.4 DTD.
>
>
>
>> and (2) each XInclude with "element cannot contain element
>> xi:include."
>
> This means that the xi:include elements are not transcluded.
>
>
>
>>
>> Although xmllint does grind away a while running through about 400
>> files, it does validate, provided that "--xinclude" is specified
>> as-required.  It does not object to the order of any child elements,
>> as XXE does.
>>
>> I do not know if XXE's validator consults "/etc/xml/catalog" (et al)
>> to look for DTDs and I have not yet studied the config-file reference
>> to see if anything relevant is in there.  I do, however, observe that
>> indeed there seem to be a set of templates for "V4.4" installed with
>> the XXE product (as well as those listed in the catalog, which are
>> fresh and new).
>>
>> The file that is being rejected was made, at one time, by XXE, and  
>> has
>> not been manually modified.
>
> Your document is fine: xmllint is right, XXE v3 was right.
>
> But XXE v4 is also OK: as expected, cs60_pro_userguide_book.xml opens
> without any problem in my copy of XXE v4.4. See XXE's status bar in  
> the
> attached screenshot.
>
> (I've just created fake chapter_v60_installation.xml,
> chapter_macx_syntax.xml, chapter_macx_functions_reference.xml in order
> to let XXE process the XIncludes.)
>
> Therefore the problem comes from your working environment, probably  
> from
> your customization of DocBook: please check it. Please also check your
> environment variables (e.g. XXE_ADDON_PATH, see
> http://www.xmlmind.com/xmleditor/_distrib/doc/help/environment_variables.html 
> ).
>
> Please temporarily remove the directory ~/.xxe4/addon/config/Docbook/
> directory and also clear the schema cache ("Options|Preferences",
> "Advanced|Schema cache" section, "Clear Cache" button), then test if  
> you
> can now open cs60_pro_userguide_book.xml.
> <cs60_pro_userguide_book.png>

Reply via email to