Re: Re: section->article
[email protected] Fri, 23 Jul 2004 03:19:29 +0100
| Newsgroups | gmane.editors.conglomerate.devel,gmane.editors.conglomerate.general |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 2004-07-21 at 15:09, Jason Dusek wrote: > I am on the conglomerate-devel mailing list. I think that conglomerate is the > solution to all my problems - and as soon as I learn XSL, it will solve even > more of my problems. Nothing pleases me more than the idea of "Write once, > publish everywhere." that is at the heart of XML. > > So where do I begin on this DTD business? How are your C coding skills? The functions that build the relevant part of the popup menu are: cong_document_get_valid_new_child_elements and cong_document_get_valid_new_next_sibling_elements There's also a function called cong_document_get_valid_new_previous_sibling_elements, but I don't think this get used anywhere. These are all defined in src/xmldata.c; for the case where you have a DTD they use the function wrap_xml_valid_get_valid_elements. This code probably needs generalising at some point, to deal with RELAX NG schema as well as DTDs... > > _jason > > David Malcolm wrote: > > On Wed, 2004-07-21 at 12:32 -0500, Jason Dusek wrote: > > > >>Hi, > >> > >>How do I add a 'section' to an 'article'? It doesn't show up when I right click > >>and go to 'new sub-element'. I built 0.7.14 yesterday on FreeBSD. > > > > > > Assuming you've created a new article with File->New: try deleting the > > <para> element, and then right-click on the <title> and select "Add New > > Sibling"; the submenu should then contain <section>. > > > > Looks like a problem in the DTD code; please file a bug report about > > this in Bugzilla. > > > > > >>What part of the code do I need to fiddle with so that I can add sections? > > > > > > If you want to hack on the code to fix this problem, please join us on > > the conglomerate-devel mailing list! > > > > Dave > > > > > >>- Jason > >> > >>_______________________________________________ > >>Conglomerate mailing list > >>[email protected] > >>http://lists.copyleft.no/mailman/listinfo/conglomerate > > > > > > _______________________________________________ > Conglomerate-devel mailing list > [email protected] > http://lists.copyleft.no/mailman/listinfo/conglomerate-devel