Re: parsing entities
[email protected] Mon, 9 Jun 2008 23:38:27 -0700 (PDT)
| Newsgroups | gmane.lisp.scheme.ssax-sxml |
|---|---|
| Message-ID | <[email protected]> |
Hello! Andy Wingo has given a thorough reply, and the texinfo parser does seem to be the best solution to the problem of parsing r5rs into an SXML-like form. I'd like to make a small comment regarding a particular technical question, > The paser tells me it skips the dtd declaration then yells > "[wf-entdeclared] broken for period". > period is one entity declared in the dtd. You might find helpful the following code examples/daml-parse-unparse.scm in the examples directory of the SSAX distribution. DAML documents use many entities, and the file demonstrates how to handle them. In particular, the definition (define DAML-entities ...) introduces the set of entities; these entities are then passed to the parser in the DOCTYPE handler (lines 221-229 of the file daml-parse-unparse.scm). Cheers, Oleg ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php