Thanks for the reply... I am trying to take an input file that has xml order data and use msxsl.exe (1.0 pretty old, probably ) and run it as a batch file to modify an output message file. Something like this...
msxsl.exe invoice.xml adddata.xsl -o test_out.xml
So, my input is the invoice.xml, I run the transformation with adddata.xsl to produce the output test_out.xml. All I'm trying to do is take the data from the input file and modify specific elements of the output file.
I copied the original output file with the following:
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()" />
</xsl:copy>
</xsl:template>
Then, I tried using template matches to select the elements from the input file whose data I want to modify the output file with
<xsl:template match="/">
<xsl:element name="InvoiceNotification">
<xsl:apply-templates select="EInvoiceData/CustOrdNumber"/>
</xsl:element>
</xsl:template>
<xsl:template match="EInvoiceData/CustOrdNumber">
<xsl:element name="tns:PurchaseOrderNumber/dp:Identifier" >
<xsl:value-of select="."/>
</xsl:element>
</xsl:template>
This is a one for one transformation.... one input xml file is created per invoice, so all I need to do is get this input file data into the stock output file and I should have what I need.
Sorry about format... I haven't posted much development code... but here is a snippet of the input xml file
1070108463850159925R11-9838021
Here is the output xml I need to transform :
XXXXXXX
I would be trying to find a match in the input for CustOrdNumber and get that into the output files PurchaseOrderNumber/Identifier element.
I hope that clears it up a bit...
Thanks!