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] xxx encountered in section, but no template matches


Hi Paul,
There is something strange going on in your setup, and I don't think you 
have actually fixed the problem.  I use xsltproc 1.1.17 regularly and don't 
see those messages.  Those messages come from a template in docbook.xsl 
(either fo or html) that has match="*". It is designed to catch elements 
not matched by other templates.  But normally every DocBook element is 
matched by at least one template.  Something is happening when your 
stylesheet customization is being assembled to leave out some stylesheet 
modules, perhaps.

The other odd thing is the messages like "listitem encountered in section, 
but no template matches". If you look at the templates generating the 
messages, the second element refered to is always parent::*.  This means 
you have a section containing a listitem as a child element?  That 
certainly would not validate.

I'd be curious if you have tried Saxon to process the same file and 
stylesheet that produces those messages.  If so, I'd try running the XSLT 
debugger in Oxygen on it to see what is going on (Oxygen can't use xsltproc 
in the debugger, but it can use Saxon).

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Paul DuBois" <paul@kitebird.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Tuesday, September 12, 2006 11:36 AM
Subject: [docbook-apps] xxx encountered in section, but no template matches


> This is an "anyone else see this? message.
>
> I've been seeing mysterious messages from xsltproc for some
> of my documents, on some of my machines:
>
> listitem encountered in section, but no template matches.
> secondary encountered in section, but no template matches.
> primary encountered in section, but no template matches.
> (many times)
>
> This is with documents that pass validation.
>
> I typically see that kind of thing when transforming .xml
> to .fo, but I also sometimes see the following when
> transforming .xml to .html:
>
> No template matches listitem in section.
> (many times)
>
> I thought perhaps this was due to my customization layers,
> and indeed commenting out various parts of them could cause
> the problem to go away. But eventually (after edits to the
> documents) it would return. And it was somewhat mysterious
> why it would occur only on some machines.
>
> Then it occurred to me that it might be an xsltproc version
> problem. Indeed,the machines where the problems happen
> were all running libxslt-1.1.17, machines free of the problem
> were running older versions like 1.1.12.
>
> It turns out that I can fix the problem on the affected
> machines (apparently) by downgrading to libxslt-1.1.16. Yay!
>
> But I say "apparently" because after being bedeviled by this
> problem and my various other attempts to solve it, I'm
> suspicious that I haven't really found the cause.
>
> So: Does anyone else see the symptoms I describe? Are you
> running libxslt-1.1.17?
>
> ---------------------------------------------------------------------
> 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]