A quick (2 minute) look at the XSLTProcess.java file (implementation for
style/XSLT task) doesn't answer this question.

However, reading through the Ant style docs does indicate that there
probably should be support provided for direct param passing into the
NAnt style task.

It would work something like this:
<style...>
        <param name="file" value="${file}"/> <!-- nant property value
pass -->
        <param name="whatToSay" value="hello"/> <!-- const string -->
        <param .../> <!-- more stuff -->
</style>

Then you could use the XPath variable called 'file' by doing a $file in
your XPath statement from your xsl file.

        <xsl:value-of select="$file"/>


Just to be clear. This feature would allow you to specify parameters to
the xsl transformation via a <param> child under the style task.

Would that solve your problem?

Is this a good general solution?

[snip]



-------------------------------------------------------
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