Exemplo n.º 1
0
 def setup_class(cls):
     """ setup class (only once) and transform XML file
     """
     cls.xf = conf.XMLFile( os.path.join(DIR, "book.xml") )
     cls.xf.parse( conf.STYLESHEETS["xhtml-single"] )
     cls.result = cls.xf.transform()
     cls.ns = conf.namespaces()
Exemplo n.º 2
0
 def setup_class(cls):
    """ setup class (only once) and transform XML file
    """
    cls.xf = conf.XMLFile( os.path.join(DIR, "article.xml") )
    cls.xf.parse( conf.STYLESHEETS["xhtml-single"] )
    cls.result = cls.xf.transform()
    cls.ns = conf.namespaces()
Exemplo n.º 3
0
 def setup_class(cls):
     """ setup class (only once) and transform XML file
   """
     cls.profattr = {'profile.userlevel': "'foo'"}
     cls.xf = conf.XMLFile(os.path.join(DIR, "profiling-book.xml"))
     cls.xf.parse(conf.STYLESHEETS["profile"])
     cls.result = cls.xf.transform(**cls.profattr)
     cls.ns = conf.namespaces()
Exemplo n.º 4
0
 def setup_class(cls):
    """ setup class (only once) and transform XML file
    """
    cls.profattr = {'profile.arch': "'foo'"}
    cls.xf = conf.XMLFile( os.path.join(DIR, "profiling-book.xml") )
    cls.xf.parse( conf.STYLESHEETS["profile"] )
    cls.result = cls.xf.transform( **cls.profattr )
    cls.ns = conf.namespaces()
 def setup_class(cls):
    """ setup class (only once) and transform XML file
    """
    cls.profattr = {'profile.revisionflag': "'off'"}
    cls.xf = conf.XMLFile( 
                os.path.join(DIR, "profiling-book.xml"),
                xmlparser=conf.xmlparser(dtd_validation=True,load_dtd=True)
             )
    cls.xf.parse( conf.STYLESHEETS["profile"] )
    cls.result = cls.xf.transform( **cls.profattr )
    cls.ns = conf.namespaces()
Exemplo n.º 6
0
 def setup_class(cls):
    """ setup class (only once) and transform XML file
    """
    cls.profattr = {'profile.arch': "'foo'",
                    'profile.os':   "'osuse'",
                   }
    cls.xf = conf.XMLFile( 
                os.path.join(DIR, cls.xmlfile),
                xmlparser=conf.xmlparser(dtd_validation=True,load_dtd=True)
             )
    cls.xf.parse( conf.STYLESHEETS["profile"] )
    cls.result = cls.xf.transform( **cls.profattr )
    cls.ns = conf.namespaces()