Changeset 4425:a6c778b5f244 in livinglogic.python.xist for src/ll/xist/scripts/xml2xsc.py

Show
Ignore:
Timestamp:
03/17/11 17:37:18 (9 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Pass model argument along to the xnd.Module constructor.

Files:
1 modified

Legend:

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

    r4423 r4425  
    8080def makexnd(urls, parser="etree", shareattrs="dupes", model="simple", defaultxmlns=None): 
    8181    elements = {} # maps (name, xmlns) to content set 
    82     ns = xnd.Module(defaultxmlns=defaultxmlns) 
     82    ns = xnd.Module(defaultxmlns=defaultxmlns, model=model) 
    8383    with url.Context(): 
    8484        for u in urls: