[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] catalog trouble when command is put in a Makefile
Makefiles don't work like shell scripts. You can't set env variables like that for the whole makefile. This would work, though: html: XML_CATALOG_FILES="catalog.xml" \ XML_DEBUG_CATALOG="1" \ xsltproc --output kua1.html web.xsl kua1.xml Bob Stayton Sagehill Enterprises DocBook Consulting firstname.lastname@example.org ----- Original Message ----- From: "Frans Englich" <email@example.com> To: <firstname.lastname@example.org> Sent: Monday, July 19, 2004 7:48 PM Subject: [docbook-apps] catalog trouble when command is put in a Makefile > > Hello all, > > I'm new to docbook, so you have my apologies if I make obvious mistakes. > > I (try) to use the attached Makefile, but running the check target fails with > this error output: > bash-2.05b$ make check > xmllint --valid --noout kua1.xml > Resolve: pubID -//OASIS//DTD DocBook XML V4.3//EN sysID > http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd > Failed to parse catalog "catalog.xml" > Resolve URI http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd > kua1.xml:3: I/O error : failed to load HTTP resource > "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" > > ^ > kua1.xml:4: validity error : Validation failed: no DTD found ! > <article status="draft" > > ^ > Catalogs cleanup > Free catalog entry > make: *** [check] Error 4 > bash-2.05b$ > > > However, when I run the commands manually, it works fine: > > bash-2.05b$ export XML_CATALOG_FILES=catalog.xml > bash-2.05b$ export XML_DEBUG_CATALOG=1 > bash-2.05b$ xmllint --valid --noout kua1.xml > Resolve: pubID -//OASIS//DTD DocBook XML V4.3//EN sysID > http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd > 16384 Parsing catalog catalog.xml > catalog.xml added to file hash > Found system match http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd > Catalogs cleanup > Free catalog entry -//OASIS//DTD DocBook XML V4.3//EN > Free catalog entry http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd > Free catalog entry docbook.dtd > Free catalog entry catalog.xml > Free catalog entry > bash-2.05b$ > > What is wrong? make html fails too with the same errors(and runs fins > manually) > > Also: judging from the output and the time it takes to run, it seems to do a > lookup of the DTD on the oasis server -- what have I done wrong in the > catalog file(attached)? > > > I have another question: the generated xhtml files are to be used on a website > where each file also should have php code. I currently try to achieve this by > simply putting the php processing instructions in the XSL files but xsltproc > swallows them(naturally, I guess). I want the resulting html document to > simply contain the <?php tags. How is this achieved, and is there some > particular document to read about combining dynamic code nested in XML/XSL > files? > > Thanks in advance, > > > Frans > > > ---------------------------------------------------------------------------- ---- > To unsubscribe from this list, send a post to email@example.com, or visit http://www.oasis-open.org/mlmanage/.