OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Bug(?) in VERSION XSL file or in resolver?


Bob Stayton wrote:

> I don't believe the VERSION file is triggering access to the internet to
> read the DTD. If you are getting web accesses to the DTD instead of the
> stylesheet files, then the problem seems to be with the catalog resolution
> of the document's DOCTYPE identifiers.  I would be curious to see what the
> whole verbose output from the resolver looks like.

Hm, interesting syntactic trick.  So document('') is equivalent to /?

The following is a simplified version of the catalog file (mostly C&P 
from TCG), an excerpt from Ant, and the result of setting the verbosity 
level to 2.  (Anything more generated a lot more lines that didn't seem 
to have any relevant information, so I left it out to not abuse people's 
inboxes. <g>)

catalog.xml (simplified formatting)
-------------------------------

<?xml version="1.0"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<group  prefer="public"  xml:base="/usr/share/xml/docbook/schema/dtd/4.3/" >

<public publicId="-//OASIS//ELEMENTS DocBook XML HTML Tables V4.3//EN"
	uri="htmltblx.mod"/>
<public publicId="-//OASIS//DTD DocBook XML V4.3//EN"
	uri="docbookx.dtd"/>
<system
systemId="http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd";
uri="docbookx.dtd"/>
<nextCatalog  catalog="catalog.xml" />
</group>

<group xml:base="/usr/share/xml/docbook/stylesheet/nwalsh/">
	<uri name="docbook.xsl" uri="html/docbook.xsl" />
	<uri name="chunk.xsl" uri="html/chunk.xsl" />
	<uri name="onechunk.xsl" uri="html/onechunk.xsl" />
	<uri name="fo-docbook.xsl" uri="fo/docbook.xsl" />
	<uri name="chunk-common.xsl" uri="html/chunk-common.xsl" />
	<uri name="manifest.xsl" uri="html/manifest.xsl" />
	<uri name="chunk-code.xsl" uri="html/chunk-code.xsl" />
</group>
</catalog>



build.xml (excerpt, whitespace reformatted)
-------------------------------

<?xml version="1.0"?>
<project name="generate" basedir="" default="all">

...

<target name="html.onefile">
<java classname="${xslt.processor.class}" fork="yes" failonerror="true">
	<classpath refid="xslt.processor.classpath" />
	<jvmarg value="-Djavax.xml.parsers.DocumentBuilderFactory=
		org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
	<jvmarg value="-Djavax.xml.parsers.SAXParserFactory=
		org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
	<jvmarg
	value="-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=
		org.apache.xerces.parsers.XIncludeParserConfiguration"/>
	<arg line="-r ${catalog.resolver.class}"/>
	<arg line="-u"/>
	<arg line="-o library.html"/>
	<arg line="${source.dir}/set.xml"/>
	<arg line="${xslPath}/html/docbook.xsl" />
	<arg line="base.dir=${build.dir}/" />
</java>
</target>

...

</project>


