[gnome-xml] using the DTD
- From: ERDI Gergo <cactus cactus rulez org>
- To: gnome-devel-list gnome org
- Subject: [gnome-xml] using the DTD
- Date: Sat, 4 Dec 1999 16:51:21 +0100 (CET)
Hi,
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">
<mage-story>
<package plugin="magejs.so">
<title>MAGE: A test</title>
<author>ÉRDI Gergő</author>
<description>
This is a test story.
This tag is multi-lined for didactical purposes.
</description>
<language>en</language>
</package>
</mage-story>
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]