From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: mark.d.witmer@gmail.com Newsgroups: gmane.lisp.guile.user Subject: Re: Guile XCB Date: Tue, 18 Jun 2013 09:54:43 -0700 Message-ID: <8761xbz7e4.fsf@mark-desktop.PK5001Z> References: <8738sgje14.fsf@mark-desktop.PK5001Z> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1371574457 17862 80.91.229.3 (18 Jun 2013 16:54:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Jun 2013 16:54:17 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jun 18 18:54:18 2013 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UozAg-0000tI-29 for guile-user@m.gmane.org; Tue, 18 Jun 2013 18:54:18 +0200 Original-Received: from localhost ([::1]:44216 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UozAf-00033Z-45 for guile-user@m.gmane.org; Tue, 18 Jun 2013 12:54:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UozAU-0002zq-5S for guile-user@gnu.org; Tue, 18 Jun 2013 12:54:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UozAR-0008FT-Ey for guile-user@gnu.org; Tue, 18 Jun 2013 12:54:06 -0400 Original-Received: from mail-pa0-x22e.google.com ([2607:f8b0:400e:c03::22e]:33253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UozAR-0008FL-8R for guile-user@gnu.org; Tue, 18 Jun 2013 12:54:03 -0400 Original-Received: by mail-pa0-f46.google.com with SMTP id fa11so4204228pad.19 for ; Tue, 18 Jun 2013 09:54:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:newsgroups:cc:subject:references:date:message-id:user-agent :cancel-lock:in-reply-to:mime-version:content-type:posted-to; bh=NSRrjRolFYFE9+kCIPHQv3vjs5cxfzU+xxMHRXECLSw=; b=Es4SlE7+VHtYXkjHHUKkqRDHevFcKh+8Q6kV9UyPAsFvNCNRUQ06CjMzXFnsxJEV0G dQ+RcYcyJ7DTDa5cSB9AJUtlAlb4+R5P5toYibF6disFHB3uBDbrJvo5pan0bhAdIgO/ UPW5Aq98KH4O2OWocZeuIiES2owlc9AOPdv267hDp+fmkmd0nRXsHtK3VSe/eLNE8QLY 5vXTRKSRIcCdw6IfD/XyQ6HYknKs2KFCr99ciPUCFXzgpKd7laBcjEOihxd56KLGhGaX CyhtoNVBY5JjdogpW1lobz/F0u4tC5ifP/MkWGrsOiCrzUoelHG14p7N1uzgvebtKZab sJLQ== X-Received: by 10.68.111.228 with SMTP id il4mr18211044pbb.134.1371574442364; Tue, 18 Jun 2013 09:54:02 -0700 (PDT) Original-Received: from localhost (174-21-131-23.tukw.qwest.net. [174.21.131.23]) by mx.google.com with ESMTPSA id vz8sm20415668pac.20.2013.06.18.09.54.00 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 18 Jun 2013 09:54:01 -0700 (PDT) Original-Newsgroups: gmane.lisp.guile.user User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:NYKlKESLHT9cCPFigJ9DMfcJ3yY= In-Reply-To: (Stefan Israelsson Tampe's message of "Tue, 18 Jun 2013 17:43:42 +0200") Posted-To: gmane.lisp.guile.user X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c03::22e X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10464 Archived-At: The following message is a courtesy copy of an article that has been posted to gmane.lisp.guile.user as well. Stefan Israelsson Tampe writes: > Hi Mark! > > Nice tool! > > A bit off topic but maybe something that is perhaps useful in this > project, is there any scheme framework > centered around the scheme xsd specification to validate and translate > data. > > If not, I could help. I'm wanting to learn that technology > and could in the mean time code something useful for > all to enjoy > > If I would do that I would combine the guile module system and > xml namespaces an look at code that executes to a sxml-similar > representation. > > Transfoming xml and parsing xml would mean that one uses syntax-parse, > syntax-rules > etc.. > > WDYT > > /Stefan > That's a cool idea. sxml-match provides a pattern-matching library for xml with a way of binding variables to values extracted from the sxml. Unlike xsd, however, it's missing a convenient way to constrain the number of a particular child-element in some node (beyond specifying 0, 1, or many), and a way to check the type of data stored inside a node. I had to write a few functions to do that stuff. I could see an augmented version of sxml-match being useful as Scheme-friendly xsd alternative. -- Mark Witmer