[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[help-texinfo] Re: wrong xml output
From: |
Ferenc Wagner |
Subject: |
[help-texinfo] Re: wrong xml output |
Date: |
Mon, 01 Mar 2004 22:13:10 +0100 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.2 (gnu/linux) |
Alper Ersoy <address@hidden> writes:
> Alper Ersoy:
>>> Now it (kind of) does:
>
>>> $ makeinfo --xml lilypond.texi
>>> *** stack underflow (-1 - 0) ***
>>> Element stack index : -1
>
> Here are the details:
...which I don't really understand, but at least got the
feeling that you know what you're doing... ;)
> To work it around in your document, just indent that line
> (lilypond-book.texi:324) slightly. You will get a
> well-formed XML document then.
Yes, that's needed. Plus getting rid of the custom tags and
modifying texinfo.dtd according to the patch below CVS
makeinfo creates valid XML. I updated the files on the web
to reflect the present state of affairs.
Feri.
Index: texinfo.dtd
===================================================================
RCS file: /cvsroot/texinfo/texinfo/util/texinfo.dtd,v
retrieving revision 1.6
diff -u -r1.6 texinfo.dtd
--- texinfo.dtd 1 Mar 2004 15:48:51 -0000 1.6
+++ texinfo.dtd 1 Mar 2004 21:00:58 -0000
@@ -38,7 +38,8 @@
| smalllisp | cartouche | copying
| format | smallformat | display
| smalldisplay | itemize | enumerate | sp | center | group
- | float | table | multitable | definition | verbatim">
+ | float | table | multitable | definition | verbatim
+ | image">
<!-- API definitions -->
<!-- *************** -->
@@ -71,7 +72,7 @@
| %section.level2;
| %section.level3;
| %section.level4;
- | titlepage | image
+ | titlepage
| %toc; | %lang; | %variables;
| %headings;
| printindex | listoffloats)*">
@@ -79,18 +80,18 @@
<!ENTITY % section.level2.content "(%block;
| %section.level3;
| %section.level4;
- | titlepage | image
+ | titlepage
| %toc; | %lang; | %variables;
| %headings;)*">
<!ENTITY % section.level3.content "(%block;
| %section.level4;
- | titlepage | image
+ | titlepage
| %toc; | %lang; | %variables;
| %headings;)*">
<!ENTITY % section.level4.content "(%block;
- | titlepage | image
+ | titlepage
| %toc; | %lang; | %variables;
| %headings;)*">
@@ -108,7 +109,7 @@
<!ENTITY % Inline.phrase
"%Inline.emphasize; | %Inline.smallcaps; | %Inline.fonts;
| %Inline.markup; | %Inline.math; | %Inline.reference;
- | %Inline.footnote; ">
+ | %Inline.footnote; | inlineimage">
<!-- ************ -->
@@ -150,7 +151,7 @@
<!-- NODES -->
<!-- ***** -->
<!ELEMENT node (nodename, nodenext?, nodeprev?, nodeup?,
- (%section.all; | %block; | image | %toc; | %lang;)*) >
+ (%section.all; | %block; | %toc; | %lang;)*) >
<!ELEMENT nodename (#PCDATA)>
<!ELEMENT nodenext (#PCDATA)>
@@ -191,7 +192,8 @@
<!-- BLOCK Elements -->
<!-- ************** -->
-<!ELEMENT quotation (%block; | %Inline.phrase; | exdent )*>
+<!-- FIXME subsubheading does not belong here -->
+<!ELEMENT quotation (%block; | %Inline.phrase; | exdent | subsubheading)*>
<!ELEMENT example (#PCDATA | %block; | %Inline.phrase; | exdent)*>
<!ELEMENT smallexample (#PCDATA | %block; | %Inline.phrase; | exdent)*>
<!ELEMENT lisp (#PCDATA | %block; | %Inline.phrase; | exdent)*>
@@ -212,6 +214,12 @@
extension CDATA #REQUIRED
width CDATA #REQUIRED
height CDATA #REQUIRED>
+<!ELEMENT inlineimage (alttext)>
+<!ATTLIST inlineimage
+ name CDATA #REQUIRED
+ extension CDATA #REQUIRED
+ width CDATA #REQUIRED
+ height CDATA #REQUIRED>
<!-- Whitespace in these elements are always preserved -->
<!ATTLIST example xml:space (preserve) #FIXED 'preserve'>
@@ -269,7 +277,8 @@
<!ELEMENT thead (row+)>
<!ELEMENT tbody (row+)>
<!ELEMENT row (entry*)>
-<!ELEMENT entry (#PCDATA | %Inline.phrase;)*>
+<!-- FIXME image should not be here -->
+<!ELEMENT entry (#PCDATA | %Inline.phrase; | image)*>
<!-- API definitions -->
<!ELEMENT definition (definitionterm | definitionitem)+>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [help-texinfo] Re: wrong xml output,
Ferenc Wagner <=