input.xmlにXSLコピーは、属性
<human gender="male" nationality="american">
<property>blank</property>
</human>
(希望)のOutput.xml
<human gender="male" nationality="american">
<property>blank</property>
</human>
<person gender="female" nationality="british">
<property>blank</property>
</person>
こんにちはみんな、上記の私の希望する変換を交換してください。 私がこれまでに以下のxslを持っている:
<xsl:template match="human">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
<person>
<xsl:apply-templates select="node()|@*"/>
</person>
</xsl:template>
しかし、どのように私は属性が、私は、XSLを使用してみました 値の交換については行く:しかし、運のない選択するあなたのスタイルシートが近かった
希望出力ドキュメントは整形式XML文書ではありませんそして、私はあなたに、a)一番外側の要素が1つしかない(他の要素はすべて)、またはb)それを '* .xml'という名前にしないでください。また、完全で最小限のXSLTスタイルシートを表示してください。ありがとう。その他のヘルプ:http://stackoverflow.com/help/mcve –