[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Re: where does my id go?
Well, you can write an XSL stylesheet with <xsl:output method="text"/> to get CSV output. The stylesheet is used to process the targets database document directly. Starting with the root element, you use xsl:apply-templates to descend through the document. Then you write a template with match="div|obj" that writes the value of @targetpr, then a comma, then the value of @href. This simple stylesheet assumes you aren't using a sitemap to structure your HTML output. If so, then the stylesheet has to handle the sitemap's dir elements as part of the href path as well. 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 3:46 PM Subject: [docbook-apps] Re: where does my id go? > > * Bob Stayton <obof@fntruvyy.arg> [2005-06-15 15:32:36 -0700]: > > > > 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. > > so, what do I do to produce a CSV file with 2 columns: > first column: docbook element ID > second column: the actual file name where the ID went > (or the url "zzzz.html#foo", whatever is easier) > > thanks! > > -- > Sam Steingold (http://www.podval.org/~sds) running w2k > <http://www.honestreporting.com> <http://www.memri.org/> > <http://www.mideasttruth.com/> <http://ffii.org/> > main(a){a="main(a){a=%c%s%c;printf(a,34,a,34);}";printf(a,34,a,34);} > > > --------------------------------------------------------------------- > 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]