GNOME Bugzilla – Bug 60624
text node as top level element results in segmentation fault
Last modified: 2009-08-15 18:40:50 UTC
====== stylesheet ====== <?xml version="1.0" encoding="ISO-8859-1" ?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> a not allowed top level element <xsl:template match="/"> </xsl:template> </xsl:stylesheet> ======================== Processing this styleheet results in segementation fault. I know that it is not allowed to put text nodes as a top level element of a stylesheet, but this should output an error message. Stephan
Created attachment 5614 [details] testcase
Oops sorry, this was introduced recently I believe. Very easy to find and correct. I commited a patch in CVS and added it to the regression suite. http://cvs.gnome.org/bonsai/cvsquery.cgi?module=libxslt&branch=HEAD&branchtype=match&dir=libxslt&file=&filetype=match&who=veillard&whotype=match&sortby=Date&hours=&date=explicit&mindate=09%2F18%2F01+05%3A55&maxdate=09%2F18%2F01+05%3A57&cvsroot=%2Fcvs%2Fgnome thanks for the report, Daniel
Should be fixed in the last releases, Daniel