Subject: pkg/12494: xalan-c: TestXSLT dumps core
To: None <gnats-bugs@gnats.netbsd.org>
From: None <skrll@netbsd.org>
List: netbsd-bugs
Date: 03/28/2001 17:21:41
>Number:         12494
>Category:       pkg
>Synopsis:       xalan-c: TestXSLT dumps core
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 28 08:23:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Nick Hudson
>Release:        Unknown
>Organization:
>Environment:

Probably macppc (problem reported by manu@netbsd.org - see below)

>Description:
	TestXSLT dumps core when -validate is used on a xml document referencing
	an xsl document.

	Problem reported by manu@netbsd.org as feedback to pkg/11560. I've
	opened a new PR rather than reopening the old PR.
>How-To-Repeat:

	manu@trotsky</home/manu/xml>testXSLT -in toto.xml -validate
	========= Parsing toto.xml ==========
	Parse of toto.xml took 90 milliseconds
	========= Parsing and preparing file:///home/manu/xml/toto.xsl
	==========
 
	Error at (file file:///home/manu/xml/toto.xsl, line 2, char16): Unknown
	element 'xsl:stylesheet'
	Parsing and init of file:///home/manu/xml/toto.xsl took 10 milliseconds
	assertion "rootRule" failed: file "XSLT/StylesheetRoot.cpp", line 178
	Abort (core dumped)
 
 
	Here is the beginning of toto.xsl:
	<?xml version="1.0"?>
	<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	version="1.0">
	<!-- $Id$ -->
 
	<xsl:template match="/">
 
	And the beginning of toto.xml:
	<?xml version="1.0" encoding="ISO-8859-1"?>
	<?xml-stylesheet type="text/xsl" href="file:///home/manu/xml/toto.xsl"
	?>
	<!DOCTYPE article SYSTEM "article.dtd">
	<article>
 
	workaround: XML documents can be validated with the StdinParse sample
	app provided with Xerces.
>Fix:
	Unknown
>Release-Note:
>Audit-Trail:
>Unformatted: