Changeset 4014:6aaa2efe668b in livinglogic.python.xist for src/ll/xist/scripts/dtd2xsc.py

Show
Ignore:
Timestamp:
06/01/10 13:55:00 (9 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Change the parsing interface so that pipeline object don't know their input.

Instead the wiring of the pipeline is done by tree() or iterparse() (or the
new events() function).

Drop the old module global parse functions.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/ll/xist/scripts/dtd2xsc.py

    r3941 r4014  
    152152    for entname in ents: 
    153153        if entname not in ("quot", "apos", "gt", "lt", "amp"): 
    154             ent = parsers.tree(dtd.resolve_ge(entname).value | parsers.Encoder("utf-8") | parsers.SGMLOP(encoding="utf-8") | parsers.NS() | parsers.Instantiate()) 
     154            ent = parsers.tree(dtd.resolve_ge(entname).value, parsers.Encoder("utf-8"), parsers.SGMLOP(encoding="utf-8"), parsers.NS(), parsers.Instantiate()) 
    155155            ns.content.append(xnd.CharRef(entname, codepoint=ord(unicode(ent[0])[0]))) 
    156156