Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.10
-
None
-
None
-
Windows XP & SV2005 confirmed, possibly other environments
Description
Running the included sample "TransformToXercesDOM" with the supplied birds.xml and the stylesheet below will produce an assertion:
ASSERTION---------------
C:\Temp\Xalan\trunk\Build\Win32\VC8\Debug>TransformToXercesDOM birds.xml test.xsl
Assertion failed: theFormatter != 0 && theFormatter->getWriter() != 0, file ..\..\..\..\src\xalanc\XSLT\XSLTEngineImpl.cpp, line 1568
-----------------------------------
STYLESHEET-------------------------
<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Uncommenting eliminates assertion
<xsl:output method="xml" indent="yes"/> -->
<xsl:template match="/">
<html><body></body></html>
</xsl:template>
</xsl:stylesheet>
------------------------------------------------
Per David Bertoni's response on xalan-dev, the resolution is to remove the assertion behavior in this scenario.
Reference: http://mail-archives.apache.org/mod_mbox/xml-xalan-dev/200806.mbox/%3c4849B355.3050201@apache.org%3e