Hi, sorry to bother you with this.
I'm passing here just a section of my code, since it's like 300 lines in total and that is why some of tags don't match up.
I've give you as much as i have. I've check my whole website folder if there are any more xml generated there, but i can't find it.
When i was googling this, most answer were to add this code:
Code:
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
to mine
HTML Code:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:php="http://php.net/xsl" exclude-result-prefixes="php">
<xsl:output method="xml" indent="yes" encoding="UTF-8" omit-xml-declaration="yes"/>
<xsl:template match="/">
<products>
<xsl:for-each select="objects/object">
<xsl:element name="product"><xsl:attribute name="st"><xsl:value-of select="position()"/></xsl:attribute>
<xsl:element name="productID"><xsl:value-of select="sku"/></xsl:element>
<xsl:element name="productName"><xsl:value-of select="name"/></xsl:element>
<xsl:element name="url"><xsl:value-of select="product_url"/></xsl:element>
<xsl:element name="description"><xsl:value-of select="description"/></xsl:element>
</products>
</template>
but i doesn't work for me or i don't know how to implement it.
Thank you.