David,
well, Sablotron ought to report the correct file and line where the
error occured, not where the file was included from. This is a bug -
thanks, we'll fix it. Hope it will be easier to make the docbook
stylesheets run then. BTW there have been a few problems in the parsing
part (which is what seems to fail here) in 0.44 - they're hard to track
down, but usually easy to fix.
Best,
Tom
David Hedbor wrote:
> I know this has been mentioned before - trying to get the docbook
> stylesheets to work with Sablotron. I don't have too much luck. The
> first problem is this:
>
> Error [code:196] [URI:file:/home/neotron/foo/docbook/html/docbook.xsl] [line:2]
>[node:element '<xsl:stylesheet>']
> unexpected attribute 'exclude-result-prefixes'
>
> So I remove this attribute. Then I get:
>
> Error [code:209] [URI:file:/home/neotron/foo/docbook/html/docbook.xsl] [line:33]
>[node:attribute 'test']
> ')' expected
>
> The code triggering this error is in a file included on line 33 in
> docbook.xsl. Here is where the request for better debug info (or some
> kind of trace feature) comes in. Basically I know that the error is in
> the file table.xsl but I have no idea on which line. I figured out
> that this line was the source of the problem:
>
> <xsl:when test="processing-instruction('dbhtml')">
>
> Commenting out the entire xsl:when and there's another error in the
> same file. This time it's much harder to find... Anyway, the error
> message above is odd, isn't it? Why is there a ')' expected when it's
> already there?
>
> Anyway, this is mainly a request for better debugging facilities to
> be able to debug included files.