Just to clarify, I am using the style task in the build. The style
attribute of the style task is the xsl file which includes the document
function.
For example, I have the following line in my build.
<style style="contents.xsl"  basedir="${src.dir}\xml"  in="contents.xml"
destdir="${build.dir}" />
and the next line is in contents.xsl.
<xsl:apply-templates select="document($file)//*[@name=$name]"/>
Thanks a lot.

Regards,

Qing Chang



                                                                                       
                                                          
                      "Scott Hernandez"                                                
                                                          
                      <[EMAIL PROTECTED]>                  To:       
<[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>                 
                      Sent by:                           cc:                           
                                                          
                      [EMAIL PROTECTED]        Subject:  RE: [Nant-users] 
using document function in Nant                              
                      ceforge.net                                                      
                                                          
                                                                                       
                                                          
                                                                                       
                                                          
                      10/31/2002 04:55 PM                                              
                                                          
                                                                                       
                                                          
                                                                                       
                                                          




Is this something you are trying to do with a style task (I assume so
based on your previous posts)? Or are you doing something to the build
file?

Please clarify what you are trying to do so we can better help you.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:nant-users-
> [EMAIL PROTECTED]] On Behalf Of [EMAIL PROTECTED]
> Sent: Thursday, October 31, 2002 1:45 PM
> To: [EMAIL PROTECTED]
> Subject: [Nant-users] using document function in Nant
>
> Hi,
> I want to use the document function as the following line. It works
with
> Ant, but does not with Nant. I tried relative and absolute paths with
the
> file name with no luck. Does anyone know how to make it work with
Nant?
> Thanks a lot.
> <xsl:apply-templates select="document($file)//*[@name=$name]"/> (file
and
> name are two predefined variables)
>
> Regards,
>
> Qing Chang
>
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: Influence the future
> of Java(TM) technology. Join the Java Community
> Process(SM) (JCP(SM)) program now.
> http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users



-------------------------------------------------------
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users







-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to