I’ve tried a few things but I can’t get it to replace the products tag
<?xml version="1.0" encoding="UTF-8"?>
<products xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://api.itscope.com/2.1/info/schema/developer.xsd">
<product>
<name>Example Product</name>
<price>10.00</price>
</product>
</products>
and here is my XSLT
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
exclude-result-prefixes="xsi">
<!-- Identitätstransformation: Kopiert alle Nodes und Attribute -->
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<!-- Spezielle Transformation für das <products>-Tag mit den speziellen Namespaces und Attributen -->
<xsl:template match="products[@xsi:schemaLocation]">
<products>
<xsl:apply-templates select="@*|node()"/>
</products>
</xsl:template>
</xsl:stylesheet>
I think it is about namespaces but i can’t find the problem.