I hope I don\'t lose anyone by mentioning Filemaker. I am trying to turn it\'s XML export into something usable by SSIS. FM\'s native XML export has field names and data i
One elegant way to solve this problem is this:
Which outputs on my system:
Dr. Zim
1234 Internet Way
However, be warned that XML element names are subject to stricter rules than FileMaker column names. The above will crash and burn if your column names violate those rules.
The notable features of the stylesheet are:
for speedy lookup of nodes - this should become noticeable for larger inputsexclude-result-prefixes
to prevent declaration of the fmp
namespace in the result
to create elements with a dynamic namepreceding-sibling
XPath axis as a way of determining node position (because the position()
function does not work in
sGo ahead and ask if anything is unclear.
Your other problem (number formatting) has an answer here: XSL: Formatting numbers, excluding trailing zeroes.