[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] olinks to chapters in same book not working
That is very wierd. This means the xsltproc serializer is producing non-well formed output. I've never seen that. Exactly what version of xsltproc are you using? Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Robert Hall" <rhall@vocera.com> To: <docbook-apps@lists.oasis-open.org> Sent: Wednesday, September 14, 2005 11:51 AM Subject: [docbook-apps] olinks to chapters in same book not working I'm not sure whether this is a stylesheet problem or an xsltproc problem. Here's a quick summary: - DocBook 4.4, XSL Stylesheets 1.69.1 - Modular book uses XInclude to pull in chapter files. - Using olinks for all cross references. - Using xsltproc and FOP 0.20.5 to generate FO and then PDF. - For each olink, xsltproc generates an opening fo:basic-link tag, and then, instead of closing the tag, it generates an empty one. When FOP encounters the empty one, it stops processing. Error: internal-destination or external-destination must be specified in basic-link Here are the (simplified) details: >From the generated FO file: -------------------------- See <fo:basic-link internal-destination="SysReq"> System Requirements<fo:basic-link internal-destination=""> Sample olink from the ig/GettingStarted.xml file: ----------------------------------- <para> See <olink targetdoc="install" targetptr="SysReq" /> ... </para> >From the olinkdb-pdf.xml file: ----------------------------- <dir name="docs"> <dir name="ig"> <document targetdoc="install" > &igtargets; </document> </dir> </dir> >From the command line (one line each command): --------------------------------------------- xsltproc.exe --nonet --xinclude \ --stringparam olink.debug 1 \ --stringparam collect.xref.targets "only" \ --stringparam targets.filename "targets.xml" \ my-fo.xsl install_book.xml xsltproc.exe --nonet --xinclude \ --stringparam olink.debug 1 --output %src_root%\%fo_file% \ --stringparam target.database.document "olinkdb-pdf.xml" \ --stringparam current.docid "install" \ my-fo.xsl install_book.xml The file my-fo.xsl is a customization layer that imports xsl/fo/docbook.xsl. For what it's worth, olinks to chapters in other books work as expected. For example, an olink from an Install Guide chapter to an Admin Guide chapter works, but an olink from one Install Guide chapter to another Install Guide chapter fails as described above. Thanks, -Robert --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]