Changeset 3886:e145438fc8a9 in livinglogic.python.xist for src/ll/xist/scripts/dtd2xsc.py

Show
Ignore:
Timestamp:
10/21/09 17:52:15 (10 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Use _fixpipeline() only for the backwards compatible parsing functions.

Files:
1 modified

Legend:

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

    r3866 r3886  
    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"), parser=parsers.SGMLOP, encoding="utf-8") 
     154            ent = parsers.tree(dtd.resolve_ge(entname).value | parsers.Encoder("utf-8") | parsers.SGMLOP(encoding="utf-8") | parsers.Prefixes() | parsers.Instantiate()) 
    155155            ns.content.append(xnd.CharRef(entname, codepoint=ord(unicode(ent[0])[0]))) 
    156156