当我尝试使用 xslt 使用带有“XML 任务”的 SSIS 转换 xml 文件时遇到此错误:
[Tâche XML] Erreur:« 出现以下错误消息:“La feuille de style doit startr par un élément 'xsl:stylesheet' ou 'xsl:transform' ou par un élément de résultat littéral qui a un属性 'xsl:version',前缀 'xsl' 标识符 l'espace de noms 'http://www.w3.org/1999/XSL/Transform'。”。
这是XLS文件
***<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<RLUEx>
<xsl:for-each select ="RLUEx">
<RL0101Ax><xsl:value-of select="RL0101/RL0101x/RL0101Ax"/></RL0101Ax>
</xsl:for-each>
</RLUEx>
</xsl:template>
</xsl:stylesheet>***
如您所见,它以错误消息中要求的 xsl:stylesheet 开头