[英]injecting <xsl:param> into <command>
I have <xsl:param name="file"/>
at the top of my XSLT file. 我的XSLT文件顶部有<xsl:param name="file"/>
。 I have a section <Command>
, that is supposed to create a file with the name given in <param>
(file_name). 我有一个<Command>
部分,该部分应该使用<param>
(file_name)中给定的名称创建一个文件。 I tried 我试过了
<Command>echo. > $file</Command>
but it creates a file called $file. 但它会创建一个名为$ file的文件。
How to do it correctly? 如何正确做?
尝试<Command> echo > <xsl:value-of select="$file"/></Command>
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.