[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Olink problem in website-package
Hi Johann, Putting the XML_CATALOG_FILES on a separate line in a Makefile does not set an environment variable, it just sets a Make macro. In my (not too clear) example, I put it on the same command line as the xsltproc command, so it becomes a shell env variable for the command. In your example: website.database.xml: autolayout.xml XML_CATALOG_FILES=/usr/share/xml/docbook/custom/website/2.5.0/catalog.xml \ xsltproc --output $@ \ /usr/share/xml/docbook/custom/website/2.5.0/xsl/website-targets.xsl $< Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Johann Spies" <jspies@sun.ac.za> To: <docbook-apps@lists.oasis-open.org> Sent: Tuesday, February 08, 2005 11:10 PM Subject: Re: [docbook-apps] Olink problem in website-package > Dear Bob, > > Thanks for your clear explanation. It helped me to understand more of > the structure of DocBook. > > However, my problem is still the same... > > > 1. Find the path to where the docbook XSL stylesheets were installed, such > > as /usr/share/sgml/docbook/xsl-stylesheets-1.65.1-2. > > /usr/share/xml/docbook/stylesheet/nwalsh/1.65.1 > > > > > 2. Find the website distribution directory, and edit the file named > > catalog.xml. You need a line that looks like this, matching your location: > > > > <rewriteURI > > uriStartString="http://docbook.sourceforge.net/release/xsl/current/" > > > > rewritePrefix="file:///usr/share/sgml/docbook/xsl-stylesheets-1.65.1-2/"/> > > > > <rewriteURI > uriStartString="http://docbook.sourceforge.net/release/xsl/current/" > rewritePrefix="/usr/share/xml/docbook/stylesheet/nwalsh/1.65.1/" > /> > > in /usr/share/xml/docbook/custom/website/2.5.0/catalog.xml > > > This maps the URI that the website stylesheets use to a local directory. > > > > To use the catalog file, change your Makefile command to set an environment > > variable that points to the location of the catalog file: > > > > XML_CATALOG_FILES="/path/to/catalog.xml" xsltproc ... > > > > XML_CATALOG_FILES=/usr/share/xml/docbook/custom/website/2.5.0/catalog.xml > ... > website.database.xml: autolayout.xml > xsltproc --output $@ \ > /usr/share/xml/docbook/custom/website/2.5.0/xsl/website-targets.xsl $< > > > But: > > $ make clean > rm -f htdocs/os.html htdocs/programming.html htdocs/index.html > ftpadm@archive3:~/xmlwebsite$ make > make website > make[1]: Entering directory `/home/ftpadm/xmlwebsite' > xsltproc \ > --output htdocs/os.html \ > --stringparam output-root htdocs \ > mytabular.xsl \ > os.xml > xsltproc \ > --output htdocs/programming.html \ > --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 output-root htdocs \ > mytabular.xsl \ > website.xml > make[1]: Leaving directory `/home/ftpadm/xmlwebsite' > $ > > :( > > Johann > -- > Johann Spies Telefoon: 021-808 4036 > Informasietegnologie, Universiteit van Stellenbosch > > "Let the words of my mouth, and the meditation of my > heart, be acceptable in thy sight, O LORD, my > strength, and my redeemer." Psalms 19:14 > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]