This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook] 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.


To unsubscribe from this list, send a post to docbook-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]