comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Wright <simon@pushface.org>
Subject: Re: ANNOUNCE: Avatox 1.0 is now available
Date: Mon, 21 Aug 2006 21:59:17 +0100
Date: 2006-08-21T21:59:17+01:00	[thread overview]
Message-ID: <m2odudyfdm.fsf@grendel.local> (raw)
In-Reply-To: JaPEg.6886$Qf.5686@newsread2.news.pas.earthlink.net

This is excellent news. I think I shall still carry on with my own
asis2xml (under
http://gnat-asis.sourceforge.net/pmwiki.php/Main/ASIS2XML, no releases
as yet) for a while.

I took the view that <A_DEFINING_NAME/> would look better as
<defining_name/> throughout.

There are also some interesting choices about which aspects to map
into attributes and which into child elements, and indeed on the whole
mapping to be used.

Do you support multi-unit environments?

Do you think there'd be a future in offering at least the concept to
the ASIS team?

As a demo of the sort of thing one can do, we found it pretty
straightforward to generate a report on all the exception handlers in
our application which capture non-generated exceptions, so that we
could review whether the logging being done was appropriate. The XML
for the application was >50MB, but the performance was pretty
reasonable (of order a minute to generate the report; generating the
XML took rather longer).

The guts of the XSLT report script (not at all perfect, but good
enough, and excluding some extra rules for tasks) was

  <xsl:template match="*[@unit]" mode="handlers">
    <!-- Skip 'raise ColdFrame.Exceptions.*'. -->
    <xsl:if test=".//exception_handler
                  [not(raise_statement//identifier='ColdFrame'
                  and raise_statement//identifier='Exceptions')]">
      <tr>
        <td>
          <xsl:value-of select="@unit"/>
        </td>
        <td>
          <xsl:if test=".//exception_handler[not(raise_statement)]">
            <xsl:text>Yes</xsl:text>
          </xsl:if>
        </td>
      </tr>
    </xsl:if>
  </xsl:template>

which says "for every unit that has an exception handler in it at some
level of nesting that doesn't raise one of the generated exceptions,
output a table row containg the unit name and, if the exception
handler doesn't contain a raise statement, the word 'Yes'".



  parent reply	other threads:[~2006-08-21 20:59 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-17  0:58 ANNOUNCE: Avatox 1.0 is now available Marc A. Criley
2006-08-17  2:10 ` Jeffrey Creem
2006-08-18  8:03 ` Pascal Obry
2006-08-18  8:04 ` Pascal Obry
2006-08-18  8:05 ` Pascal Obry
2006-08-21 20:59 ` Simon Wright [this message]
2006-08-24  0:41   ` Marc A. Criley
2006-08-24  6:03     ` Simon Wright
2006-08-25  1:15       ` Marc A. Criley
2006-09-06 23:29       ` Randy Brukardt
2006-09-07 20:46         ` Simon Wright
2006-09-08  2:40           ` Randy Brukardt
2006-09-08 13:40             ` Georg Bauhaus
2006-09-09  8:28               ` Manuel Collado
2006-09-09 12:21                 ` Simon Wright
2006-09-11  7:58                   ` Manuel Collado
2006-09-09 18:56                 ` Marc A. Criley
2006-09-11  8:10                   ` Manuel Collado
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox