This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: website dtd newbie


On Mon, Nov 19, 2001 at 07:32:06PM -0600, Matthew Braun wrote:
> >What am I missing?
> Have you tried adding the --nonet or --warnnet options?  

Yes.

> Are you sure the public ID matches the catalog entry?  (Please give
> the top of the doc, so it can be compared it to the catalog contents.)

<!DOCTYPE webpage PUBLIC "-//Norman Walsh//DTD Website V2.0b1//EN" 

Followed by:

"http://docbook.sourceforge.net/release/website/2.0b1/website.dtd";>

and:

"file:///usr/share/sgml/docbook/custom/website/2.0b1/website.dtd"> 

(Tried both)

> If you're running on a linux system, you can use the "strace" command to
> get a trace of the system calls that it's executing.  (On solaris, use
> the "truss" command.)  So for instance, on linux, you could say:
>    strace -o /tmp/out -f xsltproc --catalogs --nonet stylesheet.xsl website.xml
> Then look into /tmp/out.  You should see it at least "open" and "read"
> calls, where it opens and reads the catalog files.  If it isn't opening
> them, then it probably doesn't know where the catalogs are, so maybe
> SGML_CATALOG_FILES isn't set or exported correctly.  

It seems that files are fetched correctly from the disk:

1267  open("/usr/share/sgml/docbook/custom/website/2.0b1/catalog", O_RDONLY) = 4
1267  open("/usr/share/sgml/docbook/custom/website/2.0b1/xsl/tabular.xsl", O_RDONLY) = 4
1267  open("/usr/share/sgml/docbook/custom/website/2.0b1/xsl/website-common.xsl", O_RDONLY) = 4

But at some point it must be happening something that forces xsltproc
to look on the net for something it is not finding on the system:

1267  read(4, "xsl:variable name=\"next-child\"\n                select=\"$tocentry/descendant::tocentry[1]\"/>\n\n  <xsl:variable name=\"nextid\">\n    "..., 4096) = 1370
1267  read(4, "", 4096)                 = 0
1267  brk(0x8089000)                    = 0x8089000
[...]
1267  read(4, "", 4096)                 = 0
[...]
1267  close(4)                          = 0
1267  munmap(0x40016000, 4096)          = 0
1267  brk(0x808c000)                    = 0x808c000
[...]
1267  stat64(0x807d7f0, 0xbffff5ac)     = -1 ENOENT (No such file or directory)
1267  stat64(0x807b2d8, 0xbffff5ac)     = -1 ENOENT (No such file or directory)
1267  write(2, "Attempt to load network entity http://docbook.sourceforge.net/release/xsl/snapshot/html/docbook.xsl \n", 101) = 101
1267  write(2, "compilation error: file /usr/share/sgml/docbook/custom/website/2.0b1/xsl/website-common.xsl line 20 element import\n", 115) = 115
1267  write(2, "xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/snapshot/html/docbook.xsl\n";, 97) = 97

I see it is not finding the docbook.xsl on my system.  ``locate
docbook.xsl'' yields this:

/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/fo/docbook.xsl
/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/html/docbook.xsl
/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/xhtml/docbook.xsl

I also tried setting and exporting SGML_CATALOG_FILES to
/usr/share/sgml/docbook/custom/website/2.0b1/catalog:/usr/share/sgml/docbook/dtd/xml/4.1.2/docbook.cat,
with no success.

> 					m@

Whatever way this will end up, thanks a lot!

Massimiliano


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]