我正在使用 XslCompiledTransform.Load 并且每次收到错误消息时:
'version' cannot be a child of the 'Transformation' element
这是样式表:
<Transformation><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="urn:my-scripts"
xmlns:exsl="http://exslt.org/common" extension-element-prefixes="exsl"><xsl:output
method="xml" /><xsl:template match="node() | @*"><xsl:copy><xsl:apply-templates
select="@* | node()" /></xsl:copy></xsl:template><xsl:template match="testlist"><xsl:copy>
<xsl:apply-templates select="test"><xsl:sort select="requestor/code" /></xsl:apply-
templates></xsl:copy></xsl:template></xsl:stylesheet></Transformation>
如果我删除版本,我会收到错误:缺少强制属性“版本” 是否因为我在标签“转换”中使用样式表而收到错误?