ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stan Devitt <>
Subject Re: XSLT with entities and therefore DOCTYPE
Date Wed, 10 Dec 2003 05:10:36 GMT

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.

<target name="xslttest">
   <echo message="before test"/>
   <xslt in="build.xml" out="results.txt" style="newdemo.xsl">
         <param name="type" expression="echo"/>
   <echo message="after test"/>

where newdemo.xsl is given by:

<?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)"/>.

Stan Devitt

Mike Castle wrote:

>>>Or would anyone know how to hammer xsl:variables into doing what I want?

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

View raw message