Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <3E6E60B4.1010102@pobox.com> Date: Tue, 11 Mar 2003 17:18:28 -0500 From: Tom Roche Reply-To: Tom_Roche AT pobox DOT com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2b) Gecko/20021016 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: cygwinized XSL processor? (or sed for path transform?) Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Is there a cygwinized XSL processor? What I mean, why I ask: Occasionally I need to strip cruft out of a bunch (~1k) of xml files. Since they're distributed throughout a filesystem, and some additional processing is required, I use a bash script to get the input files. Feeding them to the processor should be trivial, but unfortunately the only command-line XSL processors I know about are Instant Saxon (from http://sourceforge.net/project/showfiles.php?group_id=29872 ) and Xalan (from http://xml.apache.org/xalan-j/ ). Instant Saxon is native windows, which is nice for this application, except that it chokes on the cygwin paths emitted by my script. Running Xalan from the commandline (like java org.apache.xalan.xslt.Process -in -xsl -out ) would involve running a java, which (I suspect) would also choke on cygwin paths. As a result, my script does a lot of path translations like cygpath="/g/eclipse/builds/20030311_1000-WB210-AD-V51D-W2/eclipse/plugins" winpath="g:\\eclipse\\builds\\20030311_1000-WB210-AD-V51D-W2\\eclipse\\plugins" and it doesn't iterate over the paths. (Not a big deal, but it offends my software aesthetics :-) If I had a cygwinized XSL processor I wouldn't hafta do this. Does anyone know where I can get one? Alternatively, if I had more sed chops, I could script the path transformation, but I don't know how to do that either. (Could someone tell me how to do that?) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/