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>
バージョンを削除すると、次のエラーが表示されます:必須属性「バージョン」 がありません タグ「変換」内でスタイルシートを使用しているため、エラーが発生しますか?