Result of command 'ant html.onefile' (doesn't wrap nicely):
-----------------------------------------

html.onefile:
[java] Loading catalog: file:/home/lgarfiel/public_html/stflib/catalog.xml
[java] Loading catalog: 
file:/usr/share/xml/docbook/schema/dtd/4.3/catalog.xml
[java] Loading catalog: file:/etc/sgml/docbook.cat
[java] Loading catalog: file:/usr/share/sgml/docbook/dtd/catalog
[java] Loading catalog: file:/usr/share/sgml/docbook/dtd/2.4.1/catalog
[java] Loading catalog: file:/usr/share/sgml/docbook/dtd/3.0/catalog
[java] Loading catalog: file:/usr/share/sgml/docbook/dtd/3.1/catalog
[java] Loading catalog: file:/usr/share/sgml/docbook/dtd/4.0/catalog
[java] Loading catalog: file:/usr/share/sgml/docbook/dtd/4.1/catalog
[java] Loading catalog: file:/usr/share/sgml/docbook/dtd/4.2/catalog
[java] Loading catalog: file:/usr/share/sgml/docbook/dtd/4.3/catalog
[java] Resolved URI: src/set.xml
[java]     file:/home/lgarfiel/public_html/stflib/src/set.xml
[java] Resolved URI: 
/usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl
[java] Resolved URI: ../VERSION
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/VERSION
[java] Resolved URI: param.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/param.xsl
[java] Resolved URI: ../lib/lib.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/lib/lib.xsl
[java] Resolved URI: ../common/l10n.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/common/l10n.xsl
[java] Resolved URI: ../common/common.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/common/common.xsl
[java] Resolved URI: ../common/labels.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/common/labels.xsl
[java] Resolved URI: ../common/titles.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/common/titles.xsl
[java] Resolved URI: ../common/subtitles.xsl
[java] 
file:/usr/share/xml/docbook/stylesheet/nwalsh/common/subtitles.xsl
[java] Resolved URI: ../common/gentext.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/common/gentext.xsl
[java] Resolved URI: ../common/targets.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/common/targets.xsl
[java] Resolved URI: ../common/olink.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/common/olink.xsl
[java] Resolved URI: ../common/pi.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/common/pi.xsl
[java] Resolved URI: autotoc.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/autotoc.xsl
[java] Resolved URI: autoidx.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/autoidx.xsl
[java] Resolved URI: lists.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/lists.xsl
[java] Resolved URI: callout.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/callout.xsl
[java] Resolved URI: verbatim.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/verbatim.xsl
[java] Resolved URI: graphics.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/graphics.xsl
[java] Resolved URI: xref.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/xref.xsl
[java] Resolved URI: formal.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/formal.xsl
[java] Resolved URI: table.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/table.xsl
[java] Resolved URI: ../common/table.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/common/table.xsl
[java] Resolved URI: htmltbl.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/htmltbl.xsl
[java] Resolved URI: sections.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/sections.xsl
[java] Resolved URI: inline.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/inline.xsl
[java] Resolved URI: footnote.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/footnote.xsl
[java] Resolved URI: html.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/html.xsl
[java] Resolved URI: info.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/info.xsl
[java] Resolved URI: keywords.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/keywords.xsl
[java] Resolved URI: division.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/division.xsl
[java] Resolved URI: toc.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/toc.xsl
[java] Resolved URI: index.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/index.xsl
[java] Resolved URI: refentry.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/refentry.xsl
[java] Resolved URI: math.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/math.xsl
[java] Resolved URI: admon.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/admon.xsl
[java] Resolved URI: component.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/component.xsl
[java] Resolved URI: biblio.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/biblio.xsl
[java] Resolved URI: glossary.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/glossary.xsl
[java] Resolved URI: block.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/block.xsl
[java] Resolved URI: task.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/task.xsl
[java] Resolved URI: qandaset.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/qandaset.xsl
[java] Resolved URI: synop.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/synop.xsl
[java] Resolved URI: titlepage.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/titlepage.xsl
[java] Resolved URI: titlepage.templates.xsl
[java] 
file:/usr/share/xml/docbook/stylesheet/nwalsh/html/titlepage.templates.xsl
[java] Resolved URI: pi.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/pi.xsl
[java] Resolved URI: ebnf.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/ebnf.xsl
[java] Resolved URI: chunker.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/chunker.xsl
[java] Resolved URI: html-rtf.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/html-rtf.xsl
[java] Resolved URI: docbookng.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/docbookng.xsl

*~30 second pause here while an HTTP request is sent to the Oasis web 
site to download most or all of the DocBook DTD*

[java] Resolved URI:
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/VERSION
[java] Resolved URI: ../common/l10n.xml
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/common/l10n.xml
[java] Resolved URI:
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/common/l10n.xsl

------------------------------


I've tried different customized stylesheets, and while the XSL file 
resolved right before the download varies with the stylesheet it's 
always right before the VERSION resolution.

I also just tried changing line 8 of VERSION to read:

<xsl:param name="VERSION">1.66.1</xsl:param>

so that it doesn't have to resolve anything.  When I did that, the last 
few lines of debug out put read:

[java] Resolved URI: html-rtf.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/html-rtf.xsl
[java] Resolved URI: docbookng.xsl
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/html/docbookng.xsl

*~30 second pause here while an HTTP request is sent to the Oasis web 
site to download most or all of the DocBook DTD*

[java] Resolved URI: ../common/l10n.xml
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/common/l10n.xml
[java] Resolved URI:
[java]     file:/usr/share/xml/docbook/stylesheet/nwalsh/common/l10n.xsl

So now I'm even more confused. :-)  Any suggestions what to try next, 
Bob or someone?

-- 
Larry Garfield			AIM: LOLG42
larry@garfieldtech.com		ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an 
idea, which an individual may exclusively possess as long as he keeps it 
to himself; but the moment it is divulged, it forces itself into the 
possession of every one, and the receiver cannot dispossess himself of 
it."  -- Thomas Jefferson


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]