[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: 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
<?xml version="1.0"?> <!DOCTYPE catalog PUBLIC "-//OASIS/DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd"> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> <group prefer="public" xml:base="file:" > <public publicId="-//OASIS//DTD DocBook XML V4.3//EN" uri="docbook/docbookx.dtd"/> <system systemId="http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" uri="docbook/docbookx.dtd"/> <system systemId="docbook.dtd" uri="docbook/docbookx.dtd"/> </group> </catalog>
export XML_CATALOG_FILES = "catalog.xml" export XML_DEBUG_CATALOG = "1" %.html: %.xml xsltproc --output $@ web.xsl $< html: *.html check: xmllint --valid --noout kua1.xml html: xsltproc --output kua1.html web.xsl kua1.xml
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]