[gnome-xml] using the DTD


Maybe this is not a bug but missing functionality, but I just don't get it
why using the following DTD:
<!ELEMENT mage-story (package+)>

<!ELEMENT package (title, author?, description?, language?)>
<!ATTLIST package
          plugin  CDATA  #REQUIRED
          param	  CDATA	 #IMPLIED

<!ELEMENT title (#PCDATA) >
<!ELEMENT author (#PCDATA) >
<!ELEMENT description (#PCDATA) >
<!ELEMENT language (#PCDATA) >

with the following file:

<?XML version="1.0" ?>
<!DOCTYPE mage-story SYSTEM "/home/cactus/prog/mage/ge/tagfile.dtd">

  <package plugin="magejs.so">
    <title>MAGE: A test</title>
    <author>ÉRDI Gergő</author>
      This is a test story.
      This tag is multi-lined for didactical purposes.

produces a segfault when reading the <package>'s "param" attribute.
Shouldn't it simply return "", because this is #IMPLIED?

   .--= ULLA! =----------------------------.  finger cactus@cactus.rulez.org
   \      http://cactus.rulez.org           \   for PGP public key
    `----------= cactus@cactus.rulez.org =--'
Ha kvantum-titkositast hasznalsz, nem ismerheted egyszerre a felhasznaloi nevedet es a jelszavadat.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]