Hi,

I ran into a problem with a sitemap that includes some target dbs through 
XInclude.
I'm using Xalan-2.7.0 with Xerces-2.7.1 and docbook-xsl-1.73.2.

Some of the <ttl> and <xreftext> tags of my target db contain named xml 
entities (such as &nbsp; &rdquo;).
When xinclude tries to parse these entities it fails, because it cannot resolve 
these entities:
14-Aug-08 16:36:50.489 XsltUtil$3: XSLT Transformation Info: Can not load 
requested doc: Error attempting to parse XML file 
(href='../../src/hcss/um/xml/html_umtarget.db'). at 
file:/c:/data/herschel/temp/ia_document/docbook/xsl/common/olink.xsl [38:55]
14-Aug-08 16:36:50.489 XsltUtil$3: XSLT Transformation Info: Olink error: could 
not open target database 
'file:/c:/data/herschel/out/hcss/doc/src/../config/html/sitemap.xml'. at 
file:/c:/data/herschel/temp/ia_document/docbook/xsl/common/olink.xsl [52:20]

If I manually replace the entities everything is fine.

Is there any way to force the docbook stylesheets not to use named entities for 
the target db?
Are there any other tricks?

Cheers,
Marco

----------------------------------------------------
Sample sitemap

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE targetset SYSTEM "../targetdatabase.dtd" >
<targetset xmlns:xi="http://www.w3.org/2001/XInclude"; >
    <targetsetinfo>
      Global sitemap for the HCSS documentation infrastructure
    </targetsetinfo>
    <sitemap>    
        <dir name="doc">
            <dir name="hcss">
                <dir name="um">
                    <dir name="html">
                        <document targetdoc="um" baseuri="">
                            <xi:include  
href="../../src/hcss/um/xml/html_umtarget.db" >
                                <xi:fallback></xi:fallback>
                            </xi:include>
                        </document>
                    </dir>
                </dir>
                <dir name="dm">
                    <dir name="html">
                        <document targetdoc="dm" baseuri="">
                            <xi:include 
href="../../src/hcss/dm/xml/html_dmtarget.db" >
                                <xi:fallback></xi:fallback>
                            </xi:include>
                        </document>
                    </dir>
                </dir>
                ...
            </dir>
        </dir>
    </sitemap>  
</targetset>
--------------------------------------------------------
Extract from html_umtarget.db
...
        <div element="section" href="preface.html#N1001D" number="1">
            <ttl>Brief Overview</ttl>
            <xreftext>Section&nbsp;1, &ldquo;Brief Overview&rdquo;</xreftext>
        </div>
...
--------------------------------------------------------
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to