[Zope3-checkins] CVS: zopeproducts/xml/interfaces - __init__.py:1.1 xslt.py:1.1

Philipp von Weitershausen philikon@philikon.de
Fri, 20 Jun 2003 11:11:41 -0400


Update of /cvs-repository/zopeproducts/xml/interfaces
In directory cvs.zope.org:/tmp/cvs-serv15767/xml/interfaces

Added Files:
	__init__.py xslt.py 
Log Message:
Moved the xml_examples, xslt, xslt_examples and xmldom products to one
xml product.


=== Added File zopeproducts/xml/interfaces/__init__.py ===
# this is a package 


=== Added File zopeproducts/xml/interfaces/xslt.py ===
##############################################################################
#
# Copyright (c) 2003 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""
$Id: xslt.py,v 1.1 2003/06/20 15:11:40 philikon Exp $
"""

from zope.interface import Interface

class XSLTError(Exception):
    pass

class IXSLTTransformer(Interface):
    """
    Transforms XML using XSLT
    """

    def tranform(xslt, xml):
        """
        Transforms xml according to xslt. Both xml and xslt have to implement
        IXMLSource. The result will also be an IXMLSource.
        """

class IXSLTSheet(Interface):
    """
    An XSLT sheet
    """

    def __call__(xml):
        """
        Transforms xml which is an IXMLSource
        """