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] Catalog related problem


Bob,

Thanks for the suggestion.  After sifting through an amazing
amount of output:-), I figured it out.  I'll describe it here
both to confirm the diagnosis and because someone else may run
into the same situation.

The catalog.xml file for 1.72.0 defines rewrite rules that
rewrite URIs from:

http://docbook.sourceforge.net/release/xsl/current/

to:

file:/path-to-stylesheets/1.72.0

where path-to-stylesheets is the path to the directory that
contains your DocBook stylesheets (e.g., on my system it's
/usr/share/xml/docbook/stylesheet/nwalsh)

In 1.70.1, the website chunk-tabular.xsl, chunk-website.xsl,
and website-common.xsl files import stylesheets from the html
directory by referring to:

http://docbook.sourceforge.net/release/xsl/current/html/xyz.xsl.

That gets remapped, and 1.72.0 stylesheets get imported instead of
the desired 1.70.1 stylesheets.  Of course, if you're always using
the latest stylesheets, this won't happen, but if you need to go
back a version, which I've had to do for websites, it's a problem.

What I've done for the time being is to replace the full http...
references in those three files with relative file references
(i.e., ../html/xyz.xsl).  I'm not sure why those references weren't
that way in the stylesheets from the start, though I suppose it's
to let you keep the website stylesheets separate from the rest of
the stylesheets.  Since I've got them together, it works fine.

So, that's what I found.  If you have any suggestions for a
better way to resolve this problem, I'd be glad to hear them.

Thanks,
Dick Hamilton
rlhamilton@frii.com


> -----Original Message-----
> From: Bob Stayton [mailto:bobs@sagehill.net] 
> Sent: Monday, March 05, 2007 2:17 PM
> To: Dick Hamilton; docbook-apps@lists.oasis-open.org
> Subject: Re: [docbook-apps] Catalog related problem
> 
> 
> Hi Dick,
> You might try setting verbosity=4 in the 
> CatalogManger.properties file and 
> see how it is resolving references.
> 
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> bobs@sagehill.net
> 
> 
> ----- Original Message ----- 
> From: "Dick Hamilton" <rlhamilton@frii.com>
> To: <docbook-apps@lists.oasis-open.org>
> Sent: Monday, March 05, 2007 12:00 PM
> Subject: [docbook-apps] Catalog related problem
> 
> 
> > I'm running into a strange problem with the stylesheets that
> > I've traced as far as CatalogManager.properties, but am now
> > stumped on.
> >
> > I have the 1.70.0 and 1.72.0 stylesheets installed, and I'm
> > using saxon 6.5.3 on Suse 10.  My source is written to the
> > Website V2.5.0 dtd.
> >
> > When I run the website stylesheets, pointing to 1.70.0, the
> > banner, navigation, and footer process correctly, but the
> > main content of the page does not process; instead a series
> > of messages get generated in the form:
> >
> > Element XXX in namespace '' encountered in yyy, but no 
> template matches
> >
> > What's strange here is that this message is not generated by
> > the 1.70.0 stylesheets; in fact it's generated by the 1.72.0
> > stylesheets (which I confirmed by moving those stylesheets
> > temporarily to a different name).
> >
> > It doesn't surprise me that the 1.72 stylesheets aren't happy
> > with websites, since the README file says the website stylesheets
> > haven't been modified for namespaces.  But, I can't figure out
> > why the 1.72 stylesheets are being invoked in the first place.
> >
> > In tracing back the problem, I determined that if I edit the
> > CatalogManager.properties file to remove the reference to the
> > 1.72.0 stylesheets (or if I just rename the 1.72.0 directory)
> > everything works fine.  So, I'm pretty sure that the catalog
> > mechanism is involved, but I can't figure out where or whether
> > this is a setup problem or a bug.
> >
> > Can anyone shed any light on this?
> >
> > Thanks,
> > Dick Hamilton
> > rlhamilton@frii.com
> >
> >
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: 
> docbook-apps-unsubscribe@lists.oasis-open.org
> > For additional commands, e-mail: 
> docbook-apps-help@lists.oasis-open.org
> >
> >
> > 
> 
> 
> 




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