【发布时间】:2014-06-06 08:17:03
【问题描述】:
对于发送原子数据类型将使用like
transformer.SetParameter(new QName("", "", customXml), new XdmAtomicValue("true"));
如何将 XML/Node 作为参数从 C# 传递给 XSLT?
你能帮帮我吗
按照您的代码,它工作正常,但我只得到 xml 中的文本(我在参数中传递的内容)而不是节点
XSLT:
<xsl:param name="look-up" as="document-node()"/>
<xsl:template match="xpp:document">
<w:document xml:space="preserve">
<xsl:value-of select="$look-up"/>
</w:document>
</xsl:template>
XML
<?xml version="1.0" encoding="UTF-8"?>
<document version="1.0" xmlns="http://www.sdl.com/xpp">
//some tags
</document>
传递参数(xml)
<Job>
</id>
</Job>
【问题讨论】: