Did I find the right examples for you? yes no

All Samples(11)  |  Call(5)  |  Derive(0)  |  Import(6)
An XSLT processing engine (4XSLT).

Typical usage:

from Ft.Lib.Uri import OsPathToUri
from Ft.Xml import InputSource
from Ft.Xml.Xslt import Processor
# this is just one of several ways to create InputSources
styuri = OsPathToUri('/absolute/path/to/stylesheet.xslt')
srcuri = OsPathToUri('/absolute/path/to/doc.xml')(more...)

src/a/k/Akamu-0.7/lib/xslt/__init__.py   Akamu(Download)
from amara.xslt  import transform
from akara       import request, response, global_config
from amara.xslt.processor import processor as amara_processor
from amara.lib import inputsource
# from akamu.xslt.extensions import NS
    from amara.xpath.util import parameterize
    params = parameterize(params) if params else {}
    processor         = amara_processor(ignore_pis=True)#Processor.Processor()
    processor.manager = manager
    processor.registerExtensionModules(['akamu.xslt.extensions'])

src/a/m/Amara-2.0.0/lib/xslt/__init__.py   Amara(Download)
    from amara.xpath.util import parameterize
    from amara.xslt.result import streamresult, stringresult
    from amara.xslt.processor import processor
    params = parameterize(params) if params else {}
    proc = processor()

src/c/k/ckanext-0.1/ckanext/iso19139/reader.py   ckanext(Download)
from amara.xslt.processor import processor
from amara.lib import inputsource
 
from ordf.namespace import register_ns, Namespace
register_ns("dcat", Namespace("http://www.w3.org/ns/dcat#"))
def iso2graph(isouri):
    P = processor()
    xslt = inputsource(pkg_resources.resource_stream(__name__, "iso19139_rdf.xsl"))
    P.append_transform(xslt)
 

src/a/k/Akara-2.0.0a4/lib/transform/middleware.py   Akara(Download)
from amara.lib import inputsource
from amara.xpath.util import parameterize
from amara.xslt.processor import processor
from amara import sax
 

src/a/m/Amara-2.0.0/test/xslt/__init__.py   Amara(Download)
from amara.xpath import datatypes, util
from amara.xslt import XsltError, transform
from amara.xslt.processor import processor
 
# Defined to ignore this module in tracebacks
    def test_processor(self):
        P = processor()
        for transform in self.transform:
            P.append_transform(transform)
        parameters = self.parameters

src/a/m/Amara-2.0.0/test/xslt/xslt_support.py   Amara(Download)
from amara.xslt.processor import processor
from amara.lib import inputsource, treecompare
from amara.xpath import util
 
def _run(source_xml, transform_xml, expected, parameters,
         compare_method, source_uri=None, transform_uri=None,
         processor_kwargs={}):
    P = processor(**processor_kwargs)