Eingang datei:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsldig:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsldig="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns="http://www.w3.org/TR/REC-html40">
<a>
<xsl:b>alt_neu
</xsl:b>
<xsl:c>1233
</xsl:c>
</a>
</xsldig:stylesheet >
meine xslt datei für die Transformation:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsldig="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns="http://www.w3.org/TR/REC-html40">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="xsl:c"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
gewünschte Ausgang:
<?xml version="1.0" encoding="UTF-8"?>
<xsldig:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsldig="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fn="http://www.w3.org/2005/xpath-functions"
xmlns="http://www.w3.org/TR/REC-html40"
version="1.0">
<a>
<xsl:b>alt_neu
</xsl:b>
</a>
</xsldig:stylesheet>
</xsldig:stylesheet>
~~~.Diese Ausgang bekomme ich nur durch den output von "saxon 9" aber nicht wenn ich die transformation mit meine Editor" AltovaXMLSPY" durchführe !wieso????was mache ich falsch?