[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.
--------------FC5583E803777E8ABB8C4995
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
package.

More information and download at
	URL:http://www.handshake.de/~dieter/pyprojects/xslpattern.html


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


Dieter

--------------FC5583E803777E8ABB8C4995
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




--------------FC5583E803777E8ABB8C4995--