[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: cross-document links
> * Bob Stayton <obof@fntruvyy.arg> [2003-12-21 11:31:09 -0800]: > > Yes, there is a better way. Use olink, which was made for the purpose. > See: > > http://www.sagehill.net/docbookxsl/Olinking.html this document has a typo: Example 20.1. Target database document <!ENTITY ugtargets SYSTEM "file:///doc/userguide/target.db"> ... &ugtargets; (11) this should be %ugtargets; (11) (& --> %) I get this: $ xsltproc --timing --stringparam target.database.document \ "olink-pile.xml" -o impnotes.html pile.xsl impnotes.xml Parsing stylesheet pile.xsl took 2 ms Parsing document impnotes.xml took 3253 ms Olink missing @targetptr attribute value warning: failed to load external entity ".olink" Olink error: could not open data file for document id 'man'. Olink error: no generated text for targetdoc/targetptr = man/opt-exec-file Olink error: could not open data file for document id 'man'. Olink error: could not open data file for document id 'man'. Olink error: could not open data file for document id 'man'. Olink error: no generated text for targetdoc/targetptr = man/opt-enc Olink error: could not open data file for document id 'man'. Olink error: could not open data file for document id 'man'. Olink error: could not open data file for document id 'man'. Olink error: no generated text for targetdoc/targetptr = man/opt-exec-file Running stylesheet and saving result took 88379 ms $ --------- olink-pile.xml ------------------------------- <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE targetset SYSTEM "file:///usr/share/docbook-xsl/common/targetdatabase.dtd" [ <!ENTITY man-targets SYSTEM "file:///man.db"> <!ENTITY imp-targets SYSTEM "file:///imp-pile.db"> ]> <targetset> <targetsetinfo> cross-references between CLISP man page and implementation notes http://www.sagehill.net/docbookxsl/Olinking.html single pile version for source distribution </targetsetinfo> <sitemap> <document targetdoc="impnotes" baseuri="impnotes.html"> %imp-targets;</document> <document targetdoc="man" baseuri="clisp.html">%man-targets;</document> </sitemap> </targetset> -------------------------------------------------------- In immpnotex.xml, I refer to "clisp.html" as <olink targetdoc="man"/> <olink targetdoc="man" targetptr="opt-exec-file"/> <olink targetdoc="man" targetptr="opt-memfile"><option>-M</option></olink> I have both man.db and imp-pile.db in the current directory, generated by man.db: clisp.xml xsltproc --stringparam collect.xref.targets "only" \ --stringparam targets.filename "$@" pile.xsl $< imp-pile.db: impnotes.xml $(IMPNOTES) xsltproc --stringparam collect.xref.targets "only" \ --stringparam targets.filename "$@" pile.xsl $< thanks! -- Sam Steingold (http://www.podval.org/~sds) running w2k <http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/> <http://www.mideasttruth.com/> <http://www.honestreporting.com> Don't use force -- get a bigger hammer.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]