[XML-SIG] ANN: XSL-Pattern (and minor DOM patch)

Dieter Maurer dieter@handshake.de
Fri, 15 Jan 1999 22:57:19 +0100

This is a multi-part MIME message.
Content-Type: text/plain

On top of our PyDom, I have implemented XSL-Pattern, the
pattern sublanguage of the XSL working draft (16-December-1998).

Patterns are used extensively in the XSL transformation
language and its control structures.
They can be used outside XSL, too, for e.g. querying/selecting/matching
parts of HTML/SGML/XML documents.

To build the pattern parser, I have used Scott Hassan's PyBison

More information and download at

A small patch to "xml.dom.core" was needed (attached) to
fix a missing "len(...)" in the DOMs attribute handling.


Content-Type: application/x-patch; name="attr.pat"
Content-Description: Patch to "xml.dom.core" fixing missing "len(...)"

--- :core.py-1  Tue Dec 29 14:59:35 1998
+++ core.py     Tue Jan 12 21:38:25 1999
@@ -203,7 +203,7 @@

     def values(self):
         L = self.data.values()
-        for i in range(L):
+        for i in range(len(L)):
             n = L[i]
             L[i] = NODE_CLASS[ n.type ](n, None, self._document )
         return L