Hi All,
I'm trying to split a supplied XML to individual orders but can't extract based on a specific field.
Below is my supplied XML
<CudosOrders>
<CudosOrder OrderID="647105">
<OrderReference>276945</OrderReference>
<CustomHeadFields>
<CustomHeadField0><![CDATA[Nicky]]></CustomHeadField0>
Here is the extract from my XSLT. I'm trying to split it based on OrderID but I guess I've coded it wrong.
<xsl:template match="/CudosOrders/CudosOrder/">
<xsl:result-document method="xml" href="{@Type='OrderID'}.xml">
<xsl:copy-of select="." />
</xsl:result-document>
</xsl:template>...
Any advice??
Thanks
split an XML to individual nodes using XSLT
Re: split an XML to individual nodes using XSLT
The attribute is called OrderID, not Type, so it should be
instead of
Code: Select all
@OrderID
Code: Select all
@Type='OrderID'
Re: split an XML to individual nodes using XSLT
Hi,
Thanks for that. All working fine now.
Thanks for that. All working fine now.