ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramu Sethu" <sra...@yahoo.co.in>
Subject Re: Clarification in xslt task
Date Fri, 02 Nov 2007 06:43:51 GMT
Hi Jan
I think i didn't mention my problem clearly

check.xml transforms raw.xml to html report by using

<xslt in="raw.xml" style="checkstyle.xsl" out="output.txt">
// assign some property
</xslt>

I tried the above code to transform my aggregated junit output xml (
Testsuites.xml) to html output using

<xslt in="Result\etc\TESTS-TestSuites.xml" style="Result\etc\junit-
frames.xsl" out="Result\etc\output.txt">
</xslt>
This is not working

Is there any diffrence between the above two code blocks?
Am i missing something?


On 11/2/07, Jan.Materne@rzf.fin-nrw.de <Jan.Materne@rzf.fin-nrw.de> wrote:
>
> AFAIK there are no transformations of junit tests in check.xml (only via
> <import>ed from the build.xml).
> In check.xml Checkstyle reports are transformed to several output formats
> (text, html, ...)
>
> For writing your own stylesheets you could consult
>   http://svn.apache.org/repos/asf/ant/core/trunk/src/etc/junit-frames.xsl
>
> http://svn.apache.org/repos/asf/ant/core/trunk/src/etc/junit-noframes.xsl
>
>
> Jan
>
> >-----Urspr√ľngliche Nachricht-----
> >Von: sramhu@gmail.com [mailto:sramhu@gmail.com] Im Auftrag von
> >Ramu Sethu
> >Gesendet: Donnerstag, 1. November 2007 08:38
> >An: Ant Users List
> >Betreff: Clarification in xslt task
> >
> >Hi all
> >
> >We are using junitreport task in our project. it goes like this
> ><junitreport >
> >    <fileset dir="Result\etc" includes="TEST-*.xml">
> >     </fileset>
> >    <report format="frames" styledir="Result\etc" todir="Result">
> >    </report>
> > </junitreport>
> >
> >I need to use the same aggreated xml for another xslt transform
> >so i thought of using <xslt> task.
> >Had a look at check.xml in ant source code
> >and tried like this
> >
> ><xslt in="Result\etc\TESTS-TestSuites.xml" style="Result\etc\junit-
> >frames.xsl"
> > out="Result\etc\output.txt">
> ></xslt>
> >I was expecting the same output of junit report.... But i din
> >get any out
> >put.
> >Trasformation got over in 3 secs. Only empty output.txt is created.
> >No html page is created.
> >
> >Can anybody provide some help on this?
> >
> >
> >
> >
> >--
> >Thank you
> >Ramu S
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


-- 
Thank you
Ramu S

  If A is success in life, then A equals x plus y plus z. Work is x; y is
play; and z is keeping your mouth shut.
- Albert Einstein

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message