Subject:Need help with XML mapping - Please feel free to chip in with any comments Author:David Standen Date:20 Oct 2009 06:43 PM
I have a data file that is in XML format. I have an xsd that I wish to map the xml file to. However, whenever I try to run the xslt all I get is the very first record.
It does not seem to matter what I do and it is driving me to despair. I am obviously doing something wrong - Can anyone help me by showing what I should be doing.
I have attached a Winzip file containing the following:
01sample.xml - The data to be mapped
INIS_Atomindex_DTD_v24.dtd - The dtd file (should you need it)
IPDatabaseSchema.xsd - The file containing the mapping fields.
I am sure that I am missing something very simple, but lack of experience with the Stylus Studio package (2009 trial) is an issue I have not time to resolve by trial and error (mostly error).
Assuming that someone can get this to work, how do I go about actually outputting the data from the mapping into a final XML file?
Since I am asking - Can Stylus Studio be told to work its way through an entire folder of XML source files or is it just one at a time?
Subject:Need help with XML mapping - Please feel free to chip in with any comments Author:(Deleted User) Date:29 Oct 2009 01:37 PM
if you are getting just the first record, you are probably missing a xsl:for-each statement at the top of the stylesheet, or using absolute paths instead of relative ones.
After you have designed the XSLT stylesheet using Mapper's help, the XSLT can be executed by a processor (like Saxon) from within Stylus, or from a command line; in the latter case you can instruct the processor to work on all the files of a folder.