DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22044>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22044 style-task and undefined parameters ------- Additional Comments From [EMAIL PROTECTED] 2003-08-04 10:54 ------- Ok, I did a bigger test: build.xml ------------------------------------- <?xml version="1.0" encoding="ISO-8859-1"?> <project name="test" basedir="." default="main"> <target name="main"> <!-- Define a property for later use --> <property name="myparam" value="This is a test."/> <!-- Do the test --> <style in="test.xml" style="test.xsl" out="out.xml"> <!-- xsl-parameter with a defined value --> <param name="another" expression="Hello World"/> <!-- xsl-parameter with a property as value --> <param name="myparam" expression="${myparam}"/> <!-- xsl-parameter which is not set --> <!-- <param name="notused" expression="notused"/> --> </style> <!-- Prints the result --> <concat> <filelist dir="." files="out.xml"/> </concat> </target> </project> test.xml ------------------------------------- <test/> test.xsl ------------------------------------- <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"> <!-- get the xsl-parameter --> <xsl:param name="myparam">mymaram default value</xsl:param> <xsl:param name="another">another default value</xsl:param> <xsl:param name="notused">notused default value</xsl:param> <!-- use the xsl-parameter --> <xsl:template match="/"> myparam: '<xsl:value-of select="$myparam"/>' another: '<xsl:value-of select="$another"/>' notused: '<xsl:value-of select="$notused"/>' </xsl:template> </xsl:stylesheet> ant output ------------------------------------- C:\tmp\anttests\xmlparameter2>ant Ant-Home: d: Java-Home: c:\seu\jdk142 Buildfile: build.xml main: [style] Processing C:\tmp\anttests\xmlparameter2\test.xml to C:\tmp\anttests\xmlparameter2\out.xml [style] Loading stylesheet C:\tmp\anttests\xmlparameter2\test.xsl [concat] <?xml version="1.0" encoding="UTF-8"?> [concat] myparam: 'This is a test.' [concat] another: 'Hello World' [concat] notused: 'notused default value' BUILD SUCCESSFUL Total time: 0 seconds So what´s wrong in your opinion? Please send an example. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]