Public bug reported:

Binary package hint: firefox-3.0

Firefox simply crashes if I open the XML File.

Description:    Ubuntu 8.04.1
Release:        8.04
Package: :3.0.1+build1+nobinonly-0ubuntu0.8.04.3

The XML File:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="xslt.xsl"?>

<bibliotek name="meine Bibliothek" 
xsi:noNamespaceSchemaLocation="bibliotek.xsd" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
                                <kategorie id="i2" name="k2">
                                                                <kategorie 
id="i21" name="k21"/>
                                </kategorie>
                                <kategorie id="i1" name="k1"/>
                                <buch id="b1" kat="i1 i2" name="Buch 1"/>
                                <buch id="b2" kat="i21" name="Buch 2"><![CDATA[ 
das ist eine Beschreibung des Buches.]]></buch>
                                <buch id="b3" name="Buch 3" verfuegbar="ja" 
kat="i1 i21"/>
</bibliotek>

The StyleSheet:
<?xml version="1.0" encoding="UTF-8"?>


<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
                                <xsl:output method="html" 
encoding="iso-8859-15"/>
                                
                                <xsl:key name="kat" match="buch" 
use="tokenize(@kat, '\s')"/>
                                
                                <xsl:template match="bibliotek">
                                                                <html>
                                                                                
                <body>
                                                                                
                                                <h2>Kategorien</h2>
                                                                                
                                                <table border="1">
                                                                                
                                                                                
<tr>
                                                                                
                                                                                
                                <th>Name</th>
                                                                                
                                                                                
                                <th>Bücher</th>
                                                                                
                                                                                
</tr>
                                                                                
                                                                                
<xsl:for-each select="//kategorie">
                                                                                
                                                                                
                                <xsl:sort select="@name"  order="ascending"/>
                                                                                
                                                                                
                                <xsl:call-template name="kategorie" />
                                                                                
                                                                                
</xsl:for-each>
                                                                                
                                                </table>
                                                                                
                                                <h2>Bücher</h2>
                                                                                
                                                <table border="1">
                                                                                
                                                                                
<tr>
                                                                                
                                                                                
                                <th>Name</th>
                                                                                
                                                                                
                                <th>Verfügbar</th>
                                                                                
                                                                                
                                <th></th>
                                                                                
                                                                                
</tr>
                                                                                
                                                                                
<xsl:for-each select="//buch">
                                                                                
                                                                                
                                <xsl:sort select="@name" order="ascending"/>
                                                                                
                                                                                
                                <xsl:call-template name="buch" />
                                                                                
                                                                                
</xsl:for-each>
                                                                                
                                                </table>                        
                                                                                
                        
                                                                                
                </body>
                                                                </html>
                                </xsl:template>
                                
                                <xsl:template  name="kategorie">
                                                                <tr>
                                                                                
                <td>
                                                                                
                                                <xsl:value-of select="@name"/>
                                                                                
                </td>
                                                                                
                <td>
                                                                                
                                                <xsl:for-each 
select="key('kat', @id)">
                                                                                
                                                                                
<xsl:text disable-output-escaping="yes">&lt;a href=&quot;#</xsl:text>
                                                                                
                                                                                
<xsl:value-of select="@id"/>
                                                                                
                                                                                
<xsl:text disable-output-escaping="yes">&quot;&gt;</xsl:text>
                                                                                
                                                                                
<xsl:value-of select="@name"/>
                                                                                
                                                                                
<xsl:text disable-output-escaping="yes">&lt;/a&gt;</xsl:text>
                                                                                
                                                                                
<xsl:text>, </xsl:text>
                                                                                
                                                </xsl:for-each>
                                                                                
                </td>
                                                                </tr>
                                </xsl:template>
                                
                                <xsl:template  name="buch">
                                                                <tr>
                                                                                
                <td>
                                                                                
                                                <xsl:text 
disable-output-escaping="yes">&lt;a name=&quot;</xsl:text>
                                                                                
                                                <xsl:value-of select="@id"/>
                                                                                
                                                <xsl:text 
disable-output-escaping="yes">&quot;&gt;</xsl:text>
                                                                                
                                                <xsl:value-of select="@name"/>
                                                                                
                                                <xsl:text 
disable-output-escaping="yes">&lt;/a&gt;</xsl:text>
                                                                                
                </td>
                                                                                
                <td>
                                                                                
                                                <xsl:value-of 
select="@verfuegbar"/>
                                                                                
                </td>
                                                                                
                <td>
                                                                                
                                                <xsl:value-of select="."/>
                                                                                
                </td>
                                                                </tr>
                                </xsl:template>                         
</xsl:stylesheet>

The XML Schema:
<?xml version="1.0" encoding="UTF-8"?>

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
                                <xsd:complexType name="TBibliothek">
                                                                <xsd:sequence>
                                                                                
                <xsd:element name="kategorie" maxOccurs="unbounded" 
minOccurs="1" type="TKategorie"/>
                                                                                
                <xsd:element name="buch" maxOccurs="unbounded" minOccurs="0" 
type="TBuch"/>
                                                                </xsd:sequence>
                                                                <xsd:attribute 
name="name" type="xsd:string" use="optional"/>
                                </xsd:complexType>
                                <xsd:complexType name="TKategorie">
                                                                <xsd:sequence>
                                                                                
                <xsd:element name="kategorie" maxOccurs="unbounded" 
minOccurs="0" type="TKategorie"/>
                                                                </xsd:sequence>
                                                                <xsd:attribute 
name="id" type="xsd:ID" use="required"/>
                                                                <xsd:attribute 
name="name" type="xsd:string" use="required"/>
                                </xsd:complexType>
                                <xsd:complexType name="TContent" mixed="true" 
abstract="true">
                                                                <xsd:attribute 
name="id" type="xsd:ID" use="required"/>
                                                                <xsd:attribute 
name="name" type="xsd:string" use="required"/>
                                                                <xsd:attribute 
name="kat" type="xsd:IDREFS" use="optional"/>
                                </xsd:complexType>
                                <xsd:complexType name="TBuch">
                                                                
<xsd:complexContent>
                                                                                
                <xsd:extension base="TContent">
                                                                                
                                                <xsd:attribute 
name="verfuegbar" default="nein" use="optional">
                                                                                
                                                                                
<xsd:simpleType>
                                                                                
                                                                                
                                <xsd:restriction base="xsd:token">
                                                                                
                                                                                
                                                                
<xsd:enumeration value="ja"/>
                                                                                
                                                                                
                                                                
<xsd:enumeration value="nein"/>
                                                                                
                                                                                
                                </xsd:restriction>
                                                                                
                                                                                
</xsd:simpleType>
                                                                                
                                                </xsd:attribute>
                                                                                
                </xsd:extension>
                                                                
</xsd:complexContent>
                                </xsd:complexType>
                                <xsd:element name="bibliotek" 
type="TBibliothek"/>
</xsd:schema>

ProblemType: Bug
Architecture: i386
Date: Thu Jul 31 15:59:57 2008
DistroRelease: Ubuntu 8.04
NonfreeKernelModules: nvidia
Package: firefox-3.0 3.0.1+build1+nobinonly-0ubuntu0.8.04.3
PackageArchitecture: i386
ProcEnviron:
 
PATH=/opt/e17/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
 [EMAIL PROTECTED]
 SHELL=/bin/bash
SourcePackage: firefox-3.0
Uname: Linux 2.6.24-20-386 i686

** Affects: firefox-3.0 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug

-- 
Firefox crashes on XSL Transform
https://bugs.launchpad.net/bugs/253641
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to