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-7-bit Path: g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.vmunix.org!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: ANNOUNCE: Avatox 1.0 is now available Date: Sat, 09 Sep 2006 13:21:27 +0100 Organization: Pushface Message-ID: References: <45018e97$0$17399$9b4e6d93@newsspool2.arcor-online.net> <45027b40@news.upm.es> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1157804488 4061 62.49.19.209 (9 Sep 2006 12:21:28 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 9 Sep 2006 12:21:28 +0000 (UTC) Cancel-Lock: sha1:o0/cgCL8K/AP+sR5WnqxQkvoQrA= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news2.google.com comp.lang.ada:6533 Date: 2006-09-09T13:21:27+01:00 List-Id: 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!