|
From: George H. <fr...@di...> - 2004-04-30 14:10:43
|
Hi,
I've installed the 3.0b2 release of the XML/DOM/XSL tools and have run
into a problem with 'segmentation fault' crashes when trying to
validate a document. A simple example is included below. What am I
doing wrong?
My setup is:
Slackware Linux 9.1
Tcl 8.4.5 (built from source).
libxml2 2.6.9 (built from source).
Tcl XML/DOM/XSL 3.0b2 (built from source).
As a cross-check, I also tried it on a NetBSD-Sparc system and got
the same crash.
Regards,
George
=== begin sample script ===
# validate.tcl --
#
# Test script to illustrate 'Segmentation fault' when validating
# a document.
# Derived from TclDOM 3.0b2 tests/validate.text.
package require xml 3.0
package require dom 3.0
set inst [dom::libxml2::parse {<!DOCTYPE Test [
<!ELEMENT Test (#PCDATA)>
]>
<Test>This is a valid document</Test>
}]
$inst dtd validate
dom::destroy $inst
exit 0
=== end script ===
|