Hmm, I've run out of suggestions.  If the file parses and validates, and the 
path location is correct, I'm not understanding why it cannot be loaded.  Do 
any other Ant users have this problem?

I think this may be a Xalan issue.  Can you try processing with Saxon instead?

Bob Stayton
Sagehill Enterprises
[email protected]


From: Trasca Virgil 
Sent: Friday, March 01, 2013 1:17 AM
To: [email protected] 
Subject: [docbook-apps] Error when trying to cross reference external documents


Hi,

The suggested changes improved the situation a little bit in the sense that, 
after I declared the ldquo, rdquo and nbsp entities in olinkdb.xml, now I am 
able to get 0 errors, 0 warnings when I manually run validate over olinkdb.xml 
from Eclipse.

However when I run the build from ant I get exactly the same error, in exactly 
the same place. Do you have any other suggestion?

[xslt] D:\Projects\docbook-xsl\docbook-xsl-1.78.0\html\xref.xsl:1095:59: 
Warning! Can not load requested doc: Programmer's Error!  putDocumentInCache 
found reparse of doc: 
file:///D:/Projects/6.1.2-18Feb/applications/documentation/src/main/documentation/olinkdb.xml

[xslt] D:\Projects\docbook-xsl\docbook-xsl-1.78.0\html\xref.xsl:1117:22: 
Warning! Error: unresolved olink: targetdoc/targetptr = 
'userguide/chapter.server.installation'.

This is how olinkdb.xml looks now

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE targetset SYSTEM 
"file:///D:/Projects/docbook-xsl/docbook-xsl-1.78.0/common/targetdatabase.dtd" [
<!ENTITY userguidetargets SYSTEM 
"file:///D:/Projects/6.1.2-18Feb/applications/documentation/target/package/docs/userguide/target.db">
 
<!ENTITY advancedtargets SYSTEM 
"file:///D:/Projects/6.1.2-18Feb/applications/documentation/target/package/docs/advanced/target.db">
<!ENTITY quickstarttargets SYSTEM 
"file:///D:/Projects/6.1.2-18Feb/applications/documentation/target/package/docs/quickstart/target.db">
<!ENTITY ldquo "&#x201C;"><!--=double quotation mark, left-->
<!ENTITY rdquo "&#x201D;"><!--=double quotation mark, right-->
<!ENTITY nbsp "&#160;">
]>
<targetset>
    <targetsetinfo>
        Documentation external links
        declaration.
    </targetsetinfo>

    <!-- Site map for generating relative paths between documents -->
    <sitemap>

        <dir name="documentation">

            <dir name="userguide">
                <document targetdoc="userguide"> 
            &userguidetargets;
                </document>
            </dir>

            <dir name="advanced">
                <document targetdoc="advanced"> 
            &advancedtargets;
                </document>
            </dir>

            <dir name="quickstart">
                <document targetdoc="quickstart">
            &quickstarttargets;
                </document>
            </dir>

        </dir>

    </sitemap>
</targetset>



Thank you,
Doru

Reply via email to