![]() |
||||||||||||||||||
| |
||||||||||||||||||
|
CodeWarrior ToolsProperty List to PLC ConversionDownload version 1.0 (30KB) plist2plc.xsl is a XSLT Stylesheet that transforms an Mac OS X XML property list (.plist) file into a Metrowerks CodeWarrior Property List Compiler (.plc) source file. I created this stylesheet to aid in converting software from XCode to CodeWarrior. To use the software, you need a property list to convert. First, build your XCode project, and then locate the resulting Info.plist file in your built application's package/bundle. What You'll NeedTo use plist2plc.xls, you'll need an XSLT processor. There are several to choose from. I describe two ways to run use plist2plc.xsl here:
You should be able to use any XSLT processor -- but I've only tested it with the following processors. Libxslt From the Command LineThe Libxslt XSL processor is part of the GNOME project. You can download a pre-built version of libxslt for Mac OS X here. Follow the instructions on that web page to install the xslt processor. Make sure you install the optional xsltproc command line tool. After installing libxslt and the xsltproc command line tool, you can convert a Property List file with a command like this (this all presumes that plist2plc.xsl is located on your Desktop): % xsltproc ~/Desktop/plist2plc.xsl Info.plist > info.plc Xalan-C From AppleScriptWe offer a freeware version of the Apache Xalan-C XSLT processor packaged as an AppleScript Scripting Addition called XSLT Tools. Download and installation instructions are available here. Once XSLT Tools is installed, you can use the droplet included with plist2plc.xsl. Anytime you want to convert a .plist file to a .plc file, simply drag a .plist file onto the Convert To .plc applet using the Finder (this all presumes that the Convert To .plc applet and the plist2plc.xsl files are in the same folder). |
|||||||||||||||||