Re: Adding dispspecs
Dave Malcolm <[email protected]> 17 Feb 2004 13:31:32 +0000
| Newsgroups | gmane.editors.conglomerate.general |
|---|---|
| Message-ID | <1077024691.24116.5714.camel@shirehorse1> |
On Mon, 2004-02-16 at 17:51, Roberto Rosselli Del Turco wrote: > Il lun, 2004-02-16 alle 14:23, Dave Malcolm ha scritto: > > > > This is the well-known "you've nested a structural tag inside a span > > tag" crash - Conglomerate doesn't know how to deal with this at the > > moment; there's a branch in CVS called "WidgetPlayground" that should be > > able to load the file without crashing but doesn't yet support editing - > > I'm working on it but it's a hard problem :-( > > I assume you're talking about the dispspec: if there was such an error > in the documents themselves, they wouldn't validate with xmllint or > other parsers/validators, right? The error is a bug in Conglomerate; both the dispspecs and documents can be valid and still cause this problem. > > > You can work around the problem by figuring out which tag is causing > > problems for Conglomerate, and then converting that span tag into a > > structural one in the dispspec. Obviously this sucks. > > Just to begin with, how can I figure out the troublesome tag? Somewhat fiddly; run Conglomerate under gdb, when it crashes go up the callstack and find the node causing the problems. Easier said than done - so I'll look into providing a better error message that tells you what and where the problem is. > > > > ** ERROR **: file gxx-impl-object-to-xml-tree.c: line 25 > > > (gxx_hash_table_of_children_with_pcdata_to_xml_tree): assertion failed: > > > (key) > > > aborting... > > > > That should NOT have happened! Please can you post the dispspec that > > kills the loader to this list so I can investigate further. > > Here it is, hope someone else on the list is interested in transcription > of medieval manuscripts :) The xds file you attached works fine for me using CVS Conglomerate so it's either a recently fixed bug or you sent me the wrong file! > > Ciao