Nice to have - XSLT functionality in the XMLWrite
Posted: Tue Nov 03, 2015 5:52 pm
Hi all, I am pulling data from a SQL - DB2 database and then generating XML from it. Having worked with XML and XSLT for quite some time it would be nice if I could use XSLT in the XML generation part of the project. For instance, in the database a 2 place decimal is stored as a whole number, e.g. 9900 should be 99.00. I could easily manipulate this value to add the decimal point before the last two digits if XSLT/XPath functions were available but unfortunately this appears to be lacking.
Is there currently anyway to manipulate this on the fly using current built in functions in GoAnywhere MFT?
Here is a snippet of the XML that produces the current result.
<element name="price-table">
<attribute name="product-id" value="${data[1]}" />
<element name="amount" value="${data[2]}">
<attribute name="quantity" value="1" />
</element>
</element>
Is there currently anyway to manipulate this on the fly using current built in functions in GoAnywhere MFT?
Here is a snippet of the XML that produces the current result.
<element name="price-table">
<attribute name="product-id" value="${data[1]}" />
<element name="amount" value="${data[2]}">
<attribute name="quantity" value="1" />
</element>
</element>