Cocoatron 1.0 Beta 1 Released
![]()
Cocoatron is a collection of Automator Actions that allows you to visually create XML Processing Pipelines.
Implemented using libxml2, libxslt, libexslt, and NSXML, Cocoatron suppors DTD, W3C XML Schema, RELAX NG, XSLT 1.0, XQuery, and XInclude.
Cocoatron consists of six Automator Actions (pipeline stages):
- Load XML Documents
- Process XIncludes of XML Documents
- Validate XML Documents (DTD, XSD, RNG)
- Transform XML Documents (XSLT)
- Query XML Documents (XQuery)
- Serialize XML Documents
Inspired by XProc and SXPipe, Cocoatron is a simple way to create XML pipelines without writing a line of custom ‘glue’ code in Java, C++ or other languages.
Much like SXPipe, these actions deal strictly with XML Infosets. Under the hood, the XML Infosets created and returned by Cocoatron Actions are actually libxml2 xmlDocPtr structs contained in Cocoa object wrappers. An Infoset is constructed using Load XML Documents and serialized back to text using Serialize XML Documents. To create pipleines, place other, built-in Apple Actions before and after these two such as Get Specified Finder Items or New TextEdit Document.
Note this is a beta release ;). There is a known bug when using Load XML Documents to load documents at remote URLs using Get Specified URLs. Currently, I’m thinking this is an Automator bug, but I’m still investigating. Meanwhile, you can load local XML Documents using Get Specified Finder Items.
Check it out and report bugs! Nite, nite.
About this entry
You’re currently reading “Cocoatron 1.0 Beta 1 Released,” an entry on Todd Ditchendorf’s Blog.
- Published:
- 11.22.06 / 11pm
- Category:
- AppleScript, Cocoa, Mac OS X, NSXML, Objective-C, XML, XML Schema, XPath, XQuery, XSLT, libxml2
No comments
Jump to comment form | comments rss [?] | trackback uri [?]