[xslt] BUG: non-existent file in document()
- From: Peter Pawlowski <pawlowski vivisimo com>
- To: xslt gnome org
- Subject: [xslt] BUG: non-existent file in document()
- Date: Mon, 3 Mar 2003 15:00:08 -0500 (EST)
Hello,
When referencing a file using document(), if the file does not exist, an
error is generated, but then xsltproc segfaults (RedHat 7.2):
[pawlowski@dev tmp]$ more xslexample.xsl
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/">
<xsl:apply-templates select="document('/tmp/thisfiledoesnotexist')"/>
</xsl:template>
</xsl:stylesheet>
[pawlowski@dev tmp]$ xsltproc xslexample.xsl empty.xml
warning: failed to load external entity "/tmp/thisfiledoesnotexist"
Segmentation fault (core dumped)
[pawlowski@dev tmp]$ xsltproc --version
Using libxml 20430, libxslt 10024 and libexslt 715
xsltproc was compiled against libxml 20430, libxslt 10024 and libexslt 715
libxslt 10024 was compiled against libxml 20430
libexslt 715 was compiled against libxml 20430
This seems to happen in the general case, i.e. in xsl:value-of and
xsl:variable as well.
Thanks.
--
Peter Pawlowski
pawlowski@vivisimo.com
Software Engineer, Lead Linguist
Vivisimo, Inc
"Organized information
from anywhere, any time,
in any language."
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]