[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] olink - targetptr's appear correct now
Hi Martin, I have to ask how you are resolving the xi:includes. You mention you are using Saxon 6.5.4, but by itself it does not resolve XIncludes. You must be using a parser that handles the XIncludes for the olink database. When I test an example like yours with Xerces 2.7.1 with XInclude configured, then the olinks resolve. But you also say if you insert the target data inside olinkdb.xml, then they still don't resolve. That part I don't get, because that also works for me when I test it with Saxon. Maybe you could send me some sample files that illustrate the problem. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Martin Strandbygaard" <martin@strandbygaard.com> To: <docbook-apps@lists.oasis-open.org> Sent: Wednesday, November 23, 2005 1:34 PM Subject: [docbook-apps] olink - targetptr's appear correct now > Hi, > > I just tried to reproduce the problem with missing targetptr's with > todays snapshot, and the problem appears to be gone. Sorry, I didn't try > this sooner. > > I'm however still not getting any cross references. (using saxon 6.5.4, > docbook v5, and snapshots of docbook-xsl) > > I have the following in my customization layer: > > <!-- Olink setup --> > <xsl:param name="collect.xref.targets" select="'yes'"/> > <xsl:param name="current.docid" select="'thesis'"/> > <xsl:param name="olink.debug" select="1"/> > <xsl:param name="target.database.document" > select="'/Users/martin/Documents/dtu/thesis/docbook/olinkdb.xml'"/> > <xsl:param name="targets.filename" > select="'/Users/martin/Documents/dtu/thesis/docbook/target.db'"/> > <xsl:param name="prefer.internal.olink" select="1"/> > > and olinkdb.xml is: > > <targetset lang="en" xml:lang="en" > xmlns:xi="http://www.w3.org/2001/XInclude/"> > <sitemap> > <dir name="root"> > <document targetdoc="thesis"> > <xi:include href="target.db"/> > </document> > </dir> > </sitemap> > </targetset> > > target.db is written correctly, and olinkdb.xml is also found, as I get > errors if I corrupt it's format. I've tried both xinclude'ing the > target.db, as well pasting the contents into the document element in > olinkdb.xml, but regardless, I get the same errors. The debug output is: > > > W Making portrait pages on A4 paper (210mmx297mm) > W Olink debug: root element of target.database is 'targetset'. > W Olink debug: cases for targetdoc='thesis' and > targetptr='setting_the_stage' in language 'en'. > W Olink debug: CaseA NOT matched > W Olink debug: CaseB NOT matched > W Olink debug: No case matched for lang 'en'. > W Olink debug: cases for targetdoc='thesis' and > targetptr='setting_the_stage' in language ''. > W Olink debug: CaseA NOT matched > W Olink debug: CaseB NOT matched > W Olink debug: No case matched for lang ''. > W Error: unresolved olink: targetdoc/targetptr = > 'thesis/setting_the_stage'. > W Olink error: no generated text for targetdoc/targetptr/lang = ''. > W Request for label of unexpected element: constraintdef > W Request for label of unexpected element: constraintdef > W Request for label of unexpected element: constraintdef > W Request for label of unexpected element: constraintdef > W Request for label of unexpected element: constraintdef > W Request for label of unexpected element: constraintdef > W Request for label of unexpected element: constraintdef > W Request for label of unexpected element: constraintdef > W Request for label of unexpected element: constraintdef > W Request for label of unexpected element: constraintdef > > > Hope some one can provide some insight. > > Regards > martin > > > > > -------- Original Message -------- > Subject: olink and id vs xml:id > Date: Wed, 23 Nov 2005 02:31:10 +0100 > From: Martin Strandbygaard <martin@strandbygaard.com> > To: docbook-apps@lists.oasis-open.org > > > > Hi, > > I'm getting inconsistent data in the target.db file when using "id" vs. > "xml:id" (using saxon 6.5.4, docbook v5, and xsl v1.69). > > When I write: > <sect1 xml:id="link1"> > > (as I'd assume is correct), I get: > <div element="sect1" href="#link1" number="2.2"> > > in the target.db, but if I do: > <sect1 id="link2"> > > I get the expected output: > <div element="sect1" href="#link2" number="2.3" targetptr="link2"> > > Is this me doing something wrong, or is that the targets.xsl that hasn't > been updated with xml:id yet? (I'm new to docbook and xslt in general, > so I can't really tell). > > I'm not getting any cross references in either case because the olinks > cannot be resolved. > > Regards > Martin Strandbygaard > > > ---------------------------------------------------------------------------- ---- > --------------------------------------------------------------------- > 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]