Did I find the right examples for you? yes no

All Samples(20)  |  Call(12)  |  Derive(0)  |  Import(8)

        def _run_html(source_xml, transform_xml, expected, parameters=None,
              source_uri=None, transform_uri=None,
              processor_kwargs={}):
    _run(source_xml, transform_xml, expected, parameters,
         treecompare.html_diff, source_uri, transform_uri,
         processor_kwargs)
        


src/a/m/Amara-2.0.0/test/xslt/test_key.py   Amara(Download)
from amara.xslt import XsltError
 
from xslt_support import _run_xml, _run_html, _run_text
 
module_name = os.path.dirname(__file__)
def test_key_1():
    """basic keys"""
    _run_html(
        source_xml = FILE_SOURCE_XML,
        source_uri = FILE_URI,

src/a/m/Amara-2.0.0/test/xslt/test_elem_attr.py   Amara(Download)
import os
from amara.lib import inputsource
from xslt_support import _run_html, _run_xml
 
module_dirname = os.path.dirname(__file__)
 
def test_elem_attr_1():
    """`xsl:element` and `xsl:attribute` instantiation"""
    _run_html(
        source_xml = inputsource(os.path.join(module_dirname, 'addr_book1.xml')),

src/a/m/Amara-2.0.0/test/xslt/test_fallback.py   Amara(Download)
########################################################################
# test/xslt/test_fallback.py
 
from amara.xslt import XsltError
from xslt_support import _run_xml, _run_html
def test_fallback_3():
    """forwards-compatible example from XSLT 1.0 specification"""
    _run_html(
        source_xml = FALLBACK_SOURCE_XML,
        transform_uri = TRANSFORM_URI,

src/a/m/Amara-2.0.0/test/xslt/test_choose.py   Amara(Download)
########################################################################
# test/xslt/test_choose.py
 
import os
from xslt_support import _run_html
def test_choose_1():
    """`xsl:choose"""
    _run_html(
        source_xml = inputsource(os.path.join(module_name, "addr_book1.xml")),
        source_uri = "file:" + module_name + "/addr_book1.xml",

src/a/m/Amara-2.0.0/test/xslt/test_text.py   Amara(Download)
########################################################################
# test/xslt/test_text.py
 
from xslt_support import _run_html
 
def test_text_1():
    """<xsl:text> with disable-output-escaping='yes'"""
    _run_html(
        source_xml = """<noescape>dummy</noescape>""",

src/a/m/Amara-2.0.0/test/xslt/test_basics.py   Amara(Download)
########################################################################
# test/xslt/test_basics.py
import cStringIO
 
from xslt_support import _run_html, _run_xml
def test_basics_1():
    _run_html(FILE('addr_book1.xml'), FILE('addr_book1.xsl'), 
         """<html>
  <head>
    <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
def test_basics_2():
    _run_html(FILE('addr_book1.xml'),
         """<?xml version="1.0"?>
<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
def test_basics_3():
    _run_html(FILE('addr_book1.xml'),
         """<?xml version="1.0"?>
<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        <EMAIL>vxz@magog.ru</EMAIL>
    </ENTRY>
</ADDRBOOK>""", """<?xml version="1.0"?>
<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

src/a/m/Amara-2.0.0/test/xslt/test_message.py   Amara(Download)
import os
 
from xslt_support import _run_xml, _run_html, _compare_text
 
module_name = os.path.dirname(__file__)

src/a/m/Amara-2.0.0/test/xslt/test_if.py   Amara(Download)
#import os
from amara.lib import inputsource
from xslt_support import _run_xml, _run_html
from amara.test import file_finder