�ɲɾ�����ӯ�����һ��ˣ��������С���˴��ͣ�������P���ҹ��ñ˽��ά�Բ��������˸߸ԣ�������ơ��ҹ��ñ�����ά�Բ���ˡ���˳^�ӣ������ӡ� ���ͯj�ӣ��ƺ���ӣ� ? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!readme.txt000064400000006110152526476240006555 0ustar00ISO SCHEMATRON 2009 XSLT implementation by Rick Jelliffe with assistance from members of Schematron-love-in maillist. 2009-03-18 Two distributions are available. One is for XSLT1 engines. The other is for XSLT2 engines, such as SAXON 9. This version of Schematron splits the process into a pipeline of several different XSLT stages. 1) First, preprocess your Schematron schema with iso_dsdl_include.xsl. This is a macro processor to assemble the schema from various parts. If your schema is not in separate parts, you can skip this stage. 2) Second, preprocess the output from stage 1 with iso_abstract_expand.xsl. This is a macro processor to convert abstract patterns to real patterns. If your schema does not use abstract patterns, you can skip this stage. 3) Third, compile the Schematron schema into an XSLT script. This will typically use iso_svrl_for_xslt1.xsl or iso_svrl_for_xslt2.xsl (which in turn invoke iso_schematron_skeleton_for_xslt1.xsl or iso_schematron_skeleton_for_saxon.xsl) However, other "meta-styleseets" are also in common use; the principle of operation is the same. If your schema uses Schematron phases, supply these as command line/invocation parameters to this process. 4) Fourth, run the script generated by stage 3 against the document being validated. If you are using the SVRL script, then the output of validation will be an XML document. If your schema uses Schematron parameters, supply these as command line/invocation parameters to this process. The XSLT2 distribution also features several next generation features, such as validating multiple documents. See the source code for details. Schematron assertions can be written in any language, of course; the file sch-messages-en.xhtml contains the diagnostics messages from the XSLT2 skeleton in English, and this can be used as template to localize the skeleton's error messages. Note that typically programming errors in Schematron are XPath errors, which requires localized messages from the XSLT engine. ANT --- To give an example of how to process a document, here is a sample ANT task. README.rst000064400000005552152526476240006257 0ustar00What is lxml? ============= lxml is the most feature-rich and easy-to-use library for processing XML and HTML in the Python language. It's also very fast and memory friendly, just so you know. For an introduction and further documentation, see `doc/main.txt`_. For installation information, see `INSTALL.txt`_. For issue tracker, see https://bugs.launchpad.net/lxml Support the project ------------------- lxml has been downloaded from the `Python Package Index`_ millions of times and is also available directly in many package distributions, e.g. for Linux or MacOS-X. .. _`Python Package Index`: https://pypi.python.org/pypi/lxml Most people who use lxml do so because they like using it. You can show us that you like it by blogging about your experience with it and linking to the project website. If you are using lxml for your work and feel like giving a bit of your own benefit back to support the project, consider sending us money through PayPal that we can use for fixing bugs in the software and improving its features and documentation. Please read the Legal Notice below, at the bottom of this page. Thank you for your support. .. class:: center |Donate|_ .. _Donate: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=R56JE3VCPDA9N Please `contact Stefan Behnel `_ for other ways to support the lxml project, as well as commercial consulting, customisations and trainings on lxml and fast Python XML processing. .. |Donate| image:: https://lxml.de/paypal_btn_donateCC_LG.png :width: 160 :height: 47 :alt: Donate to the lxml project .. _`doc/main.txt`: http://lxml.de/ .. _`INSTALL.txt`: http://lxml.de/installation.html `Travis-CI `_ and `AppVeyor `_ support the lxml project with their build and CI servers. Jetbrains supports the lxml project by donating free licenses of their `PyCharm IDE `_. Legal Notice for Donations -------------------------- Any donation that you make to the lxml project is voluntary and is not a fee for any services, goods, or advantages. By making a donation to the lxml project, you acknowledge that we have the right to use the money you donate in any lawful way and for any lawful purpose we see fit and we are not obligated to disclose the way and purpose to any party unless required by applicable law. Although lxml is free software, to the best of our knowledge the lxml project does not have any tax exempt status. The lxml project is neither a registered non-profit corporation nor a registered charity in any country. Your donation may or may not be tax-deductible; please consult your tax advisor in this matter. We will not publish or disclose your name and/or e-mail address without your consent, unless required by applicable law. Your donation is non-refundable. ZopePublicLicense.txt000064400000004476152531774150010711 0ustar00Zope Public License (ZPL) Version 2.0 ----------------------------------------------- This software is Copyright (c) Zope Corporation (tm) and Contributors. All rights reserved. This license has been certified as open source. It has also been designated as GPL compatible by the Free Software Foundation (FSF). Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions in source code must retain the above copyright notice, this list of conditions, and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions, and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name Zope Corporation (tm) must not be used to endorse or promote products derived from this software without prior written permission from Zope Corporation. 4. The right to distribute this software or to use it for any purpose does not give you the right to use Servicemarks (sm) or Trademarks (tm) of Zope Corporation. Use of them is covered in a separate agreement (see http://www.zope.com/Marks). 5. If any files are modified, you must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. Disclaimer THIS SOFTWARE IS PROVIDED BY ZOPE CORPORATION ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ZOPE CORPORATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. This software consists of contributions made by Zope Corporation and many individuals on behalf of Zope Corporation. Specific attributions are listed in the accompanying credits file. LICENSES.txt000064400000002752152531774150006532 0ustar00lxml is copyright Infrae and distributed under the BSD license (see doc/licenses/BSD.txt), with the following exceptions: Some code, such a selftest.py, selftest2.py and src/lxml/_elementpath.py are derived from ElementTree and cElementTree. See doc/licenses/elementtree.txt for the license text. lxml.cssselect and lxml.html are copyright Ian Bicking and distributed under the BSD license (see doc/licenses/BSD.txt). test.py, the test-runner script, is GPL and copyright Shuttleworth Foundation. See doc/licenses/GPL.txt. It is believed the unchanged inclusion of test.py to run the unit test suite falls under the "aggregation" clause of the GPL and thus does not affect the license of the rest of the package. The isoschematron implementation uses several XSL and RelaxNG resources: * The (XML syntax) RelaxNG schema for schematron, copyright International Organization for Standardization (see src/lxml/isoschematron/resources/rng/iso-schematron.rng for the license text) * The skeleton iso-schematron-xlt1 pure-xslt schematron implementation xsl stylesheets, copyright Rick Jelliffe and Academia Sinica Computing Center, Taiwan (see the xsl files here for the license text: src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/) * The xsd/rng schema schematron extraction xsl transformations are unlicensed and copyright the respective authors as noted (see src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl and src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl)