XIST

Software Screenshot:
XIST
Software Details:
Version: 5.13.1 updated
Upload Date: 20 Jul 15
Developer: LivingLogic AG
Distribution Type: Freeware
Downloads: 22

Rating: 1.0/5 (Total Votes: 1)

XIST is also a XML parser with a very simple and pythonesque tree API.

Every XML element type corresponds to a Python class and these Python classes provide a conversion method to transform the XML tree (e.g. into HTML). XIST can be considered 'object oriented XSLT'.

XIST was written as a replacement for the HTML preprocessor HSC, and borrows some features and ideas from it.

It borrows basic ideas (XML/HTML elements as Python objects) from the HTMLgen and HyperText applications.

What is new in this release:

  • The UL4 function repr now handles recursive lists/dicts similar to Python repr (i.e. it doesn't raise an exception for infinite recursion).
  • url.URL now handles filenames containing spaces correctly when converting between URLs and filenames.

What is new in version 5.13:

  • The UL4 function repr now handles recursive lists/dicts similar to Python repr (i.e. it doesn't raise an exception for infinite recursion).
  • url.URL now handles filenames containing spaces correctly when converting between URLs and filenames.

What is new in version 5.5.1:

  • ll.orasql now unterstands type bodies (so the script oracreate will output them).

What is new in version 5.4.1:

  • Use quoted printable encoding for the JSON attachment in the sisyphus failure email.

What is new in version 5.3:

  • xist.parse.Tidy can now pass the XML declaration and the doctype to the application (however internal DTD subsets will be ignored).

What is new in version 5.2.1:

  • Fixed a bug in one of the UL4 templates for sisyphus.

What is new in version 5.0:

  • The method checkvalid has been renamed to validate. It no longer calls warnings.warn itself, but is a generator that returns the warning objects. Furthermore the model objects now get passed the complete path instead of only the target node (this is used to implement HTML5's transparent content model).
  • Validating whether an attribute is allowed is now done in Attrs.validateattr. The default implementation yields warnings about undeclared local attributes. The HTML5 namespace extends this to also accept any attribute whose name starts with data- or aria-.
  • Node comparison now ignores the classes for elements, entities and processsing instructions, so that plain nodes compare equal to instances of Element, Entity or ProcInst subclasses as long as the name and content of the node matches.
  • ll.xist.parse.Tidy no longer has a skipbad argument.
  • Converter contexts now support string as keys (which must be hierarchical dot-separated names similar to Java package names (e.g. "org.example.project.handler") to avoid name collisions).
  • The docbook module has been updated to support DocBook 5.0.
  • URL objects are pickable now.
  • When whitespace is removed in the literal text of UL4 templates (via the keepws parameter), any initial spaces (before the first line feed) are now no longer removed.
  • If you have Cython installed and the environment variable LL_USE_CYTHON set, several modules will now be compiled into extension modules.
  • It's now possible to expose attributes and methods of objects to UL4 templates. Exposing attributes can be done by setting a class or instance attribute ul4attrs to a sequence of attribute names. Exposing methods can be done with the decorators ul4c.expose_method and ul4c.expose_generatormethod.
  • A new UL4 function list has been added. This function works like the Python function list, creating a copy of a sequence or materialzing an iterator.
  • A new UL4 function slice has been added. It works like itertools.slice, i.e. returning a slice from an iterator.
  • The function html.astext that converts an XIST tree containing HTML to plain text is now implemented in plain Python so it no longer requires a text mode browser. The function also got more configurable.

What is new in version 4.6:

  • ll.xist.parse.itertree now supports the same interface is the walk method.
  • A new function xfind.filter has been added that filters the output of walk or itertree against a Selector object.
  • The XIST parse events have been renamed: The "start*" events to "enter*" and the "end*" events to "leave*".

What is new in version 4.3.1:

  • Added a method values to UL4 for dictionaries.
  • Fixed a bug in ll.misc.SysInfo.user_shell.

What is new in version 4.3:

  • Two new UL4 functions have been added: isundefined returns whether the argument is the Undefined object or not. isdefined has the inverted logic, i.e. it returns True if the argument is not the Undefined object.
  • The characters CR and LF are no longer allowed in UL4 string constants. Furthermore the escape sequence \e is no longer supported.
  • All AST nodes for loading constants have been merged into a single class Const.

Requirements:

  • Python 2.5;
  • Python Imaging Library;
  • libxml2 and its Python wrapper (if you want to parse "broken" HTML);
  • elinks (if you want want to use the function ll.xist.ns.html.astext);
  • setuptools (if you want to install this package as an egg);
  • py.test (if you want to run the test suite)
  • C compiler supported by distutils, if you want to install the source distribution.

Similar Software

Comments to XIST

Comments not found
Add Comment
Turn on images!