Ant itself passes one xml per xslt run to the xsl script, so the xsl does only 
know the current one.

Jan 

> -----Ursprüngliche Nachricht-----
> Von: James Fuller [mailto:[EMAIL PROTECTED] 
> Gesendet: Dienstag, 25. März 2008 11:35
> An: Ant Users List
> Betreff: Re: How does Ant <xslt> accept 2 input files such 
> that xsl could differentiate them ?
> 
> Hello,
> 
> you could just use XSLT native functionality for this type of thing; I
> would imagine using the document() function.
> 
> if u need to procedurally pass in file names, just pass in via
> xsl:params (xslt task can be configured to pass in params).
> 
> of course I am assuming you are working with xml files.
> 
> hth, Jim Fuller
> 
> 
> On Tue, Mar 25, 2008 at 11:28 AM, Krzysieq <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> >  Can You show some of the bigger picture? From what I read, 
> the only thing
> >  that comes to my mind is that the xslt task, being a 
> file-based task,
> >  accepts nested fileset elements. In those, You can specify 
> exactly which
> >  files to treat with which xsl stylesheet. Am I even close 
> to understanding
> >  what You need?
> >
> >  Cheers,
> >  Chris
> >
> >  2008/3/22, Z W <[EMAIL PROTECTED]>:
> >
> >
> > >
> >  > Hi
> >  >
> >  > How do I make an ant <xslt> call that accepts 2 
> different input xml
> >  > files in different directories
> >  > such that the xsl could know which file with for-each to perform
> >  > calculations.
> >  >
> >  >
> >  > Inside y.xsl
> >  > <xsl:for-each select="/testResults/*[not(@label = 
> preceding::*/@label)]">
> >  >
> >  > From Ant x.xml file
> >  > <xslt style="detail.xsl"
> >  >                        in="C:\test_report\test_input_3.jtl"
> >  >                        destdir="C:\test_report"
> >  >                        basedir="C:\test_report"
> >  >                        out="C:\test_input_3.html"
> >  >                        force="true">
> >  >                        <param name="currentJTL"
> >  > expression="C:\test_report\test_input_3.jtl"/>
> >  >                        <param name="previousJTL"
> >  > expression="C:\test_input.jtl"/>
> >  >                        <param name="curBuildVersion"
> >  > expression="${currentBuildVersion}"/>
> >  >                        <param name="pBuildVersion"
> >  > expression="${previousBuildVersion}"/>
> >  >                        <param name="latestDir"
> >  > expression="${Detail_latestTPSDir}"/>
> >  >                        <classpath
> >  > location="C:\apache-ant-1.7.0\lib\saxon9.jar" />
> >  >
> >  > Is there a way where I could include with for-each specifying to
> >  > include a specific file.
> >  > I want to make use of currentJTL and previousJTL as you 
> can see above
> >  > in Ant xml file but
> >  > the xsl could only interpret file from
> >  > in="C:\test_report\test_input_3.jtl".
> >  >
> >  > thank you for your help
> >  >
> >  > 
> ---------------------------------------------------------------------
> >  > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >  > For additional commands, e-mail: [EMAIL PROTECTED]
> >  >
> >  >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to