]> granicus.if.org Git - docbook-dsssl/commitdiff
Snapshot
authorNorman Walsh <ndw@nwalsh.com>
Sun, 7 Jul 2002 20:21:15 +0000 (20:21 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sun, 7 Jul 2002 20:21:15 +0000 (20:21 +0000)
xsl/extensions/xsltproc/python/.cvsignore [new file with mode: 0644]
xsl/extensions/xsltproc/python/README [new file with mode: 0644]
xsl/extensions/xsltproc/python/xslt.py

diff --git a/xsl/extensions/xsltproc/python/.cvsignore b/xsl/extensions/xsltproc/python/.cvsignore
new file mode 100644 (file)
index 0000000..aa2767a
--- /dev/null
@@ -0,0 +1 @@
+cwtest.xml cwtest.xsl
diff --git a/xsl/extensions/xsltproc/python/README b/xsl/extensions/xsltproc/python/README
new file mode 100644 (file)
index 0000000..a7cd356
--- /dev/null
@@ -0,0 +1,3 @@
+THIS IS A WORK IN PROGRESS
+
+IN PARTICULAR: IT DOES NOT WORK NOW!
index 5fb1ef4c8e93fac7a5bfc8371e299d3b7e522ff9..5f573bc6db755fdbe14d692f2d541b0cb8f8d2cf 100644 (file)
@@ -13,7 +13,7 @@ usage = "Usage: %s xmlfile.xml xslfile.xsl [outputfile] [param1=val [param2=val]
 
 xmlfile = None
 xslfile = None
-outfile = None
+outfile = "-"
 params  = {}
 
 try:
@@ -65,11 +65,8 @@ def adjustColumnWidths(ctx, nodeset):
     except:
         pass
 
-    node = libxml2.xmlCore(nodeset[0])
     print "called with nodeset: "
-    print nodeset[0].name
-    print node
-    print "---"
+    print nodeset
 
     return ""
 
@@ -89,6 +86,8 @@ doc = libxml2.parseFile(xmlfile)
 
 result = style.applyStylesheet(doc, params)
 
+style.saveResultToFilename(outfile, result, 0)
+
 style.freeStylesheet()
 doc.freeDoc()
 result.freeDoc()