|
From: Steve B. <Ste...@zv...> - 2002-02-28 12:18:19
|
Dear TclXML Developers,
For those that might be interested, I've just committed my
latest changes to the TclDOM and TclXSLT modules. These changes
provide wrappers for the Gnome libxml2 and libxslt libraries.
Both TclDOM-libxml2 and TclXSLT assign the C structures used
by the Gnome libraries to the internal representation of a
Tcl object. This allows high-performance access to the
structures.
Here's a quick example:
package require dom
package require xslt
set sourcedoc [dom::libxml2::parse <Test/>]
set styledoc [dom::libxml2::parse {
<xsl:stylesheet version='1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:template match='/'>
It works!
</xsl:template>
</xsl:stylesheet>
}]
set result [xslt::transform $styledoc $sourcedoc]
puts [dom::libxml2::serialize $result]
Output:
<?xml version='1.0'?>
It works!
I'll do an alpha release next week.
Enjoy,
Steve Ball
--
Steve Ball | XSLT Standard Library | Training & Seminars
Zveno Pty Ltd | Web Tcl Complete | XML XSL Schemas
http://www.zveno.com/ | TclXML TclDOM | Tcl, Web Development
Ste...@zv... +---------------------------+---------------------
Ph. +61 2 6242 4099 | Mobile (0413) 594 462 | Fax +61 2 6242 4099
|