From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,473e6b129c2f30cd X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Date: Mon, 11 Sep 2006 09:58:38 +0200 From: Manuel Collado User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: ANNOUNCE: Avatox 1.0 is now available References: <45018e97$0$17399$9b4e6d93@newsspool2.arcor-online.net> <45027b40@news.upm.es> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 138.100.242.204 Message-ID: <4505172d@news.upm.es> X-Trace: 11 Sep 2006 09:58:37 +0100, 138.100.242.204 Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!switch.ch!news.rediris.es!news.upm.es!138.100.242.204 Xref: g2news2.google.com comp.lang.ada:6547 Date: 2006-09-11T09:58:38+02:00 List-Id: Simon Wright escribi�: > Manuel Collado writes: > >> What puzzles me is that the XML structure (nesting) doesn't follows >> the lexical Ada source structure. Example from avatox.adb --> >> avatox.adb.xml: >> >> >> >> >> > endCol="28"/> >> >> .... >> >> You can see that from (29,1) to (29,29) lexically >> contains from (29,6) to (29,28). But the latest is not >> nested inside the former. Instead, it appears as a sibling of it. > > Marc and I disagree on this one. My approach in asis2xml is to have > > > > > > Ada > Characters > > Handling > > > > but it would be just as sensible to have > > > > The XPATH expressions aren't that different: > > A_CLAUSE[A_WITH_CLAUSE] > with_clause > clause[@kind='with_clause'] > > It depends what would be most useful. As an example of where user > input would be good, what about that structure, > which does follow the lexical structure of the language, but imagine > the query to find all withs of Ada.Characters.Handling! Well, the // (descendant) axis of XPATH looks directly for inner nodes, skipping intermediate levels. -- Manuel Collado