<xsl:variable name="html-output-name"
select="(if(@index and @index eq 'true')
then concat($default-name, '.html')
else (),
@html-output-name,
@output-name,
$default-html)[1]" />
我看到“if”在做什么,但我不确定如何理解命令中的其余项目,然后是最后的 [1]。这加起来是“列表中的第一个非空项目吗?”