This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Olink problem in website-package
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: "Johann Spies" <jspies at sun dot ac dot za>, "docbook" <docbook-apps at lists dot oasis-open dot org>
- Date: Tue, 8 Feb 2005 00:01:29 -0800
- Subject: Re: [docbook-apps] Olink problem in website-package
- References: <20050208065938.GA31354@sun.ac.za>
Website is a bit out of sync with the latest olink templates. See:
http://lists.oasis-open.org/archives/docbook-apps/200501/msg00180.html
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Johann Spies" <jspies@sun.ac.za>
To: "docbook" <docbook-apps@lists.oasis-open.org>
Sent: Monday, February 07, 2005 10:59 PM
Subject: [docbook-apps] Olink problem in website-package
> I am for the first time building a website with docbook-website and
> when I run "make" the following happens:
>
> $ make
> make website
> make[1]: Entering directory `/home/ftpadm/xmlwebsite'
> xsltproc \
> --output htdocs/os.html \
> --stringparam website.database.document website.database.xml \
> --stringparam output-root htdocs \
> mytabular.xsl \
> os.xml
> xsltproc \
> --output htdocs/programming.html \
> --stringparam website.database.document website.database.xml \
> --stringparam output-root htdocs \
> mytabular.xsl \
> programming.xml
> Olink error: targetptr "oslist" not found for targetdoc "os".
> details: targetptr "oslist" not found for website targetdoc "os".
> xsltproc \
> --output htdocs/index.html \
> --stringparam website.database.document website.database.xml \
> --stringparam output-root htdocs \
> mytabular.xsl \
> website.xml
> make[1]: Leaving directory `/home/ftpadm/xmlwebsite'
> $
>
> As far as I can see I have followed the guidelines for the Makefile in
> the documentation (/usr/share/doc/docbook-website/examples).
>
> How do I go forward from here?
>
> Here are some particulars of my setup:
>
> $ apt-show-versions | grep website
> docbook-website/testing uptodate 2.5.0.0-7.1
>
> I have a reference
> <olink targetdoc="os" targetptr="oslist"> Operating Systems Operating
> Systems </olink>
>
> in programming.xml and the following id's in os.xml:
>
>
> <webpage id="os">
> <head>
> <title>Operating Systems</title>
> </head>
> <section id="oslist">
> <title>List of Operating Systems available</title>
> <itemizedlist>
> ...
> </itemizedlist>
> </section>
> </webpage>
>
> In my Makefile I have:
>
> STYLEDIR=/usr/share/xml/docbook/custom/website/2.5.0/xsl
> TABSTYLE=mytabular.xsl
> STYLESHEET=$(TABSTYLE)
> # Change the path in output-root to put your HTML output elsewhere
> STYLEOPT= --stringparam output-root ./html
>
> .PHONY : clean
>
> all:
> make website
>
> include depends.tabular
>
> autolayout.xml: layout.xml
> xsltproc --output $@ $(STYLEDIR)/autolayout.xsl $<
> make depends
>
> depends: autolayout.xml
> xsltproc --output depends.tabular \
> --stringparam output-root htdocs \
> $(STYLEDIR)/makefile-dep.xsl \
> $<
>
> website.database.xml: autolayout.xml
> xsltproc --output $@ \
> /usr/share/xml/docbook/custom/website/2.5.0/xsl/website-targets.xsl $<
>
> %.html: autolayout.xml
> xsltproc \
> --output $@ \
> --stringparam output-root htdocs \
> mytabular.xsl \
> $(filter-out autolayout.xml,$^)
>
> .PHONY : clean
>
>
> Regards
> Johann
> --
> Johann Spies Telefoon: 021-808 4036
> Informasietegnologie, Universiteit van Stellenbosch
>
> "The heavens declare the glory of God; and the
> firmament showeth his handiwork." Psalms 19:1
>
>