Re: [xslt] stylesheet.errors
- From: Daniel Veillard <veillard redhat com>
- To: Stéphane Bidoul <stephane bidoul softwareag com>
- Cc: xslt gnome org
- Subject: Re: [xslt] stylesheet.errors
- Date: Sun, 4 May 2003 14:16:12 -0400
On Fri, May 02, 2003 at 03:28:48PM +0200, Stéphane Bidoul wrote:
> > > In the meantime, I looked at xsltproc.c and found out
> > > that it checked the errors field in addition to checking
> > > that xsltParseStylesheetDoc did not return null
> > > (around line 770), so I supposed I needed access to
> > > that field to detect compilation errors.
> >
> > Well, no, that should not be necessary
>
> Well, well, I'm sorry to insist,
> but I've here a small test case...
>
> test.py:
>
> import libxml2, libxslt
> ctxt = libxml2.createFileParserCtxt("bad.xslt")
> ctxt.parseDocument()
> stylesheet = libxslt.parseStylesheetDoc(ctxt.doc())
> #print "===>",stylesheet.errors()
> assert stylesheet is None
>
> bad.xslt:
>
> <?xml version="1.0"?>
> <xsl:transform
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
> <xsl:template match="x("/>
> </xsl:transform>
Argh, can you log this in bugzilla ? I will be on the road for the
next two weeks and that will ensure I don't loose trackfor this pbm.
thanks
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]