From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <2c54ec43046f6cb5d73b3da3aec38a85@plan9.bell-labs.com> From: David Presotto To: 9fans@cse.psu.edu Subject: Re: [9fans] EPIA platform from linuxbios In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-rciakwxtddvcixmqnzumaxlxdb" Date: Mon, 3 Nov 2003 11:31:01 -0500 Topicbox-Message-UUID: 7df8ed62-eacc-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-rciakwxtddvcixmqnzumaxlxdb Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit It's a shame that there's no awk-equivalent language for XML. In spite of all the promise of XML, at least for simple things it's usually much easier transform simple text files of data than it is the same data when stored as XML. I'm getting there... --upas-rciakwxtddvcixmqnzumaxlxdb Content-Type: message/rfc822 Content-Disposition: inline Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Mon Nov 3 11:22:43 EST 2003 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Mon Nov 3 11:22:40 EST 2003 Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id 44C1519B1A; Mon, 3 Nov 2003 11:22:26 -0500 (EST) Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.23.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 9C25119BA6; Mon, 3 Nov 2003 11:22:07 -0500 (EST) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id ADD8319B1A; Mon, 3 Nov 2003 11:21:30 -0500 (EST) Received: from mercury.bath.ac.uk (mercury.bath.ac.uk [138.38.32.81]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 9787F19AF5 for <9fans@cse.psu.edu>; Mon, 3 Nov 2003 11:21:18 -0500 (EST) Received: from news by mercury.bath.ac.uk with local (Exim 3.12 #1) id 1AGhRn-00036A-00 for 9fans@cse.psu.edu; Mon, 03 Nov 2003 16:20:55 +0000 Received: from GATEWAY by bath.ac.uk with netnews for 9fans@cse.psu.edu (9fans@cse.psu.edu) To: 9fans@cse.psu.edu From: John Kodis Message-ID: Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) References: , Subject: Re: [9fans] EPIA platform from linuxbios Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Mon, 3 Nov 2003 16:20:50 GMT X-Spam-Status: No, hits=-1.0 required=5.0 tests=EMAIL_ATTRIBUTION,QUOTED_EMAIL_TEXT version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) In article , David Presotto wrote: > I think I'm writing XSLT and don't know it. I needed to transform > some XML to another form and wanted to use AWK. I found it > inadequate and now I'm writing my own thing. I think I'm an idiot > but I looked at XSLT and ran away screaming. It's a shame that there's no awk-equivalent language for XML. In spite of all the promise of XML, at least for simple things it's usually much easier transform simple text files of data than it is the same data when stored as XML. If I were facing a similar problem, I'd consider writing a simple lexer that could convert well-formed XML into lisp sexprs, use lisp or scheme to do the transformation, and then reverse-munge the resulting sexprs back into XML. -- John Kodis Goddard Space Flight Center kodis@mail630.gsfc.nasa.gov Greenbelt, Maryland, USA --upas-rciakwxtddvcixmqnzumaxlxdb--