OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] where does my id go?


Hi Sam,
Yes, XSL can do that automatically, and in fact that is what the XSL
templates that resolve olinks do.  They open the targets database, find the
targetdoc and targetptr, and get the href.  Is the document you are pointing
from a DocBook document?  If so, then just use an olink. If not, then you
can still open the targets database in XSL and get the href value.  The
make.olink.href template in common/olink.xsl does that.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Sam Steingold" <sds@gnu.org>
To: <docbook-apps@lists.oasis-open.org>
Sent: Wednesday, June 15, 2005 11:08 AM
Subject: [docbook-apps] where does my id go?


> I have a large docbook document which consists of several XML files
> which are converted to a single html document "impnotes.html" and also
> to a bunch of files ("chunked") "impnotes/*.html".
> Suppose a symbol FOO is documented by an element with id="foo".
> when I want to point my users to the FOO documentation, I can easily
> direct them to "impnotes.html#foo".
> Is there a way to automatically infer which file in "impnotes/*.html"
> contains the id="foo" element?
> I have TDB files created by xslproc and
>   --stringparam collect.xref.targets "only"
> but they do not have the information I need in an easily and
> automatically accessible form.
> I can, of course, grep the TDB file for
>   'targetptr="make-hash"'
> to discover that it corresponds to
>   'href="hash-dict.html#make-hash"'
> I can grep/sed this file to a simple csv format "id --> filename"
> but I wonder if xsl can do that for me automatically?
>
> -- 
> Sam Steingold (http://www.podval.org/~sds) running w2k
> <http://pmw.org.il/> <http://www.jihadwatch.org/>
> <http://www.camera.org> <http://ffii.org/> <http://www.dhimmi.com/>
> Even Windows doesn't suck, when you use Common Lisp
>
>
> ---------------------------------------------------------------------
> 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]