Exporting a csv, need to change the customer postcodes to uppercase.
I've tried searching for the answer and found the following:
XSLT Stylesheet: Changing text to upper case
But this only works for known values or something? My code is as follows:
<xsl:variable name="sepstart" select="'"'"/> <!-- " field start seperator, including '' -->
<xsl:variable name="sepend" select="'",'"/> <!-- field end seperator, including '' -->
<xsl:template match="/">
<xsl:text>"eBay Username","Name","Postcode","Address","SKU","Samples Wanted","Order id"</xsl:text><xsl:text>
</xsl:text>
<xsl:for-each select="orders/order">
<xsl:value-of select="$sepstart" /><xsl:value-of select="$sepend" />
<xsl:value-of select="$sepstart" /><xsl:value-of select="concat(shipping/firstname,shipping/lastname)"/><xsl:value-of select="$sepend" />
<xsl:value-of select="$sepstart" /><xsl:value-of select="shipping/postcode"/><xsl:value-of select="$sepend" />
<xsl:value-of select="$sepstart" /><xsl:value-of select="concat(shipping/street1,', ',shipping/street2,', ',shipping/city)"/><xsl:value-of select="$sepend" />
<xsl:value-of select="$sepstart" />
<xsl:for-each select="items/item">
<xsl:value-of select="sku"/><xsl:text>
</xsl:text>
</xsl:for-each>
<xsl:value-of select="$sepend" />
<xsl:value-of select="$sepstart" />
<xsl:for-each select="items/item">
<xsl:value-of select="name"/><xsl:text>
</xsl:text>
</xsl:for-each>
<xsl:value-of select="$sepend" />
<xsl:value-of select="increment_id"/>
<xsl:text>
</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
</file>
</files>
Postcodes are here:
<xsl:value-of select="shipping/postcode"/>
Is this possible? You can't quickly change to uppercase in excel either, this is a daily export (and I need anyone to be able to do it!)