ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (Mike Castle)
Subject Re: XSLT with entities and therefore DOCTYPE
Date Wed, 10 Dec 2003 22:26:33 GMT
In article <>,
Stan Devitt  <> wrote:
>By your comment about 80 character paths,
>I kind of assume you have ruled out something
>simple like the following which at least gives
>you parameterized counting of the sort you
>seem to be testing.

I think I have ruled it out.  But I certainly would not be surprised that I
was wrong for doing so.

><?xml version="1.0" encoding="UTF-8"?>
><xsl:stylesheet version="1.0"
><xsl:param name="type" select="'DEFAULT_VALUE'"/>
>  <xsl:template match="/">
>        <xsl:number value="count(/project/target/*[local-name()=$type])"/>,
>        <xsl:number value="count(/project/target/echo)"/>.
>  </xsl:template>

Ok, that looks good for something like ``[test]]'' but what I really need
is a predicate that looks like:

LogRecord[@severity='MFATAL' or @severity='FATAL' or contains(text(),'Exception')]

And I'm not using it just as the level of a simple count() either, but
actually need that whole string of characters in mulitple places.  Hence,
my use of entities.

     Mike Castle
    We are all of us living in the shadow of Manhattan.  -- Watchmen
fatal ("You are in a maze of twisty compiler features, all different"); -- gcc

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message