ant-user mailing list archives

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

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"/>
     </xslt>
   <echo message="after test"/>
</target>

where newdemo.xsl is given by:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<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>
</xsl:stylesheet>

Stan Devitt

Mike Castle wrote:

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



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message