Re: [xml] Bug #21194

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Tue Aug 22 2000 - 19:16:05 EDT


On Tue, Aug 22, 2000 at 05:14:48PM -0500, Kenneth Pronovici wrote:
>
> Daniel -
>
> I submitted bug #21194 about a week ago. This had to do with printing the
> DOCTYPE tag in XML documents which have an associated DTD. I don't mean to
> be pushy, because I'm sure you're busy, but I'm just curious whether you had
> a chance to consider the issue at all.

  Seems you didn't originally assigned it as to gnome-xml, so I didn't
received it, an it only show up in the database now:

  http://bugs.gnome.org/db/21/21194.html

  and the patches seems unreadable there :-\
I don't see any mail from you in the archive either:

  http://xmlsoft.org/messages/

  Something strange may have happened

> I needed the ability to print <!DOCTYPE> tags in XML documents I generated
> with libxml.

  Well, libxml saves all the Internal Subset declarations, for example

~/XML -> cat dtd.xml
<!DOCTYPE doc [
<!ELEMENT doc (#PCDATA)>
<!ATTLIST doc val ID #IMPLIED>
]>
<doc val="v1"></doc>
~/XML -> ./xmllint dtd.xml
<?xml version="1.0"?>
<!DOCTYPE doc [
<!ELEMENT doc (#PCDATA)>
<!ATTLIST doc val ID #IMPLIED>
]>
<doc val="v1"/>
~/XML ->

  So there is obviously some existing code to print at least the
sequence of declarations from the DtD:

xmlDtdDump(xmlBufferPtr buf, xmlDtdPtr dtd);
and
xmlDtdDumpOutput(xmlOutputBufferPtr buf, xmlDtdPtr dtd, const char *encoding);

 but those are not public,
 I assume you would like to make similar functions public, could you send
me the patches again ?

[... reading your second mail posted in the bug list ...]
> Having these functions (or similar functionality in other functions)
> in a real release would help a great deal.

  Sure if the codde is okay it may be included in the next one.
One just need to worry about the fact that extenal subsets must follow
the given constraints:

[30] extSubset ::= TextDecl? extSubsetDecl

 and for example the TextDecl is present must contain an encoding
declaration ...

Daniel

-- 
Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes  | Today's Bookmarks :
Tel : +33 476 615 257  | 655, avenue de l'Europe | Linux XML libxml WWW
Fax : +33 476 615 207  | 38330 Montbonnot FRANCE | Gnome rpm2html rpmfind
 http://www.w3.org/People/all#veillard%40w3.org  | RPM badminton Kaffe
----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Aug 22 2000 - 16:43:12 EDT