[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Problem with olinks in docbook5 with xsltproc
Hi Karl,You did something that was perfectly logical, but which does not work. The olink database elements are *not* in the DocBook namespace. If you remove the namespace declaration from the targetset element in your olinkdb.xml, then it will work.
It looks like there is a straightforward fix for this in the stylesheets that would support the data being either in or out of that namespace. I'll check that fix in for the next distribution.
Bob Stayton Sagehill Enterprises bobs@sagehill.net----- Original Message ----- From: "Karl O. Pinc" <kop@meme.com>
To: <docbook-apps@lists.oasis-open.org> Sent: Wednesday, March 28, 2012 9:34 AM Subject: [docbook-apps] Problem with olinks in docbook5 with xsltproc Hi, I've tried to put together a simple test case with an olink. I'm clearly doing something basic wrong and need a clue. I'm on Debian 6 (stable/squeeze) using docbook5 and xsltproc. I'm trying to olink an article to an anchor in a book. Attached is a .tgz of all files and a Makefile. (This seems the most polite way to send the various files to the list. Please let me know if there's a better way to do this.) The command that fails is "make article.html", output follows. I suspect that my problem involves getting the target.database.document to include the generated database but (as you can see from what's commented out) I've tried both entities and xinclude and can't seem to make it happen either way. (I'd prefer to get xinclude working, unless somebody tells me otherwise.) Thank you. -----------------------<snip>------------------------- $ make article.html xmllint --noout --xinclude --nonet --path /home/kop/projects/devel/ dblatex/empty-olink-problem article.xml xmllint --noout --xinclude --nonet --path /home/kop/projects/devel/ dblatex/empty-olink-problem book.xml xsltproc --nonet --xinclude \ --stringparam collect.xref.targets "only" \ --stringparam target.database.document "olinkdb.xml" \ --stringparam targets.filename "booktargets.db" \ html-nochunk.xsl \ book.xml Writing booktargets.db for book(testbook) xsltproc --nonet --xinclude \ --stringparam collect.xref.targets "only" \ --stringparam target.database.document "olinkdb.xml" \ --stringparam targets.filename "articletargets.db" \ html-nochunk.xsl \ article.xml Writing articletargets.db for article xmllint --noout --xinclude --nonet --path /home/kop/projects/devel/ dblatex/empty-olink-problem olinkdb.xml xmllint --noout --xinclude --nonet --path /home/kop/projects/devel/ dblatex/empty-olink-problem html-nochunk.xsl xsltproc --nonet --xinclude \ -o article.html \ --stringparam target.database.document "olinkdb.xml" \ --stringparam current.docid "testarticle" \ html-nochunk.xsl \ article.xml Error: unresolved olink: targetdoc/targetptr = 'testbook/firstsection'. Karl <kop@meme.com> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein --------------------------------------------------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.orgFor 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